23 lines
1.7 KiB
Go
23 lines
1.7 KiB
Go
// =================================================================================
|
||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||
// =================================================================================
|
||
|
||
package entity
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
)
|
||
|
||
// BookRecommendations is the golang structure for table book_recommendations.
|
||
type BookRecommendations struct {
|
||
Id int64 `json:"id" orm:"id" description:"主键"` // 主键
|
||
BookId int64 `json:"bookId" orm:"book_id" description:"书籍ID,关联 books 表"` // 书籍ID,关联 books 表
|
||
Type int `json:"type" orm:"type" description:"推荐类型:1=首页Banner,2=编辑推荐,3=分类推荐等"` // 推荐类型:1=首页Banner,2=编辑推荐,3=分类推荐等
|
||
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"推荐封面图(横图)"` // 推荐封面图(横图)
|
||
SortOrder int `json:"sortOrder" orm:"sort_order" description:"展示排序,越小越靠前"` // 展示排序,越小越靠前
|
||
Status int `json:"status" orm:"status" description:"是否启用:1=启用,0=禁用"` // 是否启用:1=启用,0=禁用
|
||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||
}
|