20 lines
563 B
Go
20 lines
563 B
Go
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"
|
|
}
|