package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.service.BattInfService;
|
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.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@RequestMapping("battInf")
|
@RestController
|
@Api(tags = "电池信息")
|
public class BattInfController {
|
|
@Autowired
|
private BattInfService service;
|
|
@GetMapping("/searchAllStationName1")
|
@ApiOperation("查询省")
|
public Response searchAllStationName1(@RequestParam Integer userId){
|
return service.searchAllStationName1(userId);
|
}
|
@GetMapping("/searchAllStationName2")
|
@ApiOperation("查询市")
|
public Response searchAllStationName2(@RequestParam Integer userId,@RequestParam(required = false) String stationName1){
|
return service.searchAllStationName2(userId,stationName1);
|
}
|
@GetMapping("/searchAllStationName5")
|
@ApiOperation("查询区")
|
public Response searchAllStationName5(@RequestParam Integer userId,@RequestParam(required = false) String stationName1,@RequestParam(required = false) String stationName2){
|
return service.searchAllStationName5(userId, stationName1, stationName2);
|
}
|
@GetMapping("/searchAllStationName")
|
@ApiOperation("查询站点名")
|
public Response searchAllStationName(@RequestParam Integer userId,@RequestParam(required = false) String stationName1,@RequestParam(required = false) String stationName2,@RequestParam(required = false) String stationName5){
|
return service.searchAllStationName(userId, stationName1, stationName2, stationName5);
|
}
|
|
|
|
|
}
|