init: radio init commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package radio
|
||||
|
||||
import (
|
||||
"sundynix-go/global"
|
||||
)
|
||||
|
||||
// RadioComment 用户评论表
|
||||
type RadioComment struct {
|
||||
global.BaseModel
|
||||
ProgramId string `gorm:"size:50;index" json:"programId"` // 节目ID
|
||||
UserId string `gorm:"size:50;index" json:"userId"` // 用户ID
|
||||
ParentId string `gorm:"size:50" json:"parentId"` // 父评论ID
|
||||
Content string `gorm:"type:text" json:"content"` // 评论内容
|
||||
LikeCount int `gorm:"default:0" json:"likeCount"` // 点赞数
|
||||
}
|
||||
|
||||
func (RadioComment) TableName() string {
|
||||
return "sundynix_radio_comment"
|
||||
}
|
||||
Reference in New Issue
Block a user