动态管理使用枚举类

This commit is contained in:
pserimal
2023-06-15 18:16:07 +08:00
parent 39782aec34
commit 3fb8e439ec
9 changed files with 60 additions and 15 deletions

View File

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