refactor(comment): 重命名chat_context为comment_context并移除证据图片字段

This commit is contained in:
2026-03-20 17:02:04 +08:00
parent 283eb4fa49
commit 40d846ec0d
3 changed files with 5 additions and 13 deletions

View File

@@ -22,9 +22,6 @@ public class CommentReportReq {
@Schema(description = "详细描述")
private String reportDesc;
@Schema(description = "评论上下文快照JSON")
private String chatContext;
@Schema(description = "图片证据URL")
private String evidenceImageUrl;
@Schema(description = "评论内容")
private String commentContext;
}

View File

@@ -42,13 +42,9 @@ public class KeyboardAiCommentReport {
@Schema(description = "用户填写的详细举报描述")
private String reportDesc;
@TableField(value = "chat_context")
@TableField(value = "comment_context")
@Schema(description = "评论上下文快照JSON")
private String chatContext;
@TableField(value = "evidence_image_url")
@Schema(description = "图片证据URL")
private String evidenceImageUrl;
private String commentContext;
@TableField(value = "\"status\"")
@Schema(description = "处理状态0=待处理, 1=违规确立, 2=无效举报, 3=已忽略")

View File

@@ -69,8 +69,7 @@ public class KeyboardAiCommentReportServiceImpl extends ServiceImpl<KeyboardAiCo
report.setCommentId(req.getCommentId());
report.setReportType(req.getReportTypes().stream().map(String::valueOf).collect(Collectors.joining(",")));
report.setReportDesc(req.getReportDesc());
report.setChatContext(req.getChatContext());
report.setEvidenceImageUrl(req.getEvidenceImageUrl());
report.setCommentContext(req.getCommentContext());
report.setStatus(PENDING_STATUS);
report.setCreatedAt(new Date());
return report;