| | |
| | | import com.xiaopeng.operation.vo.OpenCityListVO; |
| | | import com.xiaopeng.operation.vo.XpOpenCityVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | */ |
| | | @ApiOperation(value = "获取开通城市列表(管理后台)", tags = {"管理后台-交易管理"}, response = OpenCityListVO.class) |
| | | @GetMapping("/api/v1/openCity/list") |
| | | public R<List<OpenCityListVO>> getOpenCityList() { |
| | | List<OpenCityListVO> list = xpOpenCityService.getOpenCityListForAdmin(); |
| | | @ApiImplicitParam(name = "type", value = "类型:1-路线规划配置使用 2-定价管理配置使用", required = true, dataTypeClass = Integer.class) |
| | | public R<List<OpenCityListVO>> getOpenCityList(@RequestParam("type") Integer type) { |
| | | List<OpenCityListVO> list = xpOpenCityService.getOpenCityListForAdmin(type); |
| | | return R.ok(list); |
| | | } |
| | | |