完善功能
This commit is contained in:
@ -11,22 +11,24 @@ import (
|
||||
|
||||
// Books is the golang structure of table books for DAO operations like Where/Data.
|
||||
type Books struct {
|
||||
g.Meta `orm:"table:books, do:true"`
|
||||
Id interface{} // 小说ID
|
||||
AuthorId interface{} // 作者ID
|
||||
CategoryId interface{} // 分类ID
|
||||
Title interface{} // 小说标题
|
||||
CoverUrl interface{} // 封面图片URL
|
||||
Description interface{} // 小说简介
|
||||
Status interface{} // 状态:1=连载中,2=完结,3=下架
|
||||
WordsCount interface{} // 字数
|
||||
ChaptersCount interface{} // 章节数
|
||||
LatestChapterId interface{} // 最新章节ID
|
||||
Rating interface{} // 评分(0.00~10.00)
|
||||
ReadCount interface{} // 阅读人数
|
||||
Tags interface{} // 标签(逗号分隔)
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
IsRecommended interface{} // 是否推荐:0=否,1=是
|
||||
g.Meta `orm:"table:books, do:true"`
|
||||
Id interface{} // 小说ID
|
||||
AuthorId interface{} // 作者ID
|
||||
CategoryId interface{} // 分类ID
|
||||
Title interface{} // 小说标题
|
||||
CoverUrl interface{} // 封面图片URL
|
||||
Description interface{} // 小说简介
|
||||
Status interface{} // 状态:1=连载中,2=完结,3=下架
|
||||
WordsCount interface{} // 字数
|
||||
ChaptersCount interface{} // 章节数
|
||||
Rating interface{} // 评分(0.00~10.00)
|
||||
ReadCount interface{} // 阅读人数
|
||||
CurrentReaders interface{} // 在读人数
|
||||
Tags interface{} // 标签(逗号分隔)
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
IsRecommended interface{} // 是否推荐:0=否,1=是
|
||||
IsFeatured interface{} // 是否精选:0=否,1=是
|
||||
Language interface{} // 语言,如 zh=中文,en=英文,jp=日文
|
||||
}
|
||||
|
||||
@ -19,4 +19,5 @@ type Bookshelves struct {
|
||||
LastReadChapterId interface{} // 最后阅读章节ID
|
||||
LastReadPercent interface{} // 阅读进度百分比(0.00~100.00)
|
||||
LastReadAt *gtime.Time // 最后阅读时间
|
||||
ReadStatus interface{} // 阅读状态:1=正在读,2=已读完,3=已收藏
|
||||
}
|
||||
|
||||
@ -14,8 +14,8 @@ type Categories struct {
|
||||
g.Meta `orm:"table:categories, do:true"`
|
||||
Id interface{} // 分类ID
|
||||
Name interface{} // 分类名称
|
||||
Type interface{} // 分类类型:1=男频, 2=女频
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
Channel interface{} // 频道类型:1=男频,2=女频
|
||||
}
|
||||
|
||||
@ -14,9 +14,9 @@ type UserPointsLogs struct {
|
||||
g.Meta `orm:"table:user_points_logs, do:true"`
|
||||
Id interface{} // 积分流水ID
|
||||
UserId interface{} // 用户ID
|
||||
ChangeType interface{} // 变动类型,例如 earn、spend、refund 等
|
||||
ChangeType interface{} // 变动类型,1=消费(spend), 2=收入(earn)
|
||||
PointsChange interface{} // 积分变化数,正数增加,负数减少
|
||||
RelatedOrderId interface{} // 关联订单ID
|
||||
RelatedOrderId interface{} // 关联ID:当change_type=1时,为chapter_purchases.id;当change_type=2时,为advertisement_records.id
|
||||
Description interface{} // 变动说明
|
||||
CreatedAt *gtime.Time // 变动时间
|
||||
}
|
||||
|
||||
20
internal/model/do/user_read_history.go
Normal file
20
internal/model/do/user_read_history.go
Normal file
@ -0,0 +1,20 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// UserReadHistory is the golang structure of table user_read_history for DAO operations like Where/Data.
|
||||
type UserReadHistory struct {
|
||||
g.Meta `orm:"table:user_read_history, do:true"`
|
||||
Id interface{} // 历史记录ID
|
||||
UserId interface{} // 用户ID
|
||||
BookId interface{} // 小说ID
|
||||
ChapterId interface{} // 最后阅读章节ID
|
||||
ReadAt *gtime.Time // 最后阅读时间
|
||||
}
|
||||
@ -9,12 +9,15 @@ import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ReadRecords is the golang structure of table read_records for DAO operations like Where/Data.
|
||||
type ReadRecords struct {
|
||||
g.Meta `orm:"table:read_records, do:true"`
|
||||
// UserReadRecords is the golang structure of table user_read_records for DAO operations like Where/Data.
|
||||
type UserReadRecords struct {
|
||||
g.Meta `orm:"table:user_read_records, do:true"`
|
||||
Id interface{} // 记录ID
|
||||
UserId interface{} // 用户ID
|
||||
BookId interface{} // 小说ID
|
||||
ChapterId interface{} // 章节ID
|
||||
Progress interface{} // 阅读进度百分比(0-100)
|
||||
ReadAt *gtime.Time // 阅读时间
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
}
|
||||
Reference in New Issue
Block a user