23 lines
1.2 KiB
Go
23 lines
1.2 KiB
Go
|
|
// =================================================================================
|
|||
|
|
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|||
|
|
// =================================================================================
|
|||
|
|
|
|||
|
|
package entity
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
// Comment is the golang structure for table nl_comment.
|
|||
|
|
type Comment struct {
|
|||
|
|
Id uint `json:"id" orm:"id" description:"评论ID"`
|
|||
|
|
UserId int `json:"user_id" orm:"user_id" description:"用户ID"`
|
|||
|
|
MovieId int `json:"movie_id" orm:"movie_id" description:"影片ID"`
|
|||
|
|
ParentId int `json:"parent_id" orm:"parent_id" description:"父评论ID,0为顶级评论"`
|
|||
|
|
Content string `json:"content" orm:"content" description:"评论内容"`
|
|||
|
|
LikeCount int `json:"like_count" orm:"like_count" description:"点赞数"`
|
|||
|
|
Status int `json:"status" orm:"status" description:"状态:0待审核,1已通过,2已拒绝"`
|
|||
|
|
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"`
|
|||
|
|
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"`
|
|||
|
|
}
|