feat: post api

This commit is contained in:
Blizzard
2026-02-06 17:28:42 +08:00
parent 3115b58cb2
commit 87c31f119f
14 changed files with 420 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
package plant
import (
"sundynix-go/global"
"sundynix-go/model/system"
)
type PostLike struct {
global.BaseModel
PostId string `json:"postId" form:"postId" gorm:"index;column:post_id;size:50;comment:帖子id"`
UserId string `json:"userId" form:"userId" gorm:"index;column:user_id;size:50;comment:用户id"`
Liker *system.User `json:"liker" form:"liker" gorm:"foreignKey:UserId;comment:点赞者"`
}