♻️ Refactor all ListPost to versionable

This commit is contained in:
2025-03-30 14:30:44 +08:00
parent 79b12624d8
commit 37dc92dc43
8 changed files with 34 additions and 14 deletions

View File

@@ -396,7 +396,7 @@ func CountPostReactions(id uint) int64 {
return count
}
func ListPostV1(tx *gorm.DB, take int, offset int, order any, user *uint, noReact ...bool) ([]models.Post, error) {
func ListPost(tx *gorm.DB, take int, offset int, order any, user *uint, noReact ...bool) ([]models.Post, error) {
if take > 100 {
take = 100
}