diff --git a/module-schedule/src/main/java/cn/com/tenlion/schedule/controller/app/api/schedule/ScheduleAppController.java b/module-schedule/src/main/java/cn/com/tenlion/schedule/controller/app/api/schedule/ScheduleAppController.java index ba9089b..27f8766 100644 --- a/module-schedule/src/main/java/cn/com/tenlion/schedule/controller/app/api/schedule/ScheduleAppController.java +++ b/module-schedule/src/main/java/cn/com/tenlion/schedule/controller/app/api/schedule/ScheduleAppController.java @@ -1,5 +1,6 @@ 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.common.base.DefaultBaseController; import ink.wgink.interfaces.consts.ISystemConstant; @@ -34,6 +35,20 @@ public class ScheduleAppController extends DefaultBaseController { @Autowired 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 listDate(@RequestHeader("token") String token) { + Map params = requestParams(); + return scheduleService.listDate(token, params); + } + @ApiOperation(value = "新增", notes = "新增接口") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", paramType = "header")