feat: swagger format

This commit is contained in:
Blizzard
2026-02-11 16:22:17 +08:00
parent 112a1f439c
commit 69e59b0e36
14 changed files with 54 additions and 44 deletions
+3
View File
@@ -76,6 +76,9 @@ func (s *PostService) PostPage(req plantReq.PostPage, userId string) (list inter
if req.Title != "" {
db = db.Where("title like ?", "%"+req.Title+"%")
}
if req.HasReviewed != nil {
db = db.Where("has_reviewed = ?", *req.HasReviewed)
}
//todo 审核帖子
err = db.Count(&total).Error
if err != nil {