修改日程接口
This commit is contained in:
parent
73487494bb
commit
3c9db0fe9d
@ -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<ScheduleDateDTO> listDate(@RequestHeader("token") String token) {
|
||||
Map<String, Object> params = requestParams();
|
||||
return scheduleService.listDate(token, params);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "新增", notes = "新增接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
|
||||
|
Loading…
Reference in New Issue
Block a user