feat: add Go backend

This commit is contained in:
richjohnrambo
2026-10-10 20:56:17 +08:00
parent 50fcfd2d3d
commit f6024f0964
1040 changed files with 107169 additions and 0 deletions
View File
+188
View File
@@ -0,0 +1,188 @@
// Package model
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package model
// 后台配置.
// BasicConfig 基础配置
type BasicConfig struct {
CaptchaSwitch int `json:"basicCaptchaSwitch"`
CloseText string `json:"basicCloseText"`
Copyright string `json:"basicCopyright"`
IcpCode string `json:"basicIcpCode"`
Logo string `json:"basicLogo"`
Name string `json:"basicName"`
Domain string `json:"basicDomain"`
WsAddr string `json:"basicWsAddr"`
RegisterSwitch int `json:"basicRegisterSwitch"`
SystemOpen bool `json:"basicSystemOpen"`
}
// EmailTemplate 邮件模板
type EmailTemplate struct {
Key string `json:"key"`
Value string `json:"value"`
}
// EmailConfig 邮箱配置
type EmailConfig struct {
User string `json:"smtpUser"`
Password string `json:"smtpPass"`
Addr string `json:"smtpAddr"`
Host string `json:"smtpHost"`
Port int64 `json:"smtpPort"`
SendName string `json:"smtpSendName"`
AdminMailbox string `json:"smtpAdminMailbox"`
MinInterval int `json:"smtpMinInterval"`
MaxIpLimit int `json:"smtpMaxIpLimit"`
CodeExpire int `json:"smtpCodeExpire"`
Template []*EmailTemplate `json:"smtpTemplate"`
}
// CashConfig 提现配置
type CashConfig struct {
Switch bool `json:"cashSwitch"`
MinFee float64 `json:"cashMinFee"`
MinFeeRatio float64 `json:"cashMinFeeRatio"`
MinMoney float64 `json:"cashMinMoney"`
Tips string `json:"cashTips"`
}
// UploadConfig 上传配置
type UploadConfig struct {
// 通用配置
Drive string `json:"uploadDrive"`
FileSize int64 `json:"uploadFileSize"`
FileType string `json:"uploadFileType"`
ImageSize int64 `json:"uploadImageSize"`
ImageType string `json:"uploadImageType"`
// 本地存储配置
LocalPath string `json:"uploadLocalPath"`
// UCloud对象存储配置
UCloudBucketHost string `json:"uploadUCloudBucketHost"`
UCloudBucketName string `json:"uploadUCloudBucketName"`
UCloudEndpoint string `json:"uploadUCloudEndpoint"`
UCloudFileHost string `json:"uploadUCloudFileHost"`
UCloudPath string `json:"uploadUCloudPath"`
UCloudPrivateKey string `json:"uploadUCloudPrivateKey"`
UCloudPublicKey string `json:"uploadUCloudPublicKey"`
// 腾讯云cos配置
CosSecretId string `json:"uploadCosSecretId"`
CosSecretKey string `json:"uploadCosSecretKey"`
CosBucketURL string `json:"uploadCosBucketURL"`
CosPath string `json:"uploadCosPath"`
// 阿里云oss配置
OssSecretId string `json:"uploadOssSecretId"`
OssSecretKey string `json:"uploadOssSecretKey"`
OssEndpoint string `json:"uploadOssEndpoint"`
OssBucketURL string `json:"uploadOssBucketURL"`
OssPath string `json:"uploadOssPath"`
OssBucket string `json:"uploadOssBucket"`
// 七牛云对象存储配置
QiNiuAccessKey string `json:"uploadQiNiuAccessKey"`
QiNiuSecretKey string `json:"uploadQiNiuSecretKey"`
QiNiuDomain string `json:"uploadQiNiuDomain"`
QiNiuPath string `json:"uploadQiNiuPath"`
QiNiuBucket string `json:"uploadQiNiuBucket"`
// minio配置
MinioAccessKey string `json:"uploadMinioAccessKey"`
MinioSecretKey string `json:"uploadMinioSecretKey"`
MinioEndpoint string `json:"uploadMinioEndpoint"`
MinioUseSSL int `json:"uploadMinioUseSSL"`
MinioPath string `json:"uploadMinioPath"`
MinioBucket string `json:"uploadMinioBucket"`
MinioDomain string `json:"uploadMinioDomain"`
}
// GeoConfig 地理配置
type GeoConfig struct {
GeoAmapWebKey string `json:"geoAmapWebKey"`
}
// SmsTemplate 短信模板
type SmsTemplate struct {
Key string `json:"key"`
Value string `json:"value"`
}
// SmsConfig 短信配置
type SmsConfig struct {
// 基础
SmsDrive string `json:"smsDrive"`
SmsMinInterval int `json:"smsMinInterval"`
SmsMaxIpLimit int `json:"smsMaxIpLimit"`
SmsCodeExpire int `json:"smsCodeExpire"`
// 阿里云
AliYunAccessKeyID string `json:"smsAliYunAccessKeyID"`
AliYunAccessKeySecret string `json:"smsAliYunAccessKeySecret"`
AliYunSign string `json:"smsAliYunSign"`
AliYunTemplate []*SmsTemplate `json:"smsAliYunTemplate"`
// 腾讯云
TencentSecretId string `json:"smsTencentSecretId"`
TencentSecretKey string `json:"smsTencentSecretKey"`
TencentEndpoint string `json:"smsTencentEndpoint"`
TencentRegion string `json:"smsTencentRegion"`
TencentAppId string `json:"smsTencentAppId"`
TencentSign string `json:"smsTencentSign"`
TencentTemplate []*SmsTemplate `json:"smsTencentTemplate"`
}
type PayConfig struct {
Debug bool `json:"payDebug"`
// 支付宝
AliPayAppId string `json:"payAliPayAppId"`
AliPayPrivateKey string `json:"payAliPayPrivateKey"`
AliPayAppCertPublicKey string `json:"payAliPayAppCertPublicKey"`
AliPayRootCert string `json:"payAliPayRootCert"`
AliPayCertPublicKeyRSA2 string `json:"payAliPayCertPublicKeyRSA2"`
// 微信支付
WxPayAppId string `json:"payWxPayAppId"`
WxPayMchId string `json:"payWxPayMchId"`
WxPaySerialNo string `json:"payWxPaySerialNo"`
WxPayAPIv3Key string `json:"payWxPayAPIv3Key"`
WxPayPrivateKey string `json:"payWxPayPrivateKey"`
// QQ支付
QQPayAppId string `json:"payQQPayAppId"`
QQPayMchId string `json:"payQQPayMchId"`
QQPayApiKey string `json:"payQQPayApiKey"`
}
// WechatOfficialAccountConfig 微信公众号配置
type WechatOfficialAccountConfig struct {
OfficialAppID string `json:"officialAccountAppId"` // appid
OfficialAppSecret string `json:"officialAccountAppSecret"` // app secret
OfficialToken string `json:"officialAccountToken"` // token
OfficialEncodingAESKey string `json:"officialAccountEncodingAESKey"` // EncodingAESKey
}
// WechatOpenPlatformConfig 微信开放平台配置
type WechatOpenPlatformConfig struct {
OpenAppID string `json:"openPlatformAppId"` // appid
OpenAppSecret string `json:"openPlatformAppSecret"` // app secret
OpenToken string `json:"openPlatformToken"` // token
OpenEncodingAESKey string `json:"openPlatformEncodingAESKey"` // EncodingAESKey
}
// WechatConfig 微信配置
type WechatConfig struct {
*WechatOfficialAccountConfig
*WechatOpenPlatformConfig
}
// LoginConfig 登录配置
type LoginConfig struct {
RegisterSwitch int `json:"loginRegisterSwitch"`
CaptchaSwitch int `json:"loginCaptchaSwitch"`
CaptchaType int `json:"loginCaptchaType"`
Avatar string `json:"loginAvatar"`
RoleId int64 `json:"loginRoleId"`
DeptId int64 `json:"loginDeptId"`
PostIds []int64 `json:"loginPostIds"`
Protocol string `json:"loginProtocol"`
Policy string `json:"loginPolicy"`
AutoOpenId int `json:"loginAutoOpenId"`
ForceInvite int `json:"loginForceInvite"`
}
+115
View File
@@ -0,0 +1,115 @@
// Package model
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package model
// 本地配置.
// LogConfig 日志配置
type LogConfig struct {
Switch bool `json:"switch"`
Queue bool `json:"queue"`
Module []string `json:"module"`
SkipCode []string `json:"skipCode"`
}
// ServeLogConfig 服务日志配置
type ServeLogConfig struct {
Switch bool `json:"switch"`
Queue bool `json:"queue"`
LevelFormat []string `json:"levelFormat"`
}
// GenerateAppCrudTemplate curd模板
type GenerateAppCrudTemplate struct {
Group string `json:"group"`
IsAddon bool `json:"isAddon"`
MasterPackage string `json:"masterPackage"`
TemplatePath string `json:"templatePath"`
ApiPath string `json:"apiPath"`
InputPath string `json:"inputPath"`
ControllerPath string `json:"controllerPath"`
LogicPath string `json:"logicPath"`
RouterPath string `json:"routerPath"`
SqlPath string `json:"sqlPath"`
WebApiPath string `json:"webApiPath"`
WebViewsPath string `json:"webViewsPath"`
}
// GenerateAppQueueTemplate 消息队列模板
type GenerateAppQueueTemplate struct {
Group string `json:"group"`
TemplatePath string `json:"templatePath"`
}
// GenerateAppTreeTemplate 关系树列表模板
type GenerateAppTreeTemplate struct {
Group string `json:"group"`
TemplatePath string `json:"templatePath"`
}
// GenerateConfig 生成代码配置
type GenerateConfig struct {
AllowedIPs []string `json:"allowedIPs"`
Application struct {
Crud struct {
Templates []*GenerateAppCrudTemplate `json:"templates"`
} `json:"crud"`
Queue struct {
Templates []*GenerateAppQueueTemplate `json:"templates"`
} `json:"queue"`
Tree struct {
Templates []*GenerateAppTreeTemplate `json:"templates"`
} `json:"tree"`
} `json:"application"`
Delimiters []string `json:"delimiters"`
DevPath string `json:"devPath"`
DisableTables []string `json:"disableTables"`
SelectDbs []string `json:"selectDbs"`
Addon *BuildAddonConfig `json:"addon"`
}
// BuildAddonConfig 构建插件模块配置
type BuildAddonConfig struct {
SrcPath string `json:"srcPath"`
WebApiPath string `json:"webApiPath"`
WebViewsPath string `json:"webViewsPath"`
}
// TCPServerConfig tcp服务器配置
type TCPServerConfig struct {
Address string `json:"address"`
}
// TCPClientConfig tcp客户端配置
type TCPClientConfig struct {
Cron *TCPClientConnConfig `json:"cron"`
Auth *TCPClientConnConfig `json:"auth"`
}
// TCPClientConnConfig tcp客户端认证
type TCPClientConnConfig struct {
Group string `json:"group"`
Name string `json:"name"`
Address string `json:"address"`
AppId string `json:"appId"`
SecretKey string `json:"secretKey"`
}
// TCPConfig tcp服务器配置
type TCPConfig struct {
Server *TCPServerConfig `json:"server"`
Client *TCPClientConfig `json:"client"`
}
// TokenConfig 登录令牌配置
type TokenConfig struct {
SecretKey string `json:"secretKey"`
Expires int64 `json:"expires"`
AutoRefresh bool `json:"autoRefresh"`
RefreshInterval int64 `json:"refreshInterval"`
MaxRefreshTimes int64 `json:"maxRefreshTimes"`
MultiLogin bool `json:"multiLogin"`
}
+37
View File
@@ -0,0 +1,37 @@
// Package model
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package model
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// Context 请求上下文结构
type Context struct {
Module string // 应用模块 admin|api|home|websocket
AddonName string // 插件名称 如果不是插件模块请求,可能为空
User *Identity // 上下文用户信息
Response *Response // 请求响应
Data g.Map // 自定kv变量 业务模块根据需要设置,不固定
}
// Identity 通用身份模型
type Identity struct {
Id int64 `json:"id" description:"用户ID"`
Pid int64 `json:"pid" description:"上级ID"`
DeptId int64 `json:"deptId" description:"部门ID"`
DeptType string `json:"deptType" description:"部门类型"`
RoleId int64 `json:"roleId" description:"角色ID"`
RoleKey string `json:"roleKey" description:"角色唯一标识符"`
Username string `json:"username" description:"用户名"`
RealName string `json:"realName" description:"姓名"`
Avatar string `json:"avatar" description:"头像"`
Email string `json:"email" description:"邮箱"`
Mobile string `json:"mobile" description:"手机号码"`
App string `json:"app" description:"登录应用"`
LoginAt *gtime.Time `json:"loginAt" description:"登录时间"`
}
+17
View File
@@ -0,0 +1,17 @@
// Package model
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package model
// Option 字典数据选项
type Option struct {
Key interface{} `json:"key"`
Label string `json:"label" description:"字典标签"`
Value interface{} `json:"value" description:"字典键值"`
ValueType string `json:"valueType" description:"键值数据类型"`
Type string `json:"type" description:"字典类型"`
ListClass string `json:"listClass" description:"表格回显样式"`
Extra interface{} `json:"extra" description:"额外数据配置"`
}
View File
+53
View File
@@ -0,0 +1,53 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AddonHgexampleTable is the golang structure of table hg_addon_hgexample_table for DAO operations like Where/Data.
type AddonHgexampleTable struct {
g.Meta `orm:"table:hg_addon_hgexample_table, do:true"`
Id any // ID
Pid any // 上级ID
Level any // 树等级
Tree any // 关系树
CategoryId any // 分类ID
Flag *gjson.Json // 标签
Title any // 标题
Description any // 描述
Content any // 内容
Image any // 单图
Images *gjson.Json // 多图
Attachfile any // 附件
Attachfiles *gjson.Json // 多附件
Map *gjson.Json // 动态键值对
Star any // 推荐星
Price any // 价格
Views any // 浏览次数
ActivityAt *gtime.Time // 活动时间
StartAt *gtime.Time // 开启时间
EndAt *gtime.Time // 结束时间
Switch any // 开关
Sort any // 排序
Avatar any // 头像
Sex any // 性别
Qq any // qq
Email any // 邮箱
Mobile any // 手机号码
Hobby *gjson.Json // 爱好
Channel any // 渠道
CityId any // 所在城市
Remark any // 备注
Status any // 状态
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
DeletedAt *gtime.Time // 删除时间
}
+26
View File
@@ -0,0 +1,26 @@
// =================================================================================
// 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"
)
// AddonHgexampleTenantOrder is the golang structure of table hg_addon_hgexample_tenant_order for DAO operations like Where/Data.
type AddonHgexampleTenantOrder struct {
g.Meta `orm:"table:hg_addon_hgexample_tenant_order, do:true"`
Id any // 主键
TenantId any // 租户ID
MerchantId any // 商户ID
UserId any // 用户ID
ProductName any // 购买产品
OrderSn any // 订单号
Money any // 充值金额
Remark any // 备注
Status any // 订单状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+25
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"
)
// AdminCash is the golang structure of table hg_admin_cash for DAO operations like Where/Data.
type AdminCash struct {
g.Meta `orm:"table:hg_admin_cash, do:true"`
Id any // ID
MemberId any // 管理员ID
Money any // 提现金额
Fee any // 手续费
LastMoney any // 最终到账金额
Ip any // 申请人IP
Status any // 状态码
Msg any // 处理结果
HandleAt *gtime.Time // 处理时间
CreatedAt *gtime.Time // 申请时间
}
+30
View File
@@ -0,0 +1,30 @@
// =================================================================================
// 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"
)
// AdminCreditsLog is the golang structure of table hg_admin_credits_log for DAO operations like Where/Data.
type AdminCreditsLog struct {
g.Meta `orm:"table:hg_admin_credits_log, do:true"`
Id any // 变动ID
MemberId any // 管理员ID
AppId any // 应用id
AddonsName any // 插件名称
CreditType any // 变动类型
CreditGroup any // 变动组别
BeforeNum any // 变动前
Num any // 变动数据
AfterNum any // 变动后
Remark any // 备注
Ip any // 操作人IP
MapId any // 关联ID
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+29
View File
@@ -0,0 +1,29 @@
// =================================================================================
// 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"
)
// AdminDept is the golang structure of table hg_admin_dept for DAO operations like Where/Data.
type AdminDept struct {
g.Meta `orm:"table:hg_admin_dept, do:true"`
Id any // 部门ID
Pid any // 父部门ID
Name any // 部门名称
Code any // 部门编码
Type any // 部门类型
Leader any // 负责人
Phone any // 联系电话
Email any // 邮箱
Level any // 关系树等级
Tree any // 关系树
Sort any // 排序
Status any // 部门状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+44
View File
@@ -0,0 +1,44 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AdminMember is the golang structure of table hg_admin_member for DAO operations like Where/Data.
type AdminMember struct {
g.Meta `orm:"table:hg_admin_member, do:true"`
Id any // 管理员ID
DeptId any // 部门ID
RoleId any // 角色ID
RealName any // 真实姓名
Username any // 帐号
PasswordHash any // 密码
Salt any // 密码盐
PasswordResetToken any // 密码重置令牌
Integral any // 积分
Balance any // 余额
Avatar any // 头像
Sex any // 性别
Qq any // qq
Email any // 邮箱
Mobile any // 手机号码
Birthday *gtime.Time // 生日
CityId any // 城市编码
Address any // 联系地址
Pid any // 上级管理员ID
Level any // 关系树等级
Tree any // 关系树
InviteCode any // 邀请码
Cash *gjson.Json // 提现配置
LastActiveAt *gtime.Time // 最后活跃时间
Remark any // 备注
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+16
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"
)
// AdminMemberPost is the golang structure of table hg_admin_member_post for DAO operations like Where/Data.
type AdminMemberPost struct {
g.Meta `orm:"table:hg_admin_member_post, do:true"`
MemberId any // 管理员ID
PostId any // 岗位ID
}
+16
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"
)
// AdminMemberRole is the golang structure of table hg_admin_member_role for DAO operations like Where/Data.
type AdminMemberRole struct {
g.Meta `orm:"table:hg_admin_member_role, do:true"`
MemberId any // 管理员ID
RoleId any // 角色ID
}
+41
View File
@@ -0,0 +1,41 @@
// =================================================================================
// 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"
)
// AdminMenu is the golang structure of table hg_admin_menu for DAO operations like Where/Data.
type AdminMenu struct {
g.Meta `orm:"table:hg_admin_menu, do:true"`
Id any // 菜单ID
Pid any // 父菜单ID
Level any // 关系树等级
Tree any // 关系树
Title any // 菜单名称
Name any // 名称编码
Path any // 路由地址
Icon any // 菜单图标
Type any // 菜单类型(1目录 2菜单 3按钮)
Redirect any // 重定向地址
Permissions any // 菜单包含权限集合
PermissionName any // 权限名称
Component any // 组件路径
AlwaysShow any // 取消自动计算根路由模式
ActiveMenu any // 高亮菜单编码
IsRoot any // 是否跟路由
IsFrame any // 是否内嵌
FrameSrc any // 内联外部地址
KeepAlive any // 缓存该路由
Hidden any // 是否隐藏
Affix any // 是否固定
Sort any // 排序
Remark any // 备注
Status any // 菜单状态
UpdatedAt *gtime.Time // 更新时间
CreatedAt *gtime.Time // 创建时间
}
+30
View File
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AdminNotice is the golang structure of table hg_admin_notice for DAO operations like Where/Data.
type AdminNotice struct {
g.Meta `orm:"table:hg_admin_notice, do:true"`
Id any // 公告ID
Title any // 公告标题
Type any // 公告类型
Tag any // 标签
Content any // 公告内容
Receiver *gjson.Json // 接收者
Remark any // 备注
Sort any // 排序
Status any // 公告状态
CreatedBy any // 发送人
UpdatedBy any // 修改人
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
+21
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"
)
// AdminNoticeRead is the golang structure of table hg_admin_notice_read for DAO operations like Where/Data.
type AdminNoticeRead struct {
g.Meta `orm:"table:hg_admin_notice_read, do:true"`
Id any // 记录ID
NoticeId any // 公告ID
MemberId any // 会员ID
Clicks any // 已读次数
UpdatedAt *gtime.Time // 更新时间
CreatedAt *gtime.Time // 阅读时间
}
+30
View File
@@ -0,0 +1,30 @@
// =================================================================================
// 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"
)
// AdminOauth is the golang structure of table hg_admin_oauth for DAO operations like Where/Data.
type AdminOauth struct {
g.Meta `orm:"table:hg_admin_oauth, do:true"`
Id any // 主键
MemberId any // 用户ID
Unionid any // 唯一ID
OauthClient any // 授权组别
OauthOpenid any // 授权开放ID
Sex any // 性别
Nickname any // 昵称
HeadPortrait any // 头像
Birthday *gtime.Time // 生日
Country any // 国家
Province any // 省
City any // 市
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+27
View File
@@ -0,0 +1,27 @@
// =================================================================================
// 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"
)
// AdminOrder is the golang structure of table hg_admin_order for DAO operations like Where/Data.
type AdminOrder struct {
g.Meta `orm:"table:hg_admin_order, do:true"`
Id any // 主键
MemberId any // 管理员id
OrderType any // 订单类型
ProductId any // 产品id
OrderSn any // 关联订单号
Money any // 充值金额
Remark any // 备注
RefundReason any // 退款原因
RejectRefundReason any // 拒绝退款原因
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+23
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"
)
// AdminPost is the golang structure of table hg_admin_post for DAO operations like Where/Data.
type AdminPost struct {
g.Meta `orm:"table:hg_admin_post, do:true"`
Id any // 岗位ID
Code any // 岗位编码
Name any // 岗位名称
Remark any // 备注
Sort any // 排序
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+29
View File
@@ -0,0 +1,29 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AdminRole is the golang structure of table hg_admin_role for DAO operations like Where/Data.
type AdminRole struct {
g.Meta `orm:"table:hg_admin_role, do:true"`
Id any // 角色ID
Name any // 角色名称
Key any // 角色权限字符串
DataScope any // 数据范围
CustomDept *gjson.Json // 自定义部门权限
Pid any // 上级角色ID
Level any // 关系树等级
Tree any // 关系树
Remark any // 备注
Sort any // 排序
Status any // 角色状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+22
View File
@@ -0,0 +1,22 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// AdminRoleCasbin is the golang structure of table hg_admin_role_casbin for DAO operations like Where/Data.
type AdminRoleCasbin struct {
g.Meta `orm:"table:hg_admin_role_casbin, do:true"`
Id any //
PType any //
V0 any //
V1 any //
V2 any //
V3 any //
V4 any //
V5 any //
}
+16
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"
)
// AdminRoleMenu is the golang structure of table hg_admin_role_menu for DAO operations like Where/Data.
type AdminRoleMenu struct {
g.Meta `orm:"table:hg_admin_role_menu, do:true"`
RoleId any // 角色ID
MenuId any // 菜单ID
}
+44
View File
@@ -0,0 +1,44 @@
// =================================================================================
// 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"
)
// AppMember is the golang structure of table hg_app_member for DAO operations like Where/Data.
type AppMember struct {
g.Meta `orm:"table:hg_app_member, do:true"`
Id any // 主键
TenantId any // 租户ID
MemberNo any // 会员编号
Username any // 用户名
MobileCipher any // 手机号密文(AES-GCM)
MobileHash any // 手机号检索哈希(HMAC-SHA256)
MobileMask any // 手机号脱敏值
PasswordHash any // 登录密码哈希(bcrypt)
TradePasswordHash any // 交易密码哈希
LevelId any // 会员等级ID
ParentId any // 上级会员ID
Level any // 团队层级
Tree any // 关系树
InviteCode any // 邀请码
MemberStatus any // 会员状态
RiskStatus any // 风控状态
AutoDispatch any // 自动派单
CreditScore any // 信用分
IsTestAccount any // 测试账号
LastLoginAt *gtime.Time // 最后登录时间
LastLoginIpCipher any // 最后登录IP密文
LastLoginIpMask any // 最后登录IP脱敏值
LastLoginRegion any // 最后登录地区
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 注销时间
}
@@ -0,0 +1,34 @@
// =================================================================================
// 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"
)
// AppMemberAddress is the golang structure of table hg_app_member_address for DAO operations like Where/Data.
type AppMemberAddress struct {
g.Meta `orm:"table:hg_app_member_address, do:true"`
Id any // 主键
TenantId any // 租户ID
MemberId any // 会员ID
ReceiverCipher any // 收货人密文
ReceiverMask any // 收货人脱敏值
MobileCipher any // 手机号密文
MobileMask any // 手机号脱敏值
Province any // 省
City any // 市
District any // 区县
AddressCipher any // 详细地址密文
AddressMask any // 详细地址脱敏值
IsDefault any // 默认地址
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
@@ -0,0 +1,32 @@
// =================================================================================
// 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"
)
// AppMemberLevel is the golang structure of table hg_app_member_level for DAO operations like Where/Data.
type AppMemberLevel struct {
g.Meta `orm:"table:hg_app_member_level, do:true"`
Id any // 主键
TenantId any // 租户ID
LevelCode any // 稳定等级编码
Name any // 等级名称
IconAttachmentId any // 图标附件ID
IconUrl any // 图标URL
CurrentVersionId any // 当前发布版本ID
MemberCount any // 会员数(可重建)
Status any // 状态 1正常 2停用
Sort any // 排序
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
@@ -0,0 +1,37 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AppMemberLevelVersion is the golang structure of table hg_app_member_level_version for DAO operations like Where/Data.
type AppMemberLevelVersion struct {
g.Meta `orm:"table:hg_app_member_level_version, do:true"`
Id any // 主键
TenantId any // 租户ID
LevelId any // 等级ID
VersionNo any // 版本号
UpgradeAmount any // 升级金额(分)
GiftAmount any // 赠送金额(分)
DailyOrderLimit any // 每日接单次数
CommissionRate any // 佣金万分比
DailyWithdrawLimit any // 每日提现次数
RuleJson *gjson.Json // 扩展规则快照
PublishStatus any // 发布状态
EffectiveAt *gtime.Time // 计划生效时间
PublishedAt *gtime.Time // 发布时间
ApprovalRequestId any // 审批单ID
BaseVersionId any // 基础版本ID
Version any // 乐观锁
Remark any // 变更说明
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,28 @@
// =================================================================================
// 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"
)
// AppMemberNotice is the golang structure of table hg_app_member_notice for DAO operations like Where/Data.
type AppMemberNotice struct {
g.Meta `orm:"table:hg_app_member_notice, do:true"`
Id any // 主键
TenantId any // 租户ID
MemberId any // 会员ID,0为全体
Title any // 标题
Content any // 内容
SourceType any // 来源 1真实通知 2运营模拟
StartAt *gtime.Time // 开始时间
EndAt *gtime.Time // 结束时间
NoticeStatus any // 状态 1有效 2撤回
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,37 @@
// =================================================================================
// 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"
)
// AppMemberPaymentAccount is the golang structure of table hg_app_member_payment_account for DAO operations like Where/Data.
type AppMemberPaymentAccount struct {
g.Meta `orm:"table:hg_app_member_payment_account, do:true"`
Id any // 主键
TenantId any // 租户ID
MemberId any // 会员ID
AccountType any // 账户类型
BankCode any // 银行编码
BankName any // 银行名称
HolderCipher any // 持有人密文
HolderMask any // 持有人脱敏值
MobileCipher any // 预留手机号密文
MobileMask any // 预留手机号脱敏值
AccountNoCipher any // 账号密文
AccountNoHash any // 账号检索哈希
AccountNoMask any // 账号脱敏值
QrAttachmentId any // 收款码附件ID
VerifyStatus any // 核验状态
IsDefault any // 默认账户
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
@@ -0,0 +1,30 @@
// =================================================================================
// 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"
)
// AppMemberProfile is the golang structure of table hg_app_member_profile for DAO operations like Where/Data.
type AppMemberProfile struct {
g.Meta `orm:"table:hg_app_member_profile, do:true"`
Id any // 主键
TenantId any // 租户ID
MemberId any // 会员ID
RealNameCipher any // 真实姓名密文
RealNameMask any // 真实姓名脱敏值
IdNoCipher any // 证件号密文
IdNoHash any // 证件号检索哈希
IdNoMask any // 证件号脱敏值
AvatarAttachmentId any // 头像附件ID
KycStatus any // 实名状态
KycVerifiedAt *gtime.Time // 实名时间
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,27 @@
// =================================================================================
// 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"
)
// AppMemberStatusLog is the golang structure of table hg_app_member_status_log for DAO operations like Where/Data.
type AppMemberStatusLog struct {
g.Meta `orm:"table:hg_app_member_status_log, do:true"`
Id any // 主键
TenantId any // 租户ID
MemberId any // 会员ID
FromStatus any // 原状态
ToStatus any // 目标状态
ReasonCode any // 原因编码
ReasonText any // 原因说明
EffectiveAt *gtime.Time // 生效时间
ExpireAt *gtime.Time // 失效时间
ApprovalRequestId any // 审批单ID
OperatorId any // 执行人
CreatedAt *gtime.Time // 创建时间
}
@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ApprovalAction is the golang structure of table hg_approval_action for DAO operations like Where/Data.
type ApprovalAction struct {
g.Meta `orm:"table:hg_approval_action, do:true"`
Id any // 主键
TenantId any // 租户ID
ApprovalRequestId any // 审批请求ID
StepNo any // 节点顺序
ActorId any // 操作人
Action any // 审批动作
ReasonCode any // 原因编码
Comment any // 审批意见
SnapshotJson *gjson.Json // 操作时快照
ActorIpCipher any // 操作IP密文
MfaVerified any // 是否二次认证
CreatedAt *gtime.Time // 创建时间
}
@@ -0,0 +1,40 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ApprovalRequest is the golang structure of table hg_approval_request for DAO operations like Where/Data.
type ApprovalRequest struct {
g.Meta `orm:"table:hg_approval_request, do:true"`
Id any // 主键
TenantId any // 租户ID
ApprovalNo any // 审批单号
ApprovalType any // 审批类型
TargetType any // 目标类型
TargetId any // 目标ID
Action any // 拟执行动作
Title any // 审批标题
PayloadJson *gjson.Json // 待执行数据快照
DiffJson *gjson.Json // 前后差异
RiskLevel any // 风险级别
RequiredApprovals any // 需要通过数
ApprovalStatus any // 审批状态
ApplicantId any // 申请人
SubmittedAt *gtime.Time // 提交时间
DecidedAt *gtime.Time // 决定时间
ExecutedAt *gtime.Time // 执行时间
ExpireAt *gtime.Time // 超时时间
Version any // 乐观锁
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+36
View File
@@ -0,0 +1,36 @@
// =================================================================================
// 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"
)
// Banner is the golang structure of table hg_banner for DAO operations like Where/Data.
type Banner struct {
g.Meta `orm:"table:hg_banner, do:true"`
Id any // 主键
TenantId any // 租户ID
Name any // 后台名称
Position any // 投放位置
ImageAttachmentId any // 图片附件ID
ImageUrl any // 图片URL
AltText any // 替代文本
TargetType any // 跳转类型
TargetValue any // 跳转值
StartAt *gtime.Time // 开始时间
EndAt *gtime.Time // 结束时间
PublishStatus any // 发布状态
Sort any // 排序
Version any // 乐观锁
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
+34
View File
@@ -0,0 +1,34 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// BizAuditLog is the golang structure of table hg_biz_audit_log for DAO operations like Where/Data.
type BizAuditLog struct {
g.Meta `orm:"table:hg_biz_audit_log, do:true"`
Id any // 主键
TenantId any // 租户ID
AuditNo any // 审计号
ActorType any // 操作人类型
ActorId any // 操作人ID
Module any // 业务模块
Action any // 操作动作
TargetType any // 目标类型
TargetId any // 目标ID
BeforeDigest any // 变更前摘要
AfterDigest any // 变更后摘要
ChangeJson *gjson.Json // 已脱敏差异
Reason any // 操作原因
ApprovalNo any // 审批单号
TraceId any // 链路ID
PrevHash any // 前一条哈希
RowHash any // 当前行哈希
CreatedAt *gtime.Time // 创建时间
}
+32
View File
@@ -0,0 +1,32 @@
// =================================================================================
// 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"
)
// Content is the golang structure of table hg_content for DAO operations like Where/Data.
type Content struct {
g.Meta `orm:"table:hg_content, do:true"`
Id any // 主键
TenantId any // 租户ID
ContentKey any // 稳定内容标识
ContentType any // 内容类型
Title any // 后台标题
PublishedVersionId any // 当前发布版本ID
PublishStatus any // 发布状态
PublishedAt *gtime.Time // 发布时间
Sort any // 排序
Version any // 乐观锁
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
@@ -0,0 +1,31 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ContentVersion is the golang structure of table hg_content_version for DAO operations like Where/Data.
type ContentVersion struct {
g.Meta `orm:"table:hg_content_version, do:true"`
Id any // 主键
TenantId any // 租户ID
ContentId any // 内容ID
VersionNo any // 版本号
Title any // 展示标题
Summary any // 摘要
BodyHtml any // 清洗后HTML
BodyText any // 降级文本
CoverUrl any // 封面图片URL
AssetIds *gjson.Json // 引用附件ID
PublishStatus any // 发布状态
EffectiveAt *gtime.Time // 计划生效时间
ApprovalRequestId any // 审批单ID
CreatedBy any // 创建者
CreatedAt *gtime.Time // 创建时间
}
@@ -0,0 +1,35 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CustomerService is the golang structure of table hg_customer_service for DAO operations like Where/Data.
type CustomerService struct {
g.Meta `orm:"table:hg_customer_service, do:true"`
Id any // 主键
TenantId any // 租户ID
ServiceCode any // 客服编码
Name any // 客服名称
AvatarUrl any // 头像地址
WorkTime any // 工作时间说明
OnlineStatus any // 在线状态
ServiceUrl any // 客服跳转URL
BackupContact any // 备用联系方式
SessionMapping *gjson.Json // 第三方会话映射
Status any // 状态
Sort any // 排序
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
@@ -0,0 +1,26 @@
// =================================================================================
// 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"
)
// DashboardDailyStat is the golang structure of table hg_dashboard_daily_stat for DAO operations like Where/Data.
type DashboardDailyStat struct {
g.Meta `orm:"table:hg_dashboard_daily_stat, do:true"`
Id any // 主键
TenantId any // 租户ID
StatDate *gtime.Time // 统计日期
DimensionType any // 维度类型
DimensionValue any // 维度值
MetricCode any // 指标编码
MetricCount any // 指标数量
MetricAmount any // 指标金额(最小货币单位)
CalculatedAt *gtime.Time // 计算时间
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// FinanceReview is the golang structure of table hg_finance_review for DAO operations like Where/Data.
type FinanceReview struct {
g.Meta `orm:"table:hg_finance_review, do:true"`
Id any // 主键
TenantId any // 租户ID
ApprovalRequestId any // 审批单ID
BizType any // 业务类型
BizId any // 业务ID
ReviewStage any // 审核阶段
ReviewerId any // 审核人
Decision any // 审核结论
ReasonCode any // 原因编码
ReasonText any // 审核说明
SnapshotJson *gjson.Json // 审核快照
CreatedAt *gtime.Time // 创建时间
}
@@ -0,0 +1,28 @@
// =================================================================================
// 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"
)
// IdempotencyRecord is the golang structure of table hg_idempotency_record for DAO operations like Where/Data.
type IdempotencyRecord struct {
g.Meta `orm:"table:hg_idempotency_record, do:true"`
Id any // 主键
TenantId any // 租户ID
Scope any // 业务作用域
IdempotencyKey any // 幂等键
RequestDigest any // 请求摘要
ResourceType any // 资源类型
ResourceId any // 资源ID
ProcessStatus any // 处理状态
ResponseCode any // 响应码
ResponseDigest any // 响应摘要
ExpireAt *gtime.Time // 过期时间
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+29
View File
@@ -0,0 +1,29 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// OutboxEvent is the golang structure of table hg_outbox_event for DAO operations like Where/Data.
type OutboxEvent struct {
g.Meta `orm:"table:hg_outbox_event, do:true"`
Id any // 主键
TenantId any // 租户ID
EventNo any // 事件号
AggregateType any // 聚合根类型
AggregateId any // 聚合根ID
EventType any // 事件类型
PayloadJson *gjson.Json // 已脱敏事件数据
PublishStatus any // 发送状态
RetryCount any // 重试次数
NextRetryAt *gtime.Time // 下次重试时间
LastError any // 最后错误
CreatedAt *gtime.Time // 创建时间
PublishedAt *gtime.Time // 发送时间
}
+46
View File
@@ -0,0 +1,46 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// PayLog is the golang structure of table hg_pay_log for DAO operations like Where/Data.
type PayLog struct {
g.Meta `orm:"table:hg_pay_log, do:true"`
Id any // 主键
MemberId any // 会员ID
AppId any // 应用ID
AddonsName any // 插件名称
OrderSn any // 关联订单号
OrderGroup any // 组别[默认统一支付类型]
Openid any // openid
MchId any // 商户支付账户
Subject any // 订单标题
Detail *gjson.Json // 支付商品详情
AuthCode any // 刷卡码
OutTradeNo any // 商户订单号
TransactionId any // 交易号
PayType any // 支付类型
PayAmount any // 支付金额
ActualAmount any // 实付金额
PayStatus any // 支付状态
PayAt *gtime.Time // 支付时间
TradeType any // 交易类型
RefundSn any // 退款单号
IsRefund any // 是否退款
Custom any // 自定义参数
CreateIp any // 创建者IP
PayIp any // 支付者IP
NotifyUrl any // 支付通知回调地址
ReturnUrl any // 买家付款成功跳转地址
TraceIds *gjson.Json // 链路ID集合
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+28
View File
@@ -0,0 +1,28 @@
// =================================================================================
// 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"
)
// PayRefund is the golang structure of table hg_pay_refund for DAO operations like Where/Data.
type PayRefund struct {
g.Meta `orm:"table:hg_pay_refund, do:true"`
Id any // 主键ID
MemberId any // 会员ID
AppId any // 应用ID
OrderSn any // 业务订单号
RefundTradeNo any // 退款交易号
RefundMoney any // 退款金额
RefundWay any // 退款方式
Ip any // 申请者IP
Reason any // 申请退款原因
Remark any // 退款备注
Status any // 退款状态
CreatedAt *gtime.Time // 申请时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,35 @@
// =================================================================================
// 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"
)
// PaymentChannel is the golang structure of table hg_payment_channel for DAO operations like Where/Data.
type PaymentChannel struct {
g.Meta `orm:"table:hg_payment_channel, do:true"`
Id any // 主键
TenantId any // 租户ID
ChannelCode any // 渠道编码
Name any // 渠道名称
ChannelType any // 渠道类型
Direction any // 支持方向
ConfigCipher any // 渠道配置密文
MinAmount any // 最小金额(分)
MaxAmount any // 最大金额(分)
FeeType any // 手续费类型
FeeFixedAmount any // 固定手续费(分)
FeeRate any // 费率(万分比)
Status any // 状态
Sort any // 排序
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
+41
View File
@@ -0,0 +1,41 @@
// =================================================================================
// 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"
)
// Product is the golang structure of table hg_product for DAO operations like Where/Data.
type Product struct {
g.Meta `orm:"table:hg_product, do:true"`
Id any // 主键
TenantId any // 租户ID
ProductNo any // 商品编号
CategoryId any // 分类ID
ProductType any // 商品类型
PaymentType any // 支付方式
Name any // 商品名称
ShopName any // 店铺名称
PriceAmount any // 单价(分)
Currency any // 币种
CoverAttachmentId any // 封面附件ID
CoverUrl any // 封面URL
DetailHtml any // 商品详情
IsRecommended any // 是否推荐
PublishStatus any // 发布状态
StartAt *gtime.Time // 展示开始时间
EndAt *gtime.Time // 展示结束时间
Sort any // 排序
Version any // 乐观锁
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
@@ -0,0 +1,30 @@
// =================================================================================
// 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"
)
// ProductCategory is the golang structure of table hg_product_category for DAO operations like Where/Data.
type ProductCategory struct {
g.Meta `orm:"table:hg_product_category, do:true"`
Id any // 主键
TenantId any // 租户ID
Pid any // 上级ID
Level any // 树等级
Tree any // 关系树
CategoryCode any // 分类编码
Name any // 分类名称
Status any // 状态
Sort any // 排序
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
@@ -0,0 +1,40 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// RechargeOrder is the golang structure of table hg_recharge_order for DAO operations like Where/Data.
type RechargeOrder struct {
g.Meta `orm:"table:hg_recharge_order, do:true"`
Id any // 主键
TenantId any // 租户ID
RechargeNo any // 充值单号
MemberId any // 会员ID
ChannelId any // 支付渠道ID
RequestAmount any // 申请金额(分)
PaidAmount any // 实付金额(分)
Currency any // 币种
ExternalNo any // 外部支付单号
VoucherAttachmentIds *gjson.Json // 打款凭证附件
RechargeType any // 充值类型
RechargeStatus any // 充值状态
Remark any // 会员备注
ReviewReasonCode any // 审核原因编码
ReviewReason any // 审核意见
ApprovalRequestId any // 审批单ID
LedgerId any // 入账台账ID
PaidAt *gtime.Time // 支付时间
ReviewedAt *gtime.Time // 审核时间
CreditedAt *gtime.Time // 入账时间
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SensitiveAccessLog is the golang structure of table hg_sensitive_access_log for DAO operations like Where/Data.
type SensitiveAccessLog struct {
g.Meta `orm:"table:hg_sensitive_access_log, do:true"`
Id any // 主键
TenantId any // 租户ID
AccessNo any // 查看流水号
ActorId any // 管理员ID
TargetType any // 目标类型
TargetId any // 目标ID
FieldSet *gjson.Json // 查看字段集
PurposeCode any // 用途编码
PurposeText any // 用途说明
AuthorizationNo any // 授权号
MfaVerified any // 是否二次认证
Result any // 查看结果
TraceId any // 链路ID
CreatedAt *gtime.Time // 创建时间
}
@@ -0,0 +1,34 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SiteConfigVersion is the golang structure of table hg_site_config_version for DAO operations like Where/Data.
type SiteConfigVersion struct {
g.Meta `orm:"table:hg_site_config_version, do:true"`
Id any // 主键
TenantId any // 租户ID
ConfigNo any // 配置版本号
ConfigGroup any // 配置组
SchemaVersion any // Schema版本
ConfigJson *gjson.Json // 完整配置快照
ConfigDigest any // 配置摘要
PublishStatus any // 发布状态
EffectiveAt *gtime.Time // 计划生效时间
PublishedAt *gtime.Time // 实际发布时间
ApprovalRequestId any // 审批单ID
BaseVersionId any // 基础版本ID
Version any // 乐观锁
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+29
View File
@@ -0,0 +1,29 @@
// =================================================================================
// 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"
)
// SysAddonsConfig is the golang structure of table hg_sys_addons_config for DAO operations like Where/Data.
type SysAddonsConfig struct {
g.Meta `orm:"table:hg_sys_addons_config, do:true"`
Id any // 配置ID
AddonName any // 插件名称
Group any // 分组
Name any // 参数名称
Type any // 键值类型:string,int,uint,bool,datetime,date
Key any // 参数键名
Value any // 参数键值
DefaultValue any // 默认值
Sort any // 排序
Tip any // 变量描述
IsDefault any // 是否为系统默认
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -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"
)
// SysAddonsInstall is the golang structure of table hg_sys_addons_install for DAO operations like Where/Data.
type SysAddonsInstall struct {
g.Meta `orm:"table:hg_sys_addons_install, do:true"`
Id interface{} // 主键
Name interface{} // 插件名称
Version interface{} // 版本号
Status interface{} // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+32
View File
@@ -0,0 +1,32 @@
// =================================================================================
// 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"
)
// SysAttachment is the golang structure of table hg_sys_attachment for DAO operations like Where/Data.
type SysAttachment struct {
g.Meta `orm:"table:hg_sys_attachment, do:true"`
Id any // 文件ID
AppId any // 应用ID
MemberId any // 管理员ID
CateId any // 上传分类
Drive any // 上传驱动
Name any // 文件原始名
Kind any // 上传类型
MimeType any // 扩展类型
NaiveType any // NaiveUI类型
Path any // 本地路径
FileUrl any // url
Size any // 文件大小
Ext any // 扩展名
Md5 any // md5校验码
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+21
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"
)
// SysBlacklist is the golang structure of table hg_sys_blacklist for DAO operations like Where/Data.
type SysBlacklist struct {
g.Meta `orm:"table:hg_sys_blacklist, do:true"`
Id any // 黑名单ID
Ip any // IP地址
Remark any // 备注
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+28
View File
@@ -0,0 +1,28 @@
// =================================================================================
// 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"
)
// SysConfig is the golang structure of table hg_sys_config for DAO operations like Where/Data.
type SysConfig struct {
g.Meta `orm:"table:hg_sys_config, do:true"`
Id any // 配置ID
Group any // 配置分组
Name any // 参数名称
Type any // 键值类型:string,int,uint,bool,datetime,date
Key any // 参数键名
Value any // 参数键值
DefaultValue any // 默认值
Sort any // 排序
Tip any // 变量描述
IsDefault any // 是否为系统默认
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+28
View File
@@ -0,0 +1,28 @@
// =================================================================================
// 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"
)
// SysCron is the golang structure of table hg_sys_cron for DAO operations like Where/Data.
type SysCron struct {
g.Meta `orm:"table:hg_sys_cron, do:true"`
Id any // 任务ID
GroupId any // 分组ID
Title any // 任务标题
Name any // 任务方法
Params any // 函数参数
Pattern any // 表达式
Policy any // 策略
Count any // 执行次数
Sort any // 排序
Remark any // 备注
Status any // 任务状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+24
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"
)
// SysCronGroup is the golang structure of table hg_sys_cron_group for DAO operations like Where/Data.
type SysCronGroup struct {
g.Meta `orm:"table:hg_sys_cron_group, do:true"`
Id any // 任务分组ID
Pid any // 父类任务分组ID
Name any // 分组名称
IsDefault any // 是否默认
Sort any // 排序
Remark any // 备注
Status any // 分组状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+27
View File
@@ -0,0 +1,27 @@
// =================================================================================
// 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"
)
// SysDictData is the golang structure of table hg_sys_dict_data for DAO operations like Where/Data.
type SysDictData struct {
g.Meta `orm:"table:hg_sys_dict_data, do:true"`
Id any // 字典数据ID
Label any // 字典标签
Value any // 字典键值
ValueType any // 键值数据类型:string,int,uint,bool,datetime,date
Type any // 字典类型
ListClass any // 表格回显样式
IsDefault any // 是否为系统默认
Sort any // 字典排序
Remark any // 备注
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+24
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"
)
// SysDictType is the golang structure of table hg_sys_dict_type for DAO operations like Where/Data.
type SysDictType struct {
g.Meta `orm:"table:hg_sys_dict_type, do:true"`
Id any // 字典类型ID
Pid any // 父类字典类型ID
Name any // 字典类型名称
Type any // 字典类型
Sort any // 排序
Remark any // 备注
Status any // 字典类型状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+25
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"
)
// SysEmsLog is the golang structure of table hg_sys_ems_log for DAO operations like Where/Data.
type SysEmsLog struct {
g.Meta `orm:"table:hg_sys_ems_log, do:true"`
Id any // 主键
Event any // 事件
Email any // 邮箱地址,多个用;隔开
Code any // 验证码
Times any // 验证次数
Content any // 邮件内容
Ip any // ip地址
Status any // 状态(1未验证,2已验证)
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+30
View File
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SysGenCodes is the golang structure of table hg_sys_gen_codes for DAO operations like Where/Data.
type SysGenCodes struct {
g.Meta `orm:"table:hg_sys_gen_codes, do:true"`
Id any // 生成ID
GenType any // 生成类型
GenTemplate any // 生成模板
VarName any // 实体命名
Options *gjson.Json // 配置选项
DbName any // 数据库名称
TableName any // 主表名称
TableComment any // 主表注释
DaoName any // 主表dao模型
MasterColumns *gjson.Json // 主表字段
AddonName any // 插件名称
Status any // 生成状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+32
View File
@@ -0,0 +1,32 @@
// =================================================================================
// 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"
)
// SysGenCurdDemo is the golang structure of table hg_sys_gen_curd_demo for DAO operations like Where/Data.
type SysGenCurdDemo struct {
g.Meta `orm:"table:hg_sys_gen_curd_demo, do:true"`
Id any // ID
CategoryId any // 分类ID
Title any // 标题
Description any // 描述
Content any // 内容
Image any // 单图
Attachfile any // 附件
CityId any // 所在城市
Switch any // 显示开关
Sort any // 排序
Status any // 状态
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
DeletedAt *gtime.Time // 删除时间
}
+29
View File
@@ -0,0 +1,29 @@
// =================================================================================
// 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"
)
// SysGenTreeDemo is the golang structure of table hg_sys_gen_tree_demo for DAO operations like Where/Data.
type SysGenTreeDemo struct {
g.Meta `orm:"table:hg_sys_gen_tree_demo, do:true"`
Id any // ID
Pid any // 上级ID
Level any // 关系树级别
Tree any // 关系树
CategoryId any // 分类ID
Title any // 标题
Description any // 描述
Sort any // 排序
Status any // 状态
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
DeletedAt *gtime.Time // 删除时间
}
+39
View File
@@ -0,0 +1,39 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SysLog is the golang structure of table hg_sys_log for DAO operations like Where/Data.
type SysLog struct {
g.Meta `orm:"table:hg_sys_log, do:true"`
Id any // 日志ID
ReqId any // 对外ID
AppId any // 应用ID
MerchantId any // 商户ID
MemberId any // 用户ID
Method any // 提交类型
Module any // 访问模块
Url any // 提交url
GetData *gjson.Json // get数据
PostData *gjson.Json // post数据
HeaderData *gjson.Json // header数据
Ip any // IP地址
ProvinceId any // 省编码
CityId any // 市编码
ErrorCode any // 报错code
ErrorMsg any // 对外错误提示
ErrorData *gjson.Json // 报错日志
UserAgent any // UA信息
TakeUpTime any // 请求耗时
Timestamp any // 响应时间
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+30
View File
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SysLoginLog is the golang structure of table hg_sys_login_log for DAO operations like Where/Data.
type SysLoginLog struct {
g.Meta `orm:"table:hg_sys_login_log, do:true"`
Id any // 日志ID
ReqId any // 请求ID
MemberId any // 用户ID
Username any // 用户名
Response *gjson.Json // 响应数据
LoginAt *gtime.Time // 登录时间
LoginIp any // 登录IP
ProvinceId any // 省编码
CityId any // 市编码
UserAgent any // UA信息
ErrMsg any // 错误提示
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+27
View File
@@ -0,0 +1,27 @@
// =================================================================================
// 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"
)
// SysProvinces is the golang structure of table hg_sys_provinces for DAO operations like Where/Data.
type SysProvinces struct {
g.Meta `orm:"table:hg_sys_provinces, do:true"`
Id any // 省市区ID
Title any // 栏目名称
Pinyin any // 拼音
Lng any // 经度
Lat any // 纬度
Pid any // 父栏目
Level any // 关系树等级
Tree any // 关系树
Sort any // 排序
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+33
View File
@@ -0,0 +1,33 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SysServeLicense is the golang structure of table hg_sys_serve_license for DAO operations like Where/Data.
type SysServeLicense struct {
g.Meta `orm:"table:hg_sys_serve_license, do:true"`
Id any // 许可ID
Group any // 分组
Name any // 许可名称
Appid any // 应用ID
SecretKey any // 应用秘钥
RemoteAddr any // 最后连接地址
OnlineLimit any // 在线限制
LoginTimes any // 登录次数
LastLoginAt *gtime.Time // 最后登录时间
LastActiveAt *gtime.Time // 最后心跳
Routes *gjson.Json // 路由表,空使用默认分组路由
AllowedIps any // IP白名单
EndAt *gtime.Time // 授权有效期
Remark any // 备注
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+26
View File
@@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SysServeLog is the golang structure of table hg_sys_serve_log for DAO operations like Where/Data.
type SysServeLog struct {
g.Meta `orm:"table:hg_sys_serve_log, do:true"`
Id any // 日志ID
TraceId any // 链路ID
LevelFormat any // 日志级别
Content any // 日志内容
Stack *gjson.Json // 打印堆栈
Line any // 调用行
TriggerNs any // 触发时间(ns)
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
}
+24
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"
)
// SysSmsLog is the golang structure of table hg_sys_sms_log for DAO operations like Where/Data.
type SysSmsLog struct {
g.Meta `orm:"table:hg_sys_sms_log, do:true"`
Id any // 主键
Event any // 事件
Mobile any // 手机号
Code any // 验证码或短信内容
Times any // 验证次数
Ip any // ip地址
Status any // 状态(1未验证,2已验证)
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+40
View File
@@ -0,0 +1,40 @@
// =================================================================================
// 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"
)
// Task is the golang structure of table hg_task for DAO operations like Where/Data.
type Task struct {
g.Meta `orm:"table:hg_task, do:true"`
Id any // 主键
TenantId any // 租户ID
TaskNo any // 任务编号
HallId any // 任务大厅ID
Title any // 标题
Description any // 描述
DetailHtml any // 清洗后的任务详情
CoverAttachmentId any // 封面附件ID
CoverUrl any // 封面地址
CommissionAmount any // 固定佣金(分)
CommissionRate any // 佣金万分比
DailyLimit any // 每日总量
PerMemberLimit any // 单会员限制
StartAt *gtime.Time // 开始时间
EndAt *gtime.Time // 结束时间
PublishStatus any // 发布状态
Sort any // 排序
Version any // 乐观锁
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
+35
View File
@@ -0,0 +1,35 @@
// =================================================================================
// 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"
)
// TaskHall is the golang structure of table hg_task_hall for DAO operations like Where/Data.
type TaskHall struct {
g.Meta `orm:"table:hg_task_hall, do:true"`
Id any // 主键
TenantId any // 租户ID
HallCode any // 大厅编码
Name any // 名称
IconAttachmentId any // 图标附件ID
IconUrl any // 图标URL
Summary any // 简介
CommissionRate any // 佣金万分比
RateUnit any // 比例单位
ClientRoute any // C端跳转
PublishStatus any // 发布状态
Sort any // 排序
Version any // 乐观锁
Remark any // 备注
CreatedBy any // 创建者
UpdatedBy any // 更新者
DeletedBy any // 删除者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
}
@@ -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"
)
// TaskHallLevel is the golang structure of table hg_task_hall_level for DAO operations like Where/Data.
type TaskHallLevel struct {
g.Meta `orm:"table:hg_task_hall_level, do:true"`
Id any // 主键
TenantId any // 租户ID
HallId any // 任务大厅ID
LevelId any // 会员等级ID
CreatedAt *gtime.Time // 创建时间
}
+20
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"
)
// TaskLevel is the golang structure of table hg_task_level for DAO operations like Where/Data.
type TaskLevel struct {
g.Meta `orm:"table:hg_task_level, do:true"`
Id any // 主键
TenantId any // 租户ID
TaskId any // 任务ID
LevelId any // 会员等级ID
CreatedAt *gtime.Time // 创建时间
}
@@ -0,0 +1,40 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TaskSubmission is the golang structure of table hg_task_submission for DAO operations like Where/Data.
type TaskSubmission struct {
g.Meta `orm:"table:hg_task_submission, do:true"`
Id any // 主键
TenantId any // 租户ID
SubmissionNo any // 提交编号
TradeOrderId any // 交易订单ID
TaskId any // 任务ID
MemberId any // 会员ID
MemberLevelId any // 提交时等级ID
EvidenceText any // 证据说明
EvidenceAttachmentIds *gjson.Json // 证据附件
SubmissionStatus any // 1待审 2通过 3驳回 4已结算 5已冲正
CommissionAmount any // 佣金快照(分)
SuccessRate any // 成功率万分比
ReviewedBy any // 审核人
ReviewedAt *gtime.Time // 审核时间
ReviewReasonCode any // 标准原因
ReviewReason any // 审核意见
AllowResubmit any // 是否允许重提
LedgerId any // 佣金台账ID
SettledAt *gtime.Time // 结算时间
ReversalApprovalId any // 冲正审批ID
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+25
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"
)
// TestCategory is the golang structure of table hg_test_category for DAO operations like Where/Data.
type TestCategory struct {
g.Meta `orm:"table:hg_test_category, do:true"`
Id any // 分类ID
Name any // 分类名称
ShortName any // 简称
Description any // 描述
Sort any // 排序
Remark any // 备注
Status any // 状态
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 修改时间
DeletedAt *gtime.Time // 删除时间
}
+42
View File
@@ -0,0 +1,42 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TradeOrder is the golang structure of table hg_trade_order for DAO operations like Where/Data.
type TradeOrder struct {
g.Meta `orm:"table:hg_trade_order, do:true"`
Id any // 主键
TenantId any // 租户ID
OrderNo any // 订单号
MemberId any // 会员ID
TaskId any // 任务ID
ProductId any // 商品ID
ProductName any // 商品名称快照
OrderType any // 订单类型
Quantity any // 数量
UnitPriceAmount any // 单价(分)
TotalAmount any // 订单金额(分)
CommissionAmount any // 佣金(分)
Currency any // 币种
MemberLevelId any // 下单等级ID
RuleSnapshot *gjson.Json // 规则快照
Message any // 订单消息
OrderStatus any // 订单状态
FreezeStatus any // 冻结状态
ApprovalRequestId any // 人工处理审批ID
MatchedAt *gtime.Time // 匹配时间
CompletedAt *gtime.Time // 完成时间
UnfrozenAt *gtime.Time // 解冻时间
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 下单时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,27 @@
// =================================================================================
// 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"
)
// WalletAccount is the golang structure of table hg_wallet_account for DAO operations like Where/Data.
type WalletAccount struct {
g.Meta `orm:"table:hg_wallet_account, do:true"`
Id any // 主键
TenantId any // 租户ID
MemberId any // 会员ID
Currency any // 币种
AvailableAmount any // 可用金额(分)
FrozenAmount any // 冻结金额(分)
TotalIncome any // 累计收入(分)
TotalExpense any // 累计支出(分)
AccountStatus any // 账户状态
Version any // 乐观锁
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,35 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// WalletAdjustmentRequest is the golang structure of table hg_wallet_adjustment_request for DAO operations like Where/Data.
type WalletAdjustmentRequest struct {
g.Meta `orm:"table:hg_wallet_adjustment_request, do:true"`
Id any // 主键
TenantId any // 租户ID
RequestNo any // 申请单号
MemberId any // 会员ID
AccountId any // 钱包账户ID
AdjustType any // 调整类型
Direction any // 方向 1收入 2支出
Amount any // 金额(分)
ReasonCode any // 原因编码
ReasonText any // 原因说明
EvidenceJson *gjson.Json // 凭证附件
IdempotencyKey any // 幂等键
RequestStatus any // 状态 1待审批 2已通过 3已拒绝 4已执行
ApprovalRequestId any // 审批单ID
LedgerId any // 账变流水ID
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}
+34
View File
@@ -0,0 +1,34 @@
// =================================================================================
// 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"
)
// WalletLedger is the golang structure of table hg_wallet_ledger for DAO operations like Where/Data.
type WalletLedger struct {
g.Meta `orm:"table:hg_wallet_ledger, do:true"`
Id any // 主键
TenantId any // 租户ID
LedgerNo any // 账变流水号
AccountId any // 钱包账户ID
MemberId any // 会员ID
BizType any // 业务类型
BizNo any // 业务单号
EntryType any // 账变类型
Direction any // 方向 1收入 2支出
Amount any // 发生金额(分)
BeforeAmount any // 变更前余额(分)
AfterAmount any // 变更后余额(分)
Currency any // 币种
ReversalOf any // 冲正原流水ID
IdempotencyKey any // 幂等键
Remark any // 说明
OperatorId any // 操作人
OccurredAt *gtime.Time // 发生时间
CreatedAt *gtime.Time // 创建时间
}
@@ -0,0 +1,45 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// WithdrawalOrder is the golang structure of table hg_withdrawal_order for DAO operations like Where/Data.
type WithdrawalOrder struct {
g.Meta `orm:"table:hg_withdrawal_order, do:true"`
Id any // 主键
TenantId any // 租户ID
WithdrawalNo any // 提现单号
MemberId any // 会员ID
PaymentAccountId any // 收款账户ID
ChannelId any // 付款渠道ID
RequestAmount any // 申请金额(分)
FeeAmount any // 手续费(分)
ActualAmount any // 实际到账(分)
Currency any // 币种
AccountSnapshotCipher any // 收款账户加密快照
AccountMask any // 收款账户脱敏快照
BankName any // 银行名称快照
HolderMask any // 开户名脱敏快照
RiskResult *gjson.Json // 风控结果摘要
WithdrawalStatus any // 提现状态
ReviewReasonCode any // 审核原因编码
ReviewReason any // 审核意见
ApprovalRequestId any // 审批单ID
ExternalNo any // 外部付款单号
FreezeLedgerId any // 冻结台账ID
FinalLedgerId any // 完成或解冻台账ID
ReviewedAt *gtime.Time // 审核时间
ProcessedAt *gtime.Time // 处理时间
CompletedAt *gtime.Time // 完成时间
CreatedBy any // 创建者
UpdatedBy any // 更新者
CreatedAt *gtime.Time // 发起时间
UpdatedAt *gtime.Time // 更新时间
}
+51
View File
@@ -0,0 +1,51 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// AddonHgexampleTable is the golang structure for table addon_hgexample_table.
type AddonHgexampleTable struct {
Id int64 `json:"id" orm:"id" description:"ID"`
Pid int64 `json:"pid" orm:"pid" description:"上级ID"`
Level int `json:"level" orm:"level" description:"树等级"`
Tree string `json:"tree" orm:"tree" description:"关系树"`
CategoryId int64 `json:"categoryId" orm:"category_id" description:"分类ID"`
Flag *gjson.Json `json:"flag" orm:"flag" description:"标签"`
Title string `json:"title" orm:"title" description:"标题"`
Description string `json:"description" orm:"description" description:"描述"`
Content string `json:"content" orm:"content" description:"内容"`
Image string `json:"image" orm:"image" description:"单图"`
Images *gjson.Json `json:"images" orm:"images" description:"多图"`
Attachfile string `json:"attachfile" orm:"attachfile" description:"附件"`
Attachfiles *gjson.Json `json:"attachfiles" orm:"attachfiles" description:"多附件"`
Map *gjson.Json `json:"map" orm:"map" description:"动态键值对"`
Star float64 `json:"star" orm:"star" description:"推荐星"`
Price float64 `json:"price" orm:"price" description:"价格"`
Views int64 `json:"views" orm:"views" description:"浏览次数"`
ActivityAt *gtime.Time `json:"activityAt" orm:"activity_at" description:"活动时间"`
StartAt *gtime.Time `json:"startAt" orm:"start_at" description:"开启时间"`
EndAt *gtime.Time `json:"endAt" orm:"end_at" description:"结束时间"`
Switch int `json:"switch" orm:"switch" description:"开关"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Avatar string `json:"avatar" orm:"avatar" description:"头像"`
Sex int `json:"sex" orm:"sex" description:"性别"`
Qq string `json:"qq" orm:"qq" description:"qq"`
Email string `json:"email" orm:"email" description:"邮箱"`
Mobile string `json:"mobile" orm:"mobile" description:"手机号码"`
Hobby *gjson.Json `json:"hobby" orm:"hobby" description:"爱好"`
Channel int `json:"channel" orm:"channel" description:"渠道"`
CityId int64 `json:"cityId" orm:"city_id" description:"所在城市"`
Remark string `json:"remark" orm:"remark" description:"备注"`
Status int `json:"status" orm:"status" description:"状态"`
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
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:"删除时间"`
}
@@ -0,0 +1,24 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AddonHgexampleTenantOrder is the golang structure for table addon_hgexample_tenant_order.
type AddonHgexampleTenantOrder struct {
Id int64 `json:"id" orm:"id" description:"主键"`
TenantId int64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"商户ID"`
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"`
ProductName string `json:"productName" orm:"product_name" description:"购买产品"`
OrderSn string `json:"orderSn" orm:"order_sn" description:"订单号"`
Money float64 `json:"money" orm:"money" description:"充值金额"`
Remark string `json:"remark" orm:"remark" description:"备注"`
Status int `json:"status" orm:"status" description:"订单状态"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"修改时间"`
}
+23
View File
@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AdminCash is the golang structure for table admin_cash.
type AdminCash struct {
Id int64 `json:"id" orm:"id" description:"ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员ID"`
Money float64 `json:"money" orm:"money" description:"提现金额"`
Fee float64 `json:"fee" orm:"fee" description:"手续费"`
LastMoney float64 `json:"lastMoney" orm:"last_money" description:"最终到账金额"`
Ip string `json:"ip" orm:"ip" description:"申请人IP"`
Status int64 `json:"status" orm:"status" description:"状态码"`
Msg string `json:"msg" orm:"msg" description:"处理结果"`
HandleAt *gtime.Time `json:"handleAt" orm:"handle_at" description:"处理时间"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"申请时间"`
}
+28
View File
@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AdminCreditsLog is the golang structure for table admin_credits_log.
type AdminCreditsLog struct {
Id int64 `json:"id" orm:"id" description:"变动ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员ID"`
AppId string `json:"appId" orm:"app_id" description:"应用id"`
AddonsName string `json:"addonsName" orm:"addons_name" description:"插件名称"`
CreditType string `json:"creditType" orm:"credit_type" description:"变动类型"`
CreditGroup string `json:"creditGroup" orm:"credit_group" description:"变动组别"`
BeforeNum float64 `json:"beforeNum" orm:"before_num" description:"变动前"`
Num float64 `json:"num" orm:"num" description:"变动数据"`
AfterNum float64 `json:"afterNum" orm:"after_num" description:"变动后"`
Remark string `json:"remark" orm:"remark" description:"备注"`
Ip string `json:"ip" orm:"ip" description:"操作人IP"`
MapId int64 `json:"mapId" orm:"map_id" description:"关联ID"`
Status int `json:"status" orm:"status" description:"状态"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"修改时间"`
}
+27
View File
@@ -0,0 +1,27 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AdminDept is the golang structure for table admin_dept.
type AdminDept struct {
Id int64 `json:"id" orm:"id" description:"部门ID"`
Pid int64 `json:"pid" orm:"pid" description:"父部门ID"`
Name string `json:"name" orm:"name" description:"部门名称"`
Code string `json:"code" orm:"code" description:"部门编码"`
Type string `json:"type" orm:"type" description:"部门类型"`
Leader string `json:"leader" orm:"leader" description:"负责人"`
Phone string `json:"phone" orm:"phone" description:"联系电话"`
Email string `json:"email" orm:"email" description:"邮箱"`
Level int `json:"level" orm:"level" description:"关系树等级"`
Tree string `json:"tree" orm:"tree" description:"关系树"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Status int `json:"status" orm:"status" description:"部门状态"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
+42
View File
@@ -0,0 +1,42 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// AdminMember is the golang structure for table admin_member.
type AdminMember struct {
Id int64 `json:"id" orm:"id" description:"管理员ID"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"部门ID"`
RoleId int64 `json:"roleId" orm:"role_id" description:"角色ID"`
RealName string `json:"realName" orm:"real_name" description:"真实姓名"`
Username string `json:"username" orm:"username" description:"帐号"`
PasswordHash string `json:"passwordHash" orm:"password_hash" description:"密码"`
Salt string `json:"salt" orm:"salt" description:"密码盐"`
PasswordResetToken string `json:"passwordResetToken" orm:"password_reset_token" description:"密码重置令牌"`
Integral float64 `json:"integral" orm:"integral" description:"积分"`
Balance float64 `json:"balance" orm:"balance" description:"余额"`
Avatar string `json:"avatar" orm:"avatar" description:"头像"`
Sex int `json:"sex" orm:"sex" description:"性别"`
Qq string `json:"qq" orm:"qq" description:"qq"`
Email string `json:"email" orm:"email" description:"邮箱"`
Mobile string `json:"mobile" orm:"mobile" description:"手机号码"`
Birthday *gtime.Time `json:"birthday" orm:"birthday" description:"生日"`
CityId int64 `json:"cityId" orm:"city_id" description:"城市编码"`
Address string `json:"address" orm:"address" description:"联系地址"`
Pid int64 `json:"pid" orm:"pid" description:"上级管理员ID"`
Level int `json:"level" orm:"level" description:"关系树等级"`
Tree string `json:"tree" orm:"tree" description:"关系树"`
InviteCode string `json:"inviteCode" orm:"invite_code" description:"邀请码"`
Cash *gjson.Json `json:"cash" orm:"cash" description:"提现配置"`
LastActiveAt *gtime.Time `json:"lastActiveAt" orm:"last_active_at" description:"最后活跃时间"`
Remark string `json:"remark" orm:"remark" description:"备注"`
Status int `json:"status" orm:"status" description:"状态"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"修改时间"`
}
+11
View File
@@ -0,0 +1,11 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// AdminMemberPost is the golang structure for table admin_member_post.
type AdminMemberPost struct {
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员ID"`
PostId int64 `json:"postId" orm:"post_id" description:"岗位ID"`
}
+11
View File
@@ -0,0 +1,11 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// AdminMemberRole is the golang structure for table admin_member_role.
type AdminMemberRole struct {
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员ID"`
RoleId int64 `json:"roleId" orm:"role_id" description:"角色ID"`
}
+39
View File
@@ -0,0 +1,39 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AdminMenu is the golang structure for table admin_menu.
type AdminMenu struct {
Id int64 `json:"id" orm:"id" description:"菜单ID"`
Pid int64 `json:"pid" orm:"pid" description:"父菜单ID"`
Level int `json:"level" orm:"level" description:"关系树等级"`
Tree string `json:"tree" orm:"tree" description:"关系树"`
Title string `json:"title" orm:"title" description:"菜单名称"`
Name string `json:"name" orm:"name" description:"名称编码"`
Path string `json:"path" orm:"path" description:"路由地址"`
Icon string `json:"icon" orm:"icon" description:"菜单图标"`
Type int `json:"type" orm:"type" description:"菜单类型(1目录 2菜单 3按钮)"`
Redirect string `json:"redirect" orm:"redirect" description:"重定向地址"`
Permissions string `json:"permissions" orm:"permissions" description:"菜单包含权限集合"`
PermissionName string `json:"permissionName" orm:"permission_name" description:"权限名称"`
Component string `json:"component" orm:"component" description:"组件路径"`
AlwaysShow int `json:"alwaysShow" orm:"always_show" description:"取消自动计算根路由模式"`
ActiveMenu string `json:"activeMenu" orm:"active_menu" description:"高亮菜单编码"`
IsRoot int `json:"isRoot" orm:"is_root" description:"是否跟路由"`
IsFrame int `json:"isFrame" orm:"is_frame" description:"是否内嵌"`
FrameSrc string `json:"frameSrc" orm:"frame_src" description:"内联外部地址"`
KeepAlive int `json:"keepAlive" orm:"keep_alive" description:"缓存该路由"`
Hidden int `json:"hidden" orm:"hidden" description:"是否隐藏"`
Affix int `json:"affix" orm:"affix" description:"是否固定"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Remark string `json:"remark" orm:"remark" description:"备注"`
Status int `json:"status" orm:"status" description:"菜单状态"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
+28
View File
@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// AdminNotice is the golang structure for table admin_notice.
type AdminNotice struct {
Id int64 `json:"id" orm:"id" description:"公告ID"`
Title string `json:"title" orm:"title" description:"公告标题"`
Type int64 `json:"type" orm:"type" description:"公告类型"`
Tag int `json:"tag" orm:"tag" description:"标签"`
Content string `json:"content" orm:"content" description:"公告内容"`
Receiver *gjson.Json `json:"receiver" orm:"receiver" description:"接收者"`
Remark string `json:"remark" orm:"remark" description:"备注"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Status int `json:"status" orm:"status" description:"公告状态"`
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"发送人"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"修改人"`
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:"删除时间"`
}
+19
View File
@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AdminNoticeRead is the golang structure for table admin_notice_read.
type AdminNoticeRead struct {
Id int64 `json:"id" orm:"id" description:"记录ID"`
NoticeId int64 `json:"noticeId" orm:"notice_id" description:"公告ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"会员ID"`
Clicks int `json:"clicks" orm:"clicks" description:"已读次数"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"阅读时间"`
}
+28
View File
@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AdminOauth is the golang structure for table admin_oauth.
type AdminOauth struct {
Id int64 `json:"id" orm:"id" description:"主键"`
MemberId int64 `json:"memberId" orm:"member_id" description:"用户ID"`
Unionid string `json:"unionid" orm:"unionid" description:"唯一ID"`
OauthClient string `json:"oauthClient" orm:"oauth_client" description:"授权组别"`
OauthOpenid string `json:"oauthOpenid" orm:"oauth_openid" description:"授权开放ID"`
Sex int `json:"sex" orm:"sex" description:"性别"`
Nickname string `json:"nickname" orm:"nickname" description:"昵称"`
HeadPortrait string `json:"headPortrait" orm:"head_portrait" description:"头像"`
Birthday *gtime.Time `json:"birthday" orm:"birthday" description:"生日"`
Country string `json:"country" orm:"country" description:"国家"`
Province string `json:"province" orm:"province" description:"省"`
City string `json:"city" orm:"city" description:"市"`
Status int `json:"status" orm:"status" description:"状态"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"修改时间"`
}
+25
View File
@@ -0,0 +1,25 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AdminOrder is the golang structure for table admin_order.
type AdminOrder struct {
Id int64 `json:"id" orm:"id" description:"主键"`
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员id"`
OrderType string `json:"orderType" orm:"order_type" description:"订单类型"`
ProductId int64 `json:"productId" orm:"product_id" description:"产品id"`
OrderSn string `json:"orderSn" orm:"order_sn" description:"关联订单号"`
Money float64 `json:"money" orm:"money" description:"充值金额"`
Remark string `json:"remark" orm:"remark" description:"备注"`
RefundReason string `json:"refundReason" orm:"refund_reason" description:"退款原因"`
RejectRefundReason string `json:"rejectRefundReason" orm:"reject_refund_reason" description:"拒绝退款原因"`
Status int `json:"status" orm:"status" description:"状态"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"修改时间"`
}
+21
View File
@@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AdminPost is the golang structure for table admin_post.
type AdminPost struct {
Id int64 `json:"id" orm:"id" description:"岗位ID"`
Code string `json:"code" orm:"code" description:"岗位编码"`
Name string `json:"name" orm:"name" description:"岗位名称"`
Remark string `json:"remark" orm:"remark" description:"备注"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Status int `json:"status" orm:"status" description:"状态"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
+27
View File
@@ -0,0 +1,27 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// AdminRole is the golang structure for table admin_role.
type AdminRole struct {
Id int64 `json:"id" orm:"id" description:"角色ID"`
Name string `json:"name" orm:"name" description:"角色名称"`
Key string `json:"key" orm:"key" description:"角色权限字符串"`
DataScope int `json:"dataScope" orm:"data_scope" description:"数据范围"`
CustomDept *gjson.Json `json:"customDept" orm:"custom_dept" description:"自定义部门权限"`
Pid int64 `json:"pid" orm:"pid" description:"上级角色ID"`
Level int `json:"level" orm:"level" description:"关系树等级"`
Tree string `json:"tree" orm:"tree" description:"关系树"`
Remark string `json:"remark" orm:"remark" description:"备注"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Status int `json:"status" orm:"status" description:"角色状态"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
+17
View File
@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// AdminRoleCasbin is the golang structure for table admin_role_casbin.
type AdminRoleCasbin struct {
Id int64 `json:"id" orm:"id" description:""`
PType string `json:"pType" orm:"p_type" description:""`
V0 string `json:"v0" orm:"v0" description:""`
V1 string `json:"v1" orm:"v1" description:""`
V2 string `json:"v2" orm:"v2" description:""`
V3 string `json:"v3" orm:"v3" description:""`
V4 string `json:"v4" orm:"v4" description:""`
V5 string `json:"v5" orm:"v5" description:""`
}
+11
View File
@@ -0,0 +1,11 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// AdminRoleMenu is the golang structure for table admin_role_menu.
type AdminRoleMenu struct {
RoleId int64 `json:"roleId" orm:"role_id" description:"角色ID"`
MenuId int64 `json:"menuId" orm:"menu_id" description:"菜单ID"`
}
@@ -0,0 +1,42 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AppMember is the golang structure for table app_member.
type AppMember struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
MemberNo string `json:"memberNo" orm:"member_no" description:"会员编号"`
Username string `json:"username" orm:"username" description:"用户名"`
MobileCipher string `json:"mobileCipher" orm:"mobile_cipher" description:"手机号密文(AES-GCM)"`
MobileHash string `json:"mobileHash" orm:"mobile_hash" description:"手机号检索哈希(HMAC-SHA256)"`
MobileMask string `json:"mobileMask" orm:"mobile_mask" description:"手机号脱敏值"`
PasswordHash string `json:"passwordHash" orm:"password_hash" description:"登录密码哈希(bcrypt)"`
TradePasswordHash string `json:"tradePasswordHash" orm:"trade_password_hash" description:"交易密码哈希"`
LevelId uint64 `json:"levelId" orm:"level_id" description:"会员等级ID"`
ParentId uint64 `json:"parentId" orm:"parent_id" description:"上级会员ID"`
Level int `json:"level" orm:"level" description:"团队层级"`
Tree string `json:"tree" orm:"tree" description:"关系树"`
InviteCode string `json:"inviteCode" orm:"invite_code" description:"邀请码"`
MemberStatus int `json:"memberStatus" orm:"member_status" description:"会员状态"`
RiskStatus int `json:"riskStatus" orm:"risk_status" description:"风控状态"`
AutoDispatch int `json:"autoDispatch" orm:"auto_dispatch" description:"自动派单"`
CreditScore int `json:"creditScore" orm:"credit_score" description:"信用分"`
IsTestAccount int `json:"isTestAccount" orm:"is_test_account" description:"测试账号"`
LastLoginAt *gtime.Time `json:"lastLoginAt" orm:"last_login_at" description:"最后登录时间"`
LastLoginIpCipher string `json:"lastLoginIpCipher" orm:"last_login_ip_cipher" description:"最后登录IP密文"`
LastLoginIpMask string `json:"lastLoginIpMask" orm:"last_login_ip_mask" description:"最后登录IP脱敏值"`
LastLoginRegion string `json:"lastLoginRegion" orm:"last_login_region" description:"最后登录地区"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
DeletedBy uint64 `json:"deletedBy" orm:"deleted_by" description:"删除者"`
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:"注销时间"`
}
@@ -0,0 +1,32 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AppMemberAddress is the golang structure for table app_member_address.
type AppMemberAddress struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
MemberId uint64 `json:"memberId" orm:"member_id" description:"会员ID"`
ReceiverCipher string `json:"receiverCipher" orm:"receiver_cipher" description:"收货人密文"`
ReceiverMask string `json:"receiverMask" orm:"receiver_mask" description:"收货人脱敏值"`
MobileCipher string `json:"mobileCipher" orm:"mobile_cipher" description:"手机号密文"`
MobileMask string `json:"mobileMask" orm:"mobile_mask" description:"手机号脱敏值"`
Province string `json:"province" orm:"province" description:"省"`
City string `json:"city" orm:"city" description:"市"`
District string `json:"district" orm:"district" description:"区县"`
AddressCipher string `json:"addressCipher" orm:"address_cipher" description:"详细地址密文"`
AddressMask string `json:"addressMask" orm:"address_mask" description:"详细地址脱敏值"`
IsDefault int `json:"isDefault" orm:"is_default" description:"默认地址"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
DeletedBy uint64 `json:"deletedBy" orm:"deleted_by" description:"删除者"`
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:"删除时间"`
}

Some files were not shown because too many files have changed in this diff Show More