From 9c7b65d9173ce29011531e4186ed693987ad14df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BB=BA=E8=B6=85?= <3182967682@qq.com> Date: Wed, 14 Oct 2020 11:47:07 +0800 Subject: [PATCH] fix --- .../lz/modules/performance/controller/TaskController.java | 6 +++++- .../java/com/lz/modules/performance/res/TaskListRes.java | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/lz/modules/performance/controller/TaskController.java b/src/main/java/com/lz/modules/performance/controller/TaskController.java index a4884329..1d7c4a96 100644 --- a/src/main/java/com/lz/modules/performance/controller/TaskController.java +++ b/src/main/java/com/lz/modules/performance/controller/TaskController.java @@ -7,6 +7,7 @@ import com.lz.common.utils.StringUtil; import com.lz.modules.app.entity.StaffEntity; import com.lz.modules.app.service.StaffService; import com.lz.modules.equipment.entity.model.BasePage; +import com.lz.modules.flow.entity.FlowChart; import com.lz.modules.flow.service.FlowChangeService; import com.lz.modules.flow.service.FlowRecordService; import com.lz.modules.performance.req.AssessDetailReq; @@ -17,7 +18,7 @@ import com.lz.modules.performance.res.TaskListRes; import com.lz.modules.sys.controller.AbstractController; import com.lz.modules.sys.entity.app.ResultRecord; import com.lz.modules.sys.service.app.ResultRecordService; -import io.swagger.annotations.Api; +import io.swagger.annotations.*; import org.apache.commons.collections.CollectionUtils; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -46,6 +47,9 @@ public class TaskController extends AbstractController{ private FlowChangeService flowChangeService; @RequestMapping("task/list") + @ApiOperation("获取待办/处理事项") + @ApiImplicitParam(name = "status",value = "状态 (0:待办 1:已处理)", required = true, dataType = "int",paramType = "query") + @ApiResponses({@ApiResponse(code = 200,message = "成功",response = TaskListRes.class)}) public R list(AssessTaskReq req){ List list = new ArrayList<>(); Long userId = getUserId(); diff --git a/src/main/java/com/lz/modules/performance/res/TaskListRes.java b/src/main/java/com/lz/modules/performance/res/TaskListRes.java index e034df09..da8e681e 100644 --- a/src/main/java/com/lz/modules/performance/res/TaskListRes.java +++ b/src/main/java/com/lz/modules/performance/res/TaskListRes.java @@ -1,5 +1,7 @@ package com.lz.modules.performance.res; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** @@ -8,13 +10,18 @@ import lombok.Data; * @Date: 2020/10/13 17:15 */ @Data +@ApiModel(value = "待办/处理事项列表返回") public class TaskListRes { //头像 + @ApiModelProperty(value = "头像", name = "avatar") private String avatar; //标题 + @ApiModelProperty(value = "标题", name = "title") private String title; //时间 + @ApiModelProperty(value = "时间", name = "time") private String time; //跳转路径 + @ApiModelProperty(value = "跳转路径url", name = "url") private String url; }