动态管理使用枚举类
This commit is contained in:
@@ -32,14 +32,16 @@ public class ContentController {
|
||||
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除动态")
|
||||
public void deleteContent(@RequestParam(value = "contentId") String contentId) {
|
||||
public ResponseResult deleteContent(@RequestParam(value = "contentId") String contentId) {
|
||||
contentService.deleteContent(contentId);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping("/modify")
|
||||
@ApiOperation("修改动态")
|
||||
public void updateContent(@RequestBody ContentUpdateDto dto) {
|
||||
public ResponseResult updateContent(@RequestBody ContentUpdateDto dto) {
|
||||
contentService.updateContent(dto);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping("/queryContentList")
|
||||
|
||||
Reference in New Issue
Block a user