feat: 异步校验社区post文本内容是否违规

This commit is contained in:
Blizzard
2026-02-14 13:08:52 +08:00
parent 3cf4841fdd
commit 4ffc41ea84
7 changed files with 112 additions and 16 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ type Post struct {
LikeCount int `json:"likeCount" form:"likeCount" gorm:"default:0;column:like_count;comment:点赞次数"`
StarCount int `json:"starCount" form:"starCount" gorm:"default:0;column:star_count;comment:收藏次数"`
Location string `json:"location" form:"location" gorm:"column:location;size:100;comment:位置"`
HasReviewed int `json:"hasReviewed" form:"hasReviewed" gorm:"column:has_reviewed;default:0;comment:是否审核通过"`
HasReviewed int `json:"hasReviewed" form:"hasReviewed" gorm:"column:has_reviewed;default:0;comment:是否审核通过"` // 0-未审核 1-审核通过 2-违规
HasLiked int `json:"hasLiked" form:"hasLiked" gorm:"-"`
HasStar int `json:"hasStar" form:"hasStar" gorm:"-"`
//图片