diff --git a/mcwl-admin/src/main/java/com/mcwl/web/controller/resource/ReportController.java b/mcwl-admin/src/main/java/com/mcwl/web/controller/resource/ReportController.java index e667ac5..f2d2842 100644 --- a/mcwl-admin/src/main/java/com/mcwl/web/controller/resource/ReportController.java +++ b/mcwl-admin/src/main/java/com/mcwl/web/controller/resource/ReportController.java @@ -4,6 +4,7 @@ import com.mcwl.common.core.domain.AjaxResult; import com.mcwl.resource.domain.Report; import com.mcwl.resource.domain.vo.PageVo; import com.mcwl.resource.service.ReportService; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -26,6 +27,7 @@ public class ReportController { * @param report * @return */ + @ApiOperation(value = "新增举报内容") @PostMapping("/addReport") public AjaxResult addReport(@RequestBody Report report){ @@ -33,11 +35,14 @@ public class ReportController { return AjaxResult.success("举报成功"); } + + /** * 查询举报列表 * @param pageVo * @return */ + @ApiOperation(value = "查询举报列表") @PostMapping("/selectReport") public AjaxResult selectReport(@RequestBody PageVo pageVo){ @@ -50,6 +55,7 @@ public class ReportController { * @param id * @return */ + @ApiOperation(value = "删除举报") @GetMapping("/deleteReport") public AjaxResult deleteReport(@RequestParam Long id){ @@ -62,6 +68,7 @@ public class ReportController { * @param id * @return */ + @ApiOperation(value = "修改状态") @GetMapping("/updateStatus") public AjaxResult updateStatus(@RequestParam Long id){