完善功能

This commit is contained in:
2025-07-16 15:16:40 +08:00
parent b2871ec0d2
commit f68a5b360b
123 changed files with 4643 additions and 931 deletions

View File

@ -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=日文
}

View File

@ -19,4 +19,5 @@ type Bookshelves struct {
LastReadChapterId interface{} // 最后阅读章节ID
LastReadPercent interface{} // 阅读进度百分比0.00~100.00
LastReadAt *gtime.Time // 最后阅读时间
ReadStatus interface{} // 阅读状态1=正在读2=已读完3=已收藏
}

View File

@ -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=女频
}

View File

@ -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 // 变动时间
}

View 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 // 最后阅读时间
}

View File

@ -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 // 更新时间
}