评论接口更改返回状态1
This commit is contained in:
@@ -156,7 +156,7 @@ public class CaseClinicalVideoController {
|
||||
* 临床病例库-视频-新增评论
|
||||
*/
|
||||
@PostMapping("/clinical/video/comment/{video_id}")
|
||||
public Response<T> AddClinicalVideoComment(
|
||||
public Response<Map<String, Object>> AddClinicalVideoComment(
|
||||
@PathVariable("video_id") String videoId,
|
||||
@Validated()
|
||||
@RequestBody addClinicalVideoComment request
|
||||
@@ -168,16 +168,16 @@ public class CaseClinicalVideoController {
|
||||
return Response.error("操作失败");
|
||||
}
|
||||
|
||||
Map<String, Object> resultData = new HashMap<>();
|
||||
resultData.put("status", 1);
|
||||
resultData.put("message", "成功");
|
||||
|
||||
try {
|
||||
boolean res = caseClinicalVideoService.AddClinicalVideoComment(videoId,userId,request);
|
||||
if (!res){
|
||||
return Response.error("操作失败");
|
||||
}
|
||||
resultData = caseClinicalVideoService.AddClinicalVideoComment(videoId,userId,request);
|
||||
return Response.success(200,resultData,"");
|
||||
} catch (BusinessException e) {
|
||||
return Response.error(e.getMessage());
|
||||
}
|
||||
|
||||
return Response.success();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user