feat: 个人中心发布

This commit is contained in:
Blizzard
2026-02-14 11:38:59 +08:00
parent f1d9f63296
commit 4820323381
35 changed files with 691 additions and 148 deletions
+13
View File
@@ -0,0 +1,13 @@
package plant
import "sundynix-go/global"
type UserStar struct {
global.BaseModel
UserId string `json:"userId" gorm:"index"`
Type int `json:"type" gorm:"index"` //1.百科 //2.社交动态
WikiId string `json:"wikiId" gorm:"index"`
PostId string `json:"postId" gorm:"index"`
Wiki *Wiki `json:"wiki" gorm:"foreignKey:WikiId"`
Post *Post `json:"post" gorm:"foreignKey:PostId"`
}