feat: 增加线路查询接口
parent
93ab91a546
commit
a93d310b71
@ -0,0 +1,45 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.Lines;
|
||||
import com.shxy.xymanager_common.vo.*;
|
||||
import com.shxy.xymanager_service.service.LineService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"线路新接口"})
|
||||
@RequestMapping("line")
|
||||
@Slf4j
|
||||
public class NewLineController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
LineService lineService;
|
||||
|
||||
@ApiOperation(value = "查询线路全量列表")
|
||||
@RequestMapping("listFull")
|
||||
@Log(title = "获取线路列表", type = "查询")
|
||||
public ResponseReult<PageInfo<Lines>> listFull(@RequestBody @Validated SelectVo vo) {
|
||||
PageInfo<Lines> list = lineService.listFull(vo);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询线路超量列表")
|
||||
@RequestMapping("listOver")
|
||||
@Log(title = "获取线路列表", type = "查询")
|
||||
public ResponseReult<PageInfo<Lines>> listOver(@RequestBody @Validated SelectVo vo) {
|
||||
PageInfo<Lines> list = lineService.listOver(vo);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue