From 3c9db0fe9dfdbca519afca174a7c1c23e52ebf58 Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Thu, 21 Apr 2022 18:15:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E7=A8=8B=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/api/schedule/ScheduleAppController.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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")