修改动态不允许标题重复

This commit is contained in:
pserimal
2023-06-30 17:22:55 +08:00
parent d79d17645a
commit d8cba61a84
4 changed files with 11 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ public class ContentController {
@PostMapping("/modify")
@ApiOperation("修改动态")
public ResponseResult updateContent(@RequestBody ContentUpdateDto dto) {
public ResponseResult updateContent(@RequestBody ContentUpdateDto dto) throws ApiException {
contentService.updateContent(dto);
return ResponseResult.success();
}