package com.sqx.modules.riderStation.controller.app;

import com.sqx.common.utils.Result;
import com.sqx.modules.riderStation.service.RiderStationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "用户端-骑手站点", tags = {"用户端-骑手站点"})
@RequestMapping(value = "/app/riderStation")
public class RiderStationController {

    @Autowired
    private RiderStationService riderStationService;

    @ApiOperation("站点下拉框")
    @GetMapping(value = "/stationList")
    public Result stationList(){
        return riderStationService.stationList();
    }
}
