master
ChenYan 2025-01-21 19:34:12 +08:00
parent 382f32de5f
commit 8316bd1e76
1 changed files with 7 additions and 0 deletions

View File

@ -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){