修改日程接口

This commit is contained in:
cuibaocheng 2022-04-21 18:15:53 +08:00
parent 73487494bb
commit 3c9db0fe9d

View File

@ -1,5 +1,6 @@
package cn.com.tenlion.schedule.controller.app.api.schedule; package cn.com.tenlion.schedule.controller.app.api.schedule;
import cn.com.tenlion.schedule.pojo.dtos.schedule.ScheduleDateDTO;
import ink.wgink.annotation.CheckRequestBodyAnnotation; import ink.wgink.annotation.CheckRequestBodyAnnotation;
import ink.wgink.common.base.DefaultBaseController; import ink.wgink.common.base.DefaultBaseController;
import ink.wgink.interfaces.consts.ISystemConstant; import ink.wgink.interfaces.consts.ISystemConstant;
@ -34,6 +35,20 @@ public class ScheduleAppController extends DefaultBaseController {
@Autowired @Autowired
private IScheduleService scheduleService; private IScheduleService scheduleService;
@ApiOperation(value = "日程列表", notes = "日程列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间yyyy-MM-dd", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间yyyy-MM-dd", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listdate")
public List<ScheduleDateDTO> listDate(@RequestHeader("token") String token) {
Map<String, Object> params = requestParams();
return scheduleService.listDate(token, params);
}
@ApiOperation(value = "新增", notes = "新增接口") @ApiOperation(value = "新增", notes = "新增接口")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header") @ApiImplicitParam(name = "token", value = "token", paramType = "header")