feat: 个人中心发布
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user