书籍列表接口新增参数

This commit is contained in:
2025-08-13 15:19:42 +08:00
parent 6ccc87f2bf
commit 8afe651c64
201 changed files with 6987 additions and 1066 deletions

View File

@ -0,0 +1,25 @@
// =================================================================================
// 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"
)
// AdEventLogs is the golang structure of table ad_event_logs for DAO operations like Where/Data.
type AdEventLogs struct {
g.Meta `orm:"table:ad_event_logs, do:true"`
Id interface{} // 广告事件ID
UserId interface{} // 用户ID
AdsPlatId interface{} // 平台ID1-META2-ADMOB
AdsCategoryId interface{} // 广告类型1-横幅2-插页3-激励插页4-激励5-原生6-开屏
AppPackage interface{} // App包名
Status interface{} // 广告状态1-拉取失败2-拉取成功3-显示失败4-显示成功5-未观看完成6-观看完成7-未点击8-已点击9-未下载10-已下载
StatusDesc interface{} // 状态描述
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,21 @@
// =================================================================================
// 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"
)
// AdEventTransitions is the golang structure of table ad_event_transitions for DAO operations like Where/Data.
type AdEventTransitions struct {
g.Meta `orm:"table:ad_event_transitions, do:true"`
Id interface{} // 状态流转记录ID
EventId interface{} // 所属广告事件ID关联ad_event_logs.id
FromStatus interface{} // 原状态(首次记录为空)
ToStatus interface{} // 目标状态
CreatedAt *gtime.Time // 状态变更时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -11,13 +11,14 @@ import (
// Authors is the golang structure of table authors for DAO operations like Where/Data.
type Authors struct {
g.Meta `orm:"table:authors, do:true"`
Id interface{} // 作者ID
UserId interface{} // 用户ID
PenName interface{} // 笔名
Bio interface{} // 作者简介
Status interface{} // 状态1=正常2=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间
g.Meta `orm:"table:authors, do:true"`
Id interface{} // 作者ID
UserId interface{} // 用户ID
PenName interface{} // 笔名
Bio interface{} // 作者简介
FollowerCount interface{} // 粉丝数量
Status interface{} // 状态1=正常2=待审核, 3=未通过
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,24 @@
// =================================================================================
// 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"
)
// BookRecommendations is the golang structure of table book_recommendations for DAO operations like Where/Data.
type BookRecommendations struct {
g.Meta `orm:"table:book_recommendations, do:true"`
Id interface{} // 主键
BookId interface{} // 书籍ID关联 books 表
Type interface{} // 推荐类型1=首页Banner2=编辑推荐3=分类推荐等
CoverUrl interface{} // 推荐封面图(横图)
SortOrder interface{} // 展示排序,越小越靠前
Status interface{} // 是否启用1=启用0=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -30,5 +30,6 @@ type Books struct {
DeletedAt *gtime.Time // 软删除时间戳
IsRecommended interface{} // 是否推荐0=否1=是
IsFeatured interface{} // 是否精选0=否1=是
IsHot interface{} // 是否热门0=否1=是
Language interface{} // 语言,如 zh=中文en=英文jp=日文
}

View File

@ -0,0 +1,24 @@
// =================================================================================
// 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"
)
// SignInRewardDetails is the golang structure of table sign_in_reward_details for DAO operations like Where/Data.
type SignInRewardDetails struct {
g.Meta `orm:"table:sign_in_reward_details, do:true"`
Id interface{} // 主键
RuleId interface{} // 规则ID关联 sign_in_reward_rules 表
DayNumber interface{} // 签到天数1到cycle_days
RewardType interface{} // 奖励类型1=积分
Quantity interface{} // 奖励数量,如积分数量或礼包数量
Status interface{} // 记录状态1=启用0=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,24 @@
// =================================================================================
// 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"
)
// SignInRewardRules is the golang structure of table sign_in_reward_rules for DAO operations like Where/Data.
type SignInRewardRules struct {
g.Meta `orm:"table:sign_in_reward_rules, do:true"`
Id interface{} // 主键
RuleName interface{} // 规则名称如“7天签到活动”
CycleDays interface{} // 奖励周期天数如7天
StartDate *gtime.Time // 活动开始日期
EndDate *gtime.Time // 活动结束日期
Status interface{} // 规则状态1=启用0=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// System is the golang structure of table system for DAO operations like Where/Data.
type System struct {
g.Meta `orm:"table:system, do:true"`
Key interface{} //
Value interface{} //
}

View File

@ -0,0 +1,23 @@
// =================================================================================
// 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"
)
// TaskLogs is the golang structure of table task_logs for DAO operations like Where/Data.
type TaskLogs struct {
g.Meta `orm:"table:task_logs, do:true"`
Id interface{} // 任务日志ID
TaskId interface{} // 任务ID关联 tasks.id
UserId interface{} // 用户ID关联 users.id
RewardPoints interface{} // 本次任务获得的积分
ActionTime *gtime.Time // 操作时间(如完成时间)
Status interface{} // 日志状态1=有效2=无效
Extra interface{} // 扩展信息例如来源、IP 等
CreatedAt *gtime.Time // 创建时间
}

View File

@ -0,0 +1,21 @@
// =================================================================================
// 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"
)
// TaskTypes is the golang structure of table task_types for DAO operations like Where/Data.
type TaskTypes struct {
g.Meta `orm:"table:task_types, do:true"`
Id interface{} // 任务类型ID
Name interface{} // 任务类型名称,例如:广告、写一本书、首次登录
Description interface{} // 任务类型描述
Status interface{} // 状态1=启用2=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}

View File

@ -0,0 +1,24 @@
// =================================================================================
// 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"
)
// Tasks is the golang structure of table tasks for DAO operations like Where/Data.
type Tasks struct {
g.Meta `orm:"table:tasks, do:true"`
Id interface{} // 任务ID
TaskType interface{} // 任务类型1=首次登录2=广告3=发布书籍
Title interface{} // 任务标题
Description interface{} // 任务描述
RewardPoints interface{} // 完成任务奖励的积分数
Status interface{} // 状态1=启用2=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,25 @@
// =================================================================================
// 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"
)
// UserSignInLogs is the golang structure of table user_sign_in_logs for DAO operations like Where/Data.
type UserSignInLogs struct {
g.Meta `orm:"table:user_sign_in_logs, do:true"`
Id interface{} // 主键
UserId interface{} // 用户ID关联 users 表
RuleId interface{} // 规则ID关联 sign_in_reward_rules 表
RewardDetailId interface{} // 奖励详情ID关联 sign_in_reward_details 表
SignInDate *gtime.Time // 签到日期
Quantity interface{} // 奖励数量,如积分数量或礼包数量
Status interface{} // 记录状态1=有效0=无效
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -11,14 +11,16 @@ import (
// Users is the golang structure of table users for DAO operations like Where/Data.
type Users struct {
g.Meta `orm:"table:users, do:true"`
Id interface{} // 用户ID
Username interface{} // 用户名
PasswordHash interface{} // 密码哈希
Avatar interface{} // 头像URL
Email interface{} // 邮箱
Points interface{} // 积分
CreatedAt *gtime.Time // 注册时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
g.Meta `orm:"table:users, do:true"`
Id interface{} // 用户ID
Username interface{} // 用户名
PasswordHash interface{} // 密码哈希
Avatar interface{} // 头像URL
Email interface{} // 邮箱
Points interface{} // 积分
CreatedAt *gtime.Time // 注册时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
BackgroundUrl interface{} // 作者背景图
AttentionCount interface{} // 关注他人的数量 attention count
}