书籍列表接口新增参数
This commit is contained in:
25
internal/model/do/ad_event_logs.go
Normal file
25
internal/model/do/ad_event_logs.go
Normal 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{} // 平台ID:1-META,2-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 // 软删除时间戳
|
||||
}
|
||||
21
internal/model/do/ad_event_transitions.go
Normal file
21
internal/model/do/ad_event_transitions.go
Normal 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 // 软删除时间戳
|
||||
}
|
||||
@ -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 // 软删除时间戳
|
||||
}
|
||||
|
||||
24
internal/model/do/book_recommendations.go
Normal file
24
internal/model/do/book_recommendations.go
Normal 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=首页Banner,2=编辑推荐,3=分类推荐等
|
||||
CoverUrl interface{} // 推荐封面图(横图)
|
||||
SortOrder interface{} // 展示排序,越小越靠前
|
||||
Status interface{} // 是否启用:1=启用,0=禁用
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
@ -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=日文
|
||||
}
|
||||
|
||||
24
internal/model/do/sign_in_reward_details.go
Normal file
24
internal/model/do/sign_in_reward_details.go
Normal 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 // 软删除时间戳
|
||||
}
|
||||
24
internal/model/do/sign_in_reward_rules.go
Normal file
24
internal/model/do/sign_in_reward_rules.go
Normal 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 // 软删除时间戳
|
||||
}
|
||||
16
internal/model/do/system.go
Normal file
16
internal/model/do/system.go
Normal 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{} //
|
||||
}
|
||||
23
internal/model/do/task_logs.go
Normal file
23
internal/model/do/task_logs.go
Normal 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 // 创建时间
|
||||
}
|
||||
21
internal/model/do/task_types.go
Normal file
21
internal/model/do/task_types.go
Normal 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 // 更新时间
|
||||
}
|
||||
24
internal/model/do/tasks.go
Normal file
24
internal/model/do/tasks.go
Normal 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 // 软删除时间戳
|
||||
}
|
||||
25
internal/model/do/user_sign_in_logs.go
Normal file
25
internal/model/do/user_sign_in_logs.go
Normal 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 // 软删除时间戳
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user