feat
parent
382f32de5f
commit
8316bd1e76
|
@ -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){
|
||||
|
||||
|
|
Loading…
Reference in New Issue