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
+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:"删除时间"`
}
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AppMemberLevel is the golang structure for table app_member_level.
type AppMemberLevel struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
LevelCode string `json:"levelCode" orm:"level_code" description:"稳定等级编码"`
Name string `json:"name" orm:"name" description:"等级名称"`
IconAttachmentId uint64 `json:"iconAttachmentId" orm:"icon_attachment_id" description:"图标附件ID"`
IconUrl string `json:"iconUrl" orm:"icon_url" description:"图标URL"`
CurrentVersionId uint64 `json:"currentVersionId" orm:"current_version_id" description:"当前发布版本ID"`
MemberCount uint64 `json:"memberCount" orm:"member_count" description:"会员数(可重建)"`
Status int `json:"status" orm:"status" description:"状态 1正常 2停用"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Remark string `json:"remark" orm:"remark" 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,35 @@
// =================================================================================
// 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"
)
// AppMemberLevelVersion is the golang structure for table app_member_level_version.
type AppMemberLevelVersion struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
LevelId uint64 `json:"levelId" orm:"level_id" description:"等级ID"`
VersionNo uint `json:"versionNo" orm:"version_no" description:"版本号"`
UpgradeAmount int64 `json:"upgradeAmount" orm:"upgrade_amount" description:"升级金额(分)"`
GiftAmount int64 `json:"giftAmount" orm:"gift_amount" description:"赠送金额(分)"`
DailyOrderLimit uint `json:"dailyOrderLimit" orm:"daily_order_limit" description:"每日接单次数"`
CommissionRate uint `json:"commissionRate" orm:"commission_rate" description:"佣金万分比"`
DailyWithdrawLimit uint `json:"dailyWithdrawLimit" orm:"daily_withdraw_limit" description:"每日提现次数"`
RuleJson *gjson.Json `json:"ruleJson" orm:"rule_json" description:"扩展规则快照"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
EffectiveAt *gtime.Time `json:"effectiveAt" orm:"effective_at" description:"计划生效时间"`
PublishedAt *gtime.Time `json:"publishedAt" orm:"published_at" description:"发布时间"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批单ID"`
BaseVersionId uint64 `json:"baseVersionId" orm:"base_version_id" description:"基础版本ID"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
Remark string `json:"remark" orm:"remark" description:"变更说明"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AppMemberNotice is the golang structure for table app_member_notice.
type AppMemberNotice 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,0为全体"`
Title string `json:"title" orm:"title" description:"标题"`
Content string `json:"content" orm:"content" description:"内容"`
SourceType int `json:"sourceType" orm:"source_type" description:"来源 1真实通知 2运营模拟"`
StartAt *gtime.Time `json:"startAt" orm:"start_at" description:"开始时间"`
EndAt *gtime.Time `json:"endAt" orm:"end_at" description:"结束时间"`
NoticeStatus int `json:"noticeStatus" orm:"notice_status" description:"状态 1有效 2撤回"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -0,0 +1,35 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// AppMemberPaymentAccount is the golang structure for table app_member_payment_account.
type AppMemberPaymentAccount 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"`
AccountType int `json:"accountType" orm:"account_type" description:"账户类型"`
BankCode string `json:"bankCode" orm:"bank_code" description:"银行编码"`
BankName string `json:"bankName" orm:"bank_name" description:"银行名称"`
HolderCipher string `json:"holderCipher" orm:"holder_cipher" description:"持有人密文"`
HolderMask string `json:"holderMask" orm:"holder_mask" description:"持有人脱敏值"`
MobileCipher string `json:"mobileCipher" orm:"mobile_cipher" description:"预留手机号密文"`
MobileMask string `json:"mobileMask" orm:"mobile_mask" description:"预留手机号脱敏值"`
AccountNoCipher string `json:"accountNoCipher" orm:"account_no_cipher" description:"账号密文"`
AccountNoHash string `json:"accountNoHash" orm:"account_no_hash" description:"账号检索哈希"`
AccountNoMask string `json:"accountNoMask" orm:"account_no_mask" description:"账号脱敏值"`
QrAttachmentId uint64 `json:"qrAttachmentId" orm:"qr_attachment_id" description:"收款码附件ID"`
VerifyStatus int `json:"verifyStatus" orm:"verify_status" 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:"删除时间"`
}
@@ -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"
)
// AppMemberProfile is the golang structure for table app_member_profile.
type AppMemberProfile 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"`
RealNameCipher string `json:"realNameCipher" orm:"real_name_cipher" description:"真实姓名密文"`
RealNameMask string `json:"realNameMask" orm:"real_name_mask" description:"真实姓名脱敏值"`
IdNoCipher string `json:"idNoCipher" orm:"id_no_cipher" description:"证件号密文"`
IdNoHash string `json:"idNoHash" orm:"id_no_hash" description:"证件号检索哈希"`
IdNoMask string `json:"idNoMask" orm:"id_no_mask" description:"证件号脱敏值"`
AvatarAttachmentId uint64 `json:"avatarAttachmentId" orm:"avatar_attachment_id" description:"头像附件ID"`
KycStatus int `json:"kycStatus" orm:"kyc_status" description:"实名状态"`
KycVerifiedAt *gtime.Time `json:"kycVerifiedAt" orm:"kyc_verified_at" description:"实名时间"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -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"
)
// AppMemberStatusLog is the golang structure for table app_member_status_log.
type AppMemberStatusLog 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"`
FromStatus int `json:"fromStatus" orm:"from_status" description:"原状态"`
ToStatus int `json:"toStatus" orm:"to_status" description:"目标状态"`
ReasonCode string `json:"reasonCode" orm:"reason_code" description:"原因编码"`
ReasonText string `json:"reasonText" orm:"reason_text" description:"原因说明"`
EffectiveAt *gtime.Time `json:"effectiveAt" orm:"effective_at" description:"生效时间"`
ExpireAt *gtime.Time `json:"expireAt" orm:"expire_at" description:"失效时间"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批单ID"`
OperatorId uint64 `json:"operatorId" orm:"operator_id" description:"执行人"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
@@ -0,0 +1,26 @@
// =================================================================================
// 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"
)
// ApprovalAction is the golang structure for table approval_action.
type ApprovalAction struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批请求ID"`
StepNo uint `json:"stepNo" orm:"step_no" description:"节点顺序"`
ActorId uint64 `json:"actorId" orm:"actor_id" description:"操作人"`
Action int `json:"action" orm:"action" description:"审批动作"`
ReasonCode string `json:"reasonCode" orm:"reason_code" description:"原因编码"`
Comment string `json:"comment" orm:"comment" description:"审批意见"`
SnapshotJson *gjson.Json `json:"snapshotJson" orm:"snapshot_json" description:"操作时快照"`
ActorIpCipher string `json:"actorIpCipher" orm:"actor_ip_cipher" description:"操作IP密文"`
MfaVerified int `json:"mfaVerified" orm:"mfa_verified" description:"是否二次认证"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
@@ -0,0 +1,38 @@
// =================================================================================
// 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"
)
// ApprovalRequest is the golang structure for table approval_request.
type ApprovalRequest struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ApprovalNo string `json:"approvalNo" orm:"approval_no" description:"审批单号"`
ApprovalType string `json:"approvalType" orm:"approval_type" description:"审批类型"`
TargetType string `json:"targetType" orm:"target_type" description:"目标类型"`
TargetId uint64 `json:"targetId" orm:"target_id" description:"目标ID"`
Action string `json:"action" orm:"action" description:"拟执行动作"`
Title string `json:"title" orm:"title" description:"审批标题"`
PayloadJson *gjson.Json `json:"payloadJson" orm:"payload_json" description:"待执行数据快照"`
DiffJson *gjson.Json `json:"diffJson" orm:"diff_json" description:"前后差异"`
RiskLevel int `json:"riskLevel" orm:"risk_level" description:"风险级别"`
RequiredApprovals uint `json:"requiredApprovals" orm:"required_approvals" description:"需要通过数"`
ApprovalStatus int `json:"approvalStatus" orm:"approval_status" description:"审批状态"`
ApplicantId uint64 `json:"applicantId" orm:"applicant_id" description:"申请人"`
SubmittedAt *gtime.Time `json:"submittedAt" orm:"submitted_at" description:"提交时间"`
DecidedAt *gtime.Time `json:"decidedAt" orm:"decided_at" description:"决定时间"`
ExecutedAt *gtime.Time `json:"executedAt" orm:"executed_at" description:"执行时间"`
ExpireAt *gtime.Time `json:"expireAt" orm:"expire_at" description:"超时时间"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
Remark string `json:"remark" orm:"remark" description:"备注"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
+34
View File
@@ -0,0 +1,34 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Banner is the golang structure for table banner.
type Banner struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
Name string `json:"name" orm:"name" description:"后台名称"`
Position string `json:"position" orm:"position" description:"投放位置"`
ImageAttachmentId uint64 `json:"imageAttachmentId" orm:"image_attachment_id" description:"图片附件ID"`
ImageUrl string `json:"imageUrl" orm:"image_url" description:"图片URL"`
AltText string `json:"altText" orm:"alt_text" description:"替代文本"`
TargetType int `json:"targetType" orm:"target_type" description:"跳转类型"`
TargetValue string `json:"targetValue" orm:"target_value" description:"跳转值"`
StartAt *gtime.Time `json:"startAt" orm:"start_at" description:"开始时间"`
EndAt *gtime.Time `json:"endAt" orm:"end_at" description:"结束时间"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
Remark string `json:"remark" orm:"remark" 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/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// BizAuditLog is the golang structure for table biz_audit_log.
type BizAuditLog struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
AuditNo string `json:"auditNo" orm:"audit_no" description:"审计号"`
ActorType int `json:"actorType" orm:"actor_type" description:"操作人类型"`
ActorId uint64 `json:"actorId" orm:"actor_id" description:"操作人ID"`
Module string `json:"module" orm:"module" description:"业务模块"`
Action string `json:"action" orm:"action" description:"操作动作"`
TargetType string `json:"targetType" orm:"target_type" description:"目标类型"`
TargetId uint64 `json:"targetId" orm:"target_id" description:"目标ID"`
BeforeDigest string `json:"beforeDigest" orm:"before_digest" description:"变更前摘要"`
AfterDigest string `json:"afterDigest" orm:"after_digest" description:"变更后摘要"`
ChangeJson *gjson.Json `json:"changeJson" orm:"change_json" description:"已脱敏差异"`
Reason string `json:"reason" orm:"reason" description:"操作原因"`
ApprovalNo string `json:"approvalNo" orm:"approval_no" description:"审批单号"`
TraceId string `json:"traceId" orm:"trace_id" description:"链路ID"`
PrevHash string `json:"prevHash" orm:"prev_hash" description:"前一条哈希"`
RowHash string `json:"rowHash" orm:"row_hash" description:"当前行哈希"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
+30
View File
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Content is the golang structure for table content.
type Content struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ContentKey string `json:"contentKey" orm:"content_key" description:"稳定内容标识"`
ContentType string `json:"contentType" orm:"content_type" description:"内容类型"`
Title string `json:"title" orm:"title" description:"后台标题"`
PublishedVersionId uint64 `json:"publishedVersionId" orm:"published_version_id" description:"当前发布版本ID"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
PublishedAt *gtime.Time `json:"publishedAt" orm:"published_at" description:"发布时间"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
Remark string `json:"remark" orm:"remark" 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,29 @@
// =================================================================================
// 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"
)
// ContentVersion is the golang structure for table content_version.
type ContentVersion struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ContentId uint64 `json:"contentId" orm:"content_id" description:"内容ID"`
VersionNo uint `json:"versionNo" orm:"version_no" description:"版本号"`
Title string `json:"title" orm:"title" description:"展示标题"`
Summary string `json:"summary" orm:"summary" description:"摘要"`
BodyHtml string `json:"bodyHtml" orm:"body_html" description:"清洗后HTML"`
BodyText string `json:"bodyText" orm:"body_text" description:"降级文本"`
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"封面图片URL"`
AssetIds *gjson.Json `json:"assetIds" orm:"asset_ids" description:"引用附件ID"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
EffectiveAt *gtime.Time `json:"effectiveAt" orm:"effective_at" description:"计划生效时间"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批单ID"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
@@ -0,0 +1,33 @@
// =================================================================================
// 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"
)
// CustomerService is the golang structure for table customer_service.
type CustomerService struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ServiceCode string `json:"serviceCode" orm:"service_code" description:"客服编码"`
Name string `json:"name" orm:"name" description:"客服名称"`
AvatarUrl string `json:"avatarUrl" orm:"avatar_url" description:"头像地址"`
WorkTime string `json:"workTime" orm:"work_time" description:"工作时间说明"`
OnlineStatus int `json:"onlineStatus" orm:"online_status" description:"在线状态"`
ServiceUrl string `json:"serviceUrl" orm:"service_url" description:"客服跳转URL"`
BackupContact string `json:"backupContact" orm:"backup_contact" description:"备用联系方式"`
SessionMapping *gjson.Json `json:"sessionMapping" orm:"session_mapping" description:"第三方会话映射"`
Status int `json:"status" orm:"status" description:"状态"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Remark string `json:"remark" orm:"remark" 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,24 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// DashboardDailyStat is the golang structure for table dashboard_daily_stat.
type DashboardDailyStat struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
StatDate *gtime.Time `json:"statDate" orm:"stat_date" description:"统计日期"`
DimensionType string `json:"dimensionType" orm:"dimension_type" description:"维度类型"`
DimensionValue string `json:"dimensionValue" orm:"dimension_value" description:"维度值"`
MetricCode string `json:"metricCode" orm:"metric_code" description:"指标编码"`
MetricCount int64 `json:"metricCount" orm:"metric_count" description:"指标数量"`
MetricAmount int64 `json:"metricAmount" orm:"metric_amount" description:"指标金额(最小货币单位)"`
CalculatedAt *gtime.Time `json:"calculatedAt" orm:"calculated_at" description:"计算时间"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -0,0 +1,26 @@
// =================================================================================
// 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"
)
// FinanceReview is the golang structure for table finance_review.
type FinanceReview struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批单ID"`
BizType string `json:"bizType" orm:"biz_type" description:"业务类型"`
BizId uint64 `json:"bizId" orm:"biz_id" description:"业务ID"`
ReviewStage int `json:"reviewStage" orm:"review_stage" description:"审核阶段"`
ReviewerId uint64 `json:"reviewerId" orm:"reviewer_id" description:"审核人"`
Decision int `json:"decision" orm:"decision" description:"审核结论"`
ReasonCode string `json:"reasonCode" orm:"reason_code" description:"原因编码"`
ReasonText string `json:"reasonText" orm:"reason_text" description:"审核说明"`
SnapshotJson *gjson.Json `json:"snapshotJson" orm:"snapshot_json" description:"审核快照"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
@@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// IdempotencyRecord is the golang structure for table idempotency_record.
type IdempotencyRecord struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
Scope string `json:"scope" orm:"scope" description:"业务作用域"`
IdempotencyKey string `json:"idempotencyKey" orm:"idempotency_key" description:"幂等键"`
RequestDigest string `json:"requestDigest" orm:"request_digest" description:"请求摘要"`
ResourceType string `json:"resourceType" orm:"resource_type" description:"资源类型"`
ResourceId uint64 `json:"resourceId" orm:"resource_id" description:"资源ID"`
ProcessStatus int `json:"processStatus" orm:"process_status" description:"处理状态"`
ResponseCode int `json:"responseCode" orm:"response_code" description:"响应码"`
ResponseDigest string `json:"responseDigest" orm:"response_digest" description:"响应摘要"`
ExpireAt *gtime.Time `json:"expireAt" orm:"expire_at" description:"过期时间"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -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"
)
// OutboxEvent is the golang structure for table outbox_event.
type OutboxEvent struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
EventNo string `json:"eventNo" orm:"event_no" description:"事件号"`
AggregateType string `json:"aggregateType" orm:"aggregate_type" description:"聚合根类型"`
AggregateId uint64 `json:"aggregateId" orm:"aggregate_id" description:"聚合根ID"`
EventType string `json:"eventType" orm:"event_type" description:"事件类型"`
PayloadJson *gjson.Json `json:"payloadJson" orm:"payload_json" description:"已脱敏事件数据"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发送状态"`
RetryCount uint `json:"retryCount" orm:"retry_count" description:"重试次数"`
NextRetryAt *gtime.Time `json:"nextRetryAt" orm:"next_retry_at" description:"下次重试时间"`
LastError string `json:"lastError" orm:"last_error" description:"最后错误"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
PublishedAt *gtime.Time `json:"publishedAt" orm:"published_at" description:"发送时间"`
}
+44
View File
@@ -0,0 +1,44 @@
// =================================================================================
// 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"
)
// PayLog is the golang structure for table pay_log.
type PayLog struct {
Id int64 `json:"id" orm:"id" description:"主键"`
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:"插件名称"`
OrderSn string `json:"orderSn" orm:"order_sn" description:"关联订单号"`
OrderGroup string `json:"orderGroup" orm:"order_group" description:"组别[默认统一支付类型]"`
Openid string `json:"openid" orm:"openid" description:"openid"`
MchId string `json:"mchId" orm:"mch_id" description:"商户支付账户"`
Subject string `json:"subject" orm:"subject" description:"订单标题"`
Detail *gjson.Json `json:"detail" orm:"detail" description:"支付商品详情"`
AuthCode string `json:"authCode" orm:"auth_code" description:"刷卡码"`
OutTradeNo string `json:"outTradeNo" orm:"out_trade_no" description:"商户订单号"`
TransactionId string `json:"transactionId" orm:"transaction_id" description:"交易号"`
PayType string `json:"payType" orm:"pay_type" description:"支付类型"`
PayAmount float64 `json:"payAmount" orm:"pay_amount" description:"支付金额"`
ActualAmount float64 `json:"actualAmount" orm:"actual_amount" description:"实付金额"`
PayStatus int `json:"payStatus" orm:"pay_status" description:"支付状态"`
PayAt *gtime.Time `json:"payAt" orm:"pay_at" description:"支付时间"`
TradeType string `json:"tradeType" orm:"trade_type" description:"交易类型"`
RefundSn string `json:"refundSn" orm:"refund_sn" description:"退款单号"`
IsRefund int `json:"isRefund" orm:"is_refund" description:"是否退款"`
Custom string `json:"custom" orm:"custom" description:"自定义参数"`
CreateIp string `json:"createIp" orm:"create_ip" description:"创建者IP"`
PayIp string `json:"payIp" orm:"pay_ip" description:"支付者IP"`
NotifyUrl string `json:"notifyUrl" orm:"notify_url" description:"支付通知回调地址"`
ReturnUrl string `json:"returnUrl" orm:"return_url" description:"买家付款成功跳转地址"`
TraceIds *gjson.Json `json:"traceIds" orm:"trace_ids" 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:"修改时间"`
}
+26
View File
@@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// PayRefund is the golang structure for table pay_refund.
type PayRefund struct {
Id uint64 `json:"id" orm:"id" description:"主键ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"会员ID"`
AppId string `json:"appId" orm:"app_id" description:"应用ID"`
OrderSn string `json:"orderSn" orm:"order_sn" description:"业务订单号"`
RefundTradeNo string `json:"refundTradeNo" orm:"refund_trade_no" description:"退款交易号"`
RefundMoney float64 `json:"refundMoney" orm:"refund_money" description:"退款金额"`
RefundWay int `json:"refundWay" orm:"refund_way" description:"退款方式"`
Ip string `json:"ip" orm:"ip" description:"申请者IP"`
Reason string `json:"reason" orm:"reason" 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:"更新时间"`
}
@@ -0,0 +1,33 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// PaymentChannel is the golang structure for table payment_channel.
type PaymentChannel struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ChannelCode string `json:"channelCode" orm:"channel_code" description:"渠道编码"`
Name string `json:"name" orm:"name" description:"渠道名称"`
ChannelType int `json:"channelType" orm:"channel_type" description:"渠道类型"`
Direction int `json:"direction" orm:"direction" description:"支持方向"`
ConfigCipher string `json:"configCipher" orm:"config_cipher" description:"渠道配置密文"`
MinAmount int64 `json:"minAmount" orm:"min_amount" description:"最小金额(分)"`
MaxAmount int64 `json:"maxAmount" orm:"max_amount" description:"最大金额(分)"`
FeeType int `json:"feeType" orm:"fee_type" description:"手续费类型"`
FeeFixedAmount int64 `json:"feeFixedAmount" orm:"fee_fixed_amount" description:"固定手续费(分)"`
FeeRate uint `json:"feeRate" orm:"fee_rate" description:"费率(万分比)"`
Status int `json:"status" orm:"status" description:"状态"`
Sort int `json:"sort" orm:"sort" 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:"删除时间"`
}
+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"
)
// Product is the golang structure for table product.
type Product struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ProductNo string `json:"productNo" orm:"product_no" description:"商品编号"`
CategoryId uint64 `json:"categoryId" orm:"category_id" description:"分类ID"`
ProductType int `json:"productType" orm:"product_type" description:"商品类型"`
PaymentType string `json:"paymentType" orm:"payment_type" description:"支付方式"`
Name string `json:"name" orm:"name" description:"商品名称"`
ShopName string `json:"shopName" orm:"shop_name" description:"店铺名称"`
PriceAmount int64 `json:"priceAmount" orm:"price_amount" description:"单价(分)"`
Currency string `json:"currency" orm:"currency" description:"币种"`
CoverAttachmentId uint64 `json:"coverAttachmentId" orm:"cover_attachment_id" description:"封面附件ID"`
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"封面URL"`
DetailHtml string `json:"detailHtml" orm:"detail_html" description:"商品详情"`
IsRecommended int `json:"isRecommended" orm:"is_recommended" description:"是否推荐"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
StartAt *gtime.Time `json:"startAt" orm:"start_at" description:"展示开始时间"`
EndAt *gtime.Time `json:"endAt" orm:"end_at" description:"展示结束时间"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
Remark string `json:"remark" orm:"remark" 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,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// ProductCategory is the golang structure for table product_category.
type ProductCategory struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
Pid uint64 `json:"pid" orm:"pid" description:"上级ID"`
Level uint `json:"level" orm:"level" description:"树等级"`
Tree string `json:"tree" orm:"tree" description:"关系树"`
CategoryCode string `json:"categoryCode" orm:"category_code" description:"分类编码"`
Name string `json:"name" orm:"name" description:"分类名称"`
Status int `json:"status" orm:"status" description:"状态"`
Sort int `json:"sort" orm:"sort" 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,38 @@
// =================================================================================
// 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"
)
// RechargeOrder is the golang structure for table recharge_order.
type RechargeOrder struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
RechargeNo string `json:"rechargeNo" orm:"recharge_no" description:"充值单号"`
MemberId uint64 `json:"memberId" orm:"member_id" description:"会员ID"`
ChannelId uint64 `json:"channelId" orm:"channel_id" description:"支付渠道ID"`
RequestAmount int64 `json:"requestAmount" orm:"request_amount" description:"申请金额(分)"`
PaidAmount int64 `json:"paidAmount" orm:"paid_amount" description:"实付金额(分)"`
Currency string `json:"currency" orm:"currency" description:"币种"`
ExternalNo string `json:"externalNo" orm:"external_no" description:"外部支付单号"`
VoucherAttachmentIds *gjson.Json `json:"voucherAttachmentIds" orm:"voucher_attachment_ids" description:"打款凭证附件"`
RechargeType int `json:"rechargeType" orm:"recharge_type" description:"充值类型"`
RechargeStatus int `json:"rechargeStatus" orm:"recharge_status" description:"充值状态"`
Remark string `json:"remark" orm:"remark" description:"会员备注"`
ReviewReasonCode string `json:"reviewReasonCode" orm:"review_reason_code" description:"审核原因编码"`
ReviewReason string `json:"reviewReason" orm:"review_reason" description:"审核意见"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批单ID"`
LedgerId uint64 `json:"ledgerId" orm:"ledger_id" description:"入账台账ID"`
PaidAt *gtime.Time `json:"paidAt" orm:"paid_at" description:"支付时间"`
ReviewedAt *gtime.Time `json:"reviewedAt" orm:"reviewed_at" description:"审核时间"`
CreditedAt *gtime.Time `json:"creditedAt" orm:"credited_at" description:"入账时间"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -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"
)
// SensitiveAccessLog is the golang structure for table sensitive_access_log.
type SensitiveAccessLog struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
AccessNo string `json:"accessNo" orm:"access_no" description:"查看流水号"`
ActorId uint64 `json:"actorId" orm:"actor_id" description:"管理员ID"`
TargetType string `json:"targetType" orm:"target_type" description:"目标类型"`
TargetId uint64 `json:"targetId" orm:"target_id" description:"目标ID"`
FieldSet *gjson.Json `json:"fieldSet" orm:"field_set" description:"查看字段集"`
PurposeCode string `json:"purposeCode" orm:"purpose_code" description:"用途编码"`
PurposeText string `json:"purposeText" orm:"purpose_text" description:"用途说明"`
AuthorizationNo string `json:"authorizationNo" orm:"authorization_no" description:"授权号"`
MfaVerified int `json:"mfaVerified" orm:"mfa_verified" description:"是否二次认证"`
Result int `json:"result" orm:"result" description:"查看结果"`
TraceId string `json:"traceId" orm:"trace_id" description:"链路ID"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_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/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// SiteConfigVersion is the golang structure for table site_config_version.
type SiteConfigVersion struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
ConfigNo string `json:"configNo" orm:"config_no" description:"配置版本号"`
ConfigGroup string `json:"configGroup" orm:"config_group" description:"配置组"`
SchemaVersion string `json:"schemaVersion" orm:"schema_version" description:"Schema版本"`
ConfigJson *gjson.Json `json:"configJson" orm:"config_json" description:"完整配置快照"`
ConfigDigest string `json:"configDigest" orm:"config_digest" description:"配置摘要"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
EffectiveAt *gtime.Time `json:"effectiveAt" orm:"effective_at" description:"计划生效时间"`
PublishedAt *gtime.Time `json:"publishedAt" orm:"published_at" description:"实际发布时间"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批单ID"`
BaseVersionId uint64 `json:"baseVersionId" orm:"base_version_id" description:"基础版本ID"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
Remark string `json:"remark" orm:"remark" description:"备注"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" 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"
)
// SysAddonsConfig is the golang structure for table sys_addons_config.
type SysAddonsConfig struct {
Id int64 `json:"id" orm:"id" description:"配置ID"`
AddonName string `json:"addonName" orm:"addon_name" description:"插件名称"`
Group string `json:"group" orm:"group" description:"分组"`
Name string `json:"name" orm:"name" description:"参数名称"`
Type string `json:"type" orm:"type" description:"键值类型:string,int,uint,bool,datetime,date"`
Key string `json:"key" orm:"key" description:"参数键名"`
Value string `json:"value" orm:"value" description:"参数键值"`
DefaultValue string `json:"defaultValue" orm:"default_value" description:"默认值"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Tip string `json:"tip" orm:"tip" description:"变量描述"`
IsDefault int `json:"isDefault" orm:"is_default" 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:"更新时间"`
}
@@ -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"
)
// SysAddonsInstall is the golang structure for table sys_addons_install.
type SysAddonsInstall struct {
Id int64 `json:"id" orm:"id" description:"主键"`
Name string `json:"name" orm:"name" description:"插件名称"`
Version string `json:"version" orm:"version" 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:"更新时间"`
}
+30
View File
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysAttachment is the golang structure for table sys_attachment.
type SysAttachment struct {
Id int64 `json:"id" orm:"id" description:"文件ID"`
AppId string `json:"appId" orm:"app_id" description:"应用ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员ID"`
CateId uint64 `json:"cateId" orm:"cate_id" description:"上传分类"`
Drive string `json:"drive" orm:"drive" description:"上传驱动"`
Name string `json:"name" orm:"name" description:"文件原始名"`
Kind string `json:"kind" orm:"kind" description:"上传类型"`
MimeType string `json:"mimeType" orm:"mime_type" description:"扩展类型"`
NaiveType string `json:"naiveType" orm:"naive_type" description:"NaiveUI类型"`
Path string `json:"path" orm:"path" description:"本地路径"`
FileUrl string `json:"fileUrl" orm:"file_url" description:"url"`
Size int64 `json:"size" orm:"size" description:"文件大小"`
Ext string `json:"ext" orm:"ext" description:"扩展名"`
Md5 string `json:"md5" orm:"md5" description:"md5校验码"`
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:"修改时间"`
}
+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"
)
// SysBlacklist is the golang structure for table sys_blacklist.
type SysBlacklist struct {
Id int64 `json:"id" orm:"id" description:"黑名单ID"`
Ip string `json:"ip" orm:"ip" description:"IP地址"`
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:"更新时间"`
}
+26
View File
@@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysConfig is the golang structure for table sys_config.
type SysConfig struct {
Id int64 `json:"id" orm:"id" description:"配置ID"`
Group string `json:"group" orm:"group" description:"配置分组"`
Name string `json:"name" orm:"name" description:"参数名称"`
Type string `json:"type" orm:"type" description:"键值类型:string,int,uint,bool,datetime,date"`
Key string `json:"key" orm:"key" description:"参数键名"`
Value string `json:"value" orm:"value" description:"参数键值"`
DefaultValue string `json:"defaultValue" orm:"default_value" description:"默认值"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Tip string `json:"tip" orm:"tip" description:"变量描述"`
IsDefault int `json:"isDefault" orm:"is_default" 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:"更新时间"`
}
+26
View File
@@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysCron is the golang structure for table sys_cron.
type SysCron struct {
Id int64 `json:"id" orm:"id" description:"任务ID"`
GroupId int64 `json:"groupId" orm:"group_id" description:"分组ID"`
Title string `json:"title" orm:"title" description:"任务标题"`
Name string `json:"name" orm:"name" description:"任务方法"`
Params string `json:"params" orm:"params" description:"函数参数"`
Pattern string `json:"pattern" orm:"pattern" description:"表达式"`
Policy int64 `json:"policy" orm:"policy" description:"策略"`
Count int64 `json:"count" orm:"count" description:"执行次数"`
Sort int `json:"sort" orm:"sort" 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:"更新时间"`
}
+22
View File
@@ -0,0 +1,22 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysCronGroup is the golang structure for table sys_cron_group.
type SysCronGroup struct {
Id int64 `json:"id" orm:"id" description:"任务分组ID"`
Pid int64 `json:"pid" orm:"pid" description:"父类任务分组ID"`
Name string `json:"name" orm:"name" description:"分组名称"`
IsDefault int `json:"isDefault" orm:"is_default" description:"是否默认"`
Sort int `json:"sort" orm:"sort" 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:"更新时间"`
}
+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"
)
// SysDictData is the golang structure for table sys_dict_data.
type SysDictData struct {
Id int64 `json:"id" orm:"id" description:"字典数据ID"`
Label string `json:"label" orm:"label" description:"字典标签"`
Value string `json:"value" orm:"value" description:"字典键值"`
ValueType string `json:"valueType" orm:"value_type" description:"键值数据类型:string,int,uint,bool,datetime,date"`
Type string `json:"type" orm:"type" description:"字典类型"`
ListClass string `json:"listClass" orm:"list_class" description:"表格回显样式"`
IsDefault int `json:"isDefault" orm:"is_default" description:"是否为系统默认"`
Sort int `json:"sort" orm:"sort" 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:"更新时间"`
}
+22
View File
@@ -0,0 +1,22 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysDictType is the golang structure for table sys_dict_type.
type SysDictType struct {
Id int64 `json:"id" orm:"id" description:"字典类型ID"`
Pid int64 `json:"pid" orm:"pid" description:"父类字典类型ID"`
Name string `json:"name" orm:"name" description:"字典类型名称"`
Type string `json:"type" orm:"type" description:"字典类型"`
Sort int `json:"sort" orm:"sort" 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"
)
// SysEmsLog is the golang structure for table sys_ems_log.
type SysEmsLog struct {
Id int64 `json:"id" orm:"id" description:"主键"`
Event string `json:"event" orm:"event" description:"事件"`
Email string `json:"email" orm:"email" description:"邮箱地址,多个用;隔开"`
Code string `json:"code" orm:"code" description:"验证码"`
Times int64 `json:"times" orm:"times" description:"验证次数"`
Content string `json:"content" orm:"content" description:"邮件内容"`
Ip string `json:"ip" orm:"ip" description:"ip地址"`
Status int `json:"status" orm:"status" description:"状态(1未验证,2已验证)"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_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"
)
// SysGenCodes is the golang structure for table sys_gen_codes.
type SysGenCodes struct {
Id int64 `json:"id" orm:"id" description:"生成ID"`
GenType uint `json:"genType" orm:"gen_type" description:"生成类型"`
GenTemplate int `json:"genTemplate" orm:"gen_template" description:"生成模板"`
VarName string `json:"varName" orm:"var_name" description:"实体命名"`
Options *gjson.Json `json:"options" orm:"options" description:"配置选项"`
DbName string `json:"dbName" orm:"db_name" description:"数据库名称"`
TableName string `json:"tableName" orm:"table_name" description:"主表名称"`
TableComment string `json:"tableComment" orm:"table_comment" description:"主表注释"`
DaoName string `json:"daoName" orm:"dao_name" description:"主表dao模型"`
MasterColumns *gjson.Json `json:"masterColumns" orm:"master_columns" description:"主表字段"`
AddonName string `json:"addonName" orm:"addon_name" 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:"更新时间"`
}
+30
View File
@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysGenCurdDemo is the golang structure for table sys_gen_curd_demo.
type SysGenCurdDemo struct {
Id int64 `json:"id" orm:"id" description:"ID"`
CategoryId int64 `json:"categoryId" orm:"category_id" description:"分类ID"`
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:"单图"`
Attachfile string `json:"attachfile" orm:"attachfile" description:"附件"`
CityId int64 `json:"cityId" orm:"city_id" description:"所在城市"`
Switch int `json:"switch" orm:"switch" 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:"更新者"`
DeletedBy int64 `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:"删除时间"`
}
+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"
)
// SysGenTreeDemo is the golang structure for table sys_gen_tree_demo.
type SysGenTreeDemo 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"`
Title string `json:"title" orm:"title" description:"标题"`
Description string `json:"description" orm:"description" 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:"删除时间"`
}
+37
View File
@@ -0,0 +1,37 @@
// =================================================================================
// 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"
)
// SysLog is the golang structure for table sys_log.
type SysLog struct {
Id int64 `json:"id" orm:"id" description:"日志ID"`
ReqId string `json:"reqId" orm:"req_id" description:"对外ID"`
AppId string `json:"appId" orm:"app_id" description:"应用ID"`
MerchantId uint64 `json:"merchantId" orm:"merchant_id" description:"商户ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"用户ID"`
Method string `json:"method" orm:"method" description:"提交类型"`
Module string `json:"module" orm:"module" description:"访问模块"`
Url string `json:"url" orm:"url" description:"提交url"`
GetData *gjson.Json `json:"getData" orm:"get_data" description:"get数据"`
PostData *gjson.Json `json:"postData" orm:"post_data" description:"post数据"`
HeaderData *gjson.Json `json:"headerData" orm:"header_data" description:"header数据"`
Ip string `json:"ip" orm:"ip" description:"IP地址"`
ProvinceId int64 `json:"provinceId" orm:"province_id" description:"省编码"`
CityId int64 `json:"cityId" orm:"city_id" description:"市编码"`
ErrorCode int `json:"errorCode" orm:"error_code" description:"报错code"`
ErrorMsg string `json:"errorMsg" orm:"error_msg" description:"对外错误提示"`
ErrorData *gjson.Json `json:"errorData" orm:"error_data" description:"报错日志"`
UserAgent string `json:"userAgent" orm:"user_agent" description:"UA信息"`
TakeUpTime int64 `json:"takeUpTime" orm:"take_up_time" description:"请求耗时"`
Timestamp int64 `json:"timestamp" orm:"timestamp" 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:"修改时间"`
}
+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"
)
// SysLoginLog is the golang structure for table sys_login_log.
type SysLoginLog struct {
Id int64 `json:"id" orm:"id" description:"日志ID"`
ReqId string `json:"reqId" orm:"req_id" description:"请求ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"用户ID"`
Username string `json:"username" orm:"username" description:"用户名"`
Response *gjson.Json `json:"response" orm:"response" description:"响应数据"`
LoginAt *gtime.Time `json:"loginAt" orm:"login_at" description:"登录时间"`
LoginIp string `json:"loginIp" orm:"login_ip" description:"登录IP"`
ProvinceId int64 `json:"provinceId" orm:"province_id" description:"省编码"`
CityId int64 `json:"cityId" orm:"city_id" description:"市编码"`
UserAgent string `json:"userAgent" orm:"user_agent" description:"UA信息"`
ErrMsg string `json:"errMsg" orm:"err_msg" 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"
)
// SysProvinces is the golang structure for table sys_provinces.
type SysProvinces struct {
Id int64 `json:"id" orm:"id" description:"省市区ID"`
Title string `json:"title" orm:"title" description:"栏目名称"`
Pinyin string `json:"pinyin" orm:"pinyin" description:"拼音"`
Lng string `json:"lng" orm:"lng" description:"经度"`
Lat string `json:"lat" orm:"lat" description:"纬度"`
Pid int64 `json:"pid" orm:"pid" 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:"更新时间"`
}
+31
View File
@@ -0,0 +1,31 @@
// =================================================================================
// 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"
)
// SysServeLicense is the golang structure for table sys_serve_license.
type SysServeLicense struct {
Id int64 `json:"id" orm:"id" description:"许可ID"`
Group string `json:"group" orm:"group" description:"分组"`
Name string `json:"name" orm:"name" description:"许可名称"`
Appid string `json:"appid" orm:"appid" description:"应用ID"`
SecretKey string `json:"secretKey" orm:"secret_key" description:"应用秘钥"`
RemoteAddr string `json:"remoteAddr" orm:"remote_addr" description:"最后连接地址"`
OnlineLimit int `json:"onlineLimit" orm:"online_limit" description:"在线限制"`
LoginTimes int64 `json:"loginTimes" orm:"login_times" description:"登录次数"`
LastLoginAt *gtime.Time `json:"lastLoginAt" orm:"last_login_at" description:"最后登录时间"`
LastActiveAt *gtime.Time `json:"lastActiveAt" orm:"last_active_at" description:"最后心跳"`
Routes *gjson.Json `json:"routes" orm:"routes" description:"路由表,空使用默认分组路由"`
AllowedIps string `json:"allowedIps" orm:"allowed_ips" description:"IP白名单"`
EndAt *gtime.Time `json:"endAt" orm:"end_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:"修改时间"`
}
+24
View File
@@ -0,0 +1,24 @@
// =================================================================================
// 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"
)
// SysServeLog is the golang structure for table sys_serve_log.
type SysServeLog struct {
Id int64 `json:"id" orm:"id" description:"日志ID"`
TraceId string `json:"traceId" orm:"trace_id" description:"链路ID"`
LevelFormat string `json:"levelFormat" orm:"level_format" description:"日志级别"`
Content string `json:"content" orm:"content" description:"日志内容"`
Stack *gjson.Json `json:"stack" orm:"stack" description:"打印堆栈"`
Line string `json:"line" orm:"line" description:"调用行"`
TriggerNs int64 `json:"triggerNs" orm:"trigger_ns" description:"触发时间(ns)"`
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:"修改时间"`
}
+22
View File
@@ -0,0 +1,22 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SysSmsLog is the golang structure for table sys_sms_log.
type SysSmsLog struct {
Id int64 `json:"id" orm:"id" description:"主键"`
Event string `json:"event" orm:"event" description:"事件"`
Mobile string `json:"mobile" orm:"mobile" description:"手机号"`
Code string `json:"code" orm:"code" description:"验证码或短信内容"`
Times int64 `json:"times" orm:"times" description:"验证次数"`
Ip string `json:"ip" orm:"ip" description:"ip地址"`
Status int `json:"status" orm:"status" description:"状态(1未验证,2已验证)"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
+38
View File
@@ -0,0 +1,38 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Task is the golang structure for table task.
type Task struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
TaskNo string `json:"taskNo" orm:"task_no" description:"任务编号"`
HallId uint64 `json:"hallId" orm:"hall_id" description:"任务大厅ID"`
Title string `json:"title" orm:"title" description:"标题"`
Description string `json:"description" orm:"description" description:"描述"`
DetailHtml string `json:"detailHtml" orm:"detail_html" description:"清洗后的任务详情"`
CoverAttachmentId uint64 `json:"coverAttachmentId" orm:"cover_attachment_id" description:"封面附件ID"`
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"封面地址"`
CommissionAmount int64 `json:"commissionAmount" orm:"commission_amount" description:"固定佣金(分)"`
CommissionRate uint `json:"commissionRate" orm:"commission_rate" description:"佣金万分比"`
DailyLimit uint `json:"dailyLimit" orm:"daily_limit" description:"每日总量"`
PerMemberLimit uint `json:"perMemberLimit" orm:"per_member_limit" description:"单会员限制"`
StartAt *gtime.Time `json:"startAt" orm:"start_at" description:"开始时间"`
EndAt *gtime.Time `json:"endAt" orm:"end_at" description:"结束时间"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
Remark string `json:"remark" orm:"remark" 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:"删除时间"`
}
+33
View File
@@ -0,0 +1,33 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TaskHall is the golang structure for table task_hall.
type TaskHall struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
HallCode string `json:"hallCode" orm:"hall_code" description:"大厅编码"`
Name string `json:"name" orm:"name" description:"名称"`
IconAttachmentId uint64 `json:"iconAttachmentId" orm:"icon_attachment_id" description:"图标附件ID"`
IconUrl string `json:"iconUrl" orm:"icon_url" description:"图标URL"`
Summary string `json:"summary" orm:"summary" description:"简介"`
CommissionRate uint `json:"commissionRate" orm:"commission_rate" description:"佣金万分比"`
RateUnit string `json:"rateUnit" orm:"rate_unit" description:"比例单位"`
ClientRoute string `json:"clientRoute" orm:"client_route" description:"C端跳转"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
Sort int `json:"sort" orm:"sort" description:"排序"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
Remark string `json:"remark" orm:"remark" 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,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TaskHallLevel is the golang structure for table task_hall_level.
type TaskHallLevel struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
HallId uint64 `json:"hallId" orm:"hall_id" description:"任务大厅ID"`
LevelId uint64 `json:"levelId" orm:"level_id" description:"会员等级ID"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TaskLevel is the golang structure for table task_level.
type TaskLevel struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
TaskId uint64 `json:"taskId" orm:"task_id" description:"任务ID"`
LevelId uint64 `json:"levelId" orm:"level_id" description:"会员等级ID"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
@@ -0,0 +1,38 @@
// =================================================================================
// 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"
)
// TaskSubmission is the golang structure for table task_submission.
type TaskSubmission struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
SubmissionNo string `json:"submissionNo" orm:"submission_no" description:"提交编号"`
TradeOrderId uint64 `json:"tradeOrderId" orm:"trade_order_id" description:"交易订单ID"`
TaskId uint64 `json:"taskId" orm:"task_id" description:"任务ID"`
MemberId uint64 `json:"memberId" orm:"member_id" description:"会员ID"`
MemberLevelId uint64 `json:"memberLevelId" orm:"member_level_id" description:"提交时等级ID"`
EvidenceText string `json:"evidenceText" orm:"evidence_text" description:"证据说明"`
EvidenceAttachmentIds *gjson.Json `json:"evidenceAttachmentIds" orm:"evidence_attachment_ids" description:"证据附件"`
SubmissionStatus int `json:"submissionStatus" orm:"submission_status" description:"1待审 2通过 3驳回 4已结算 5已冲正"`
CommissionAmount int64 `json:"commissionAmount" orm:"commission_amount" description:"佣金快照(分)"`
SuccessRate uint `json:"successRate" orm:"success_rate" description:"成功率万分比"`
ReviewedBy uint64 `json:"reviewedBy" orm:"reviewed_by" description:"审核人"`
ReviewedAt *gtime.Time `json:"reviewedAt" orm:"reviewed_at" description:"审核时间"`
ReviewReasonCode string `json:"reviewReasonCode" orm:"review_reason_code" description:"标准原因"`
ReviewReason string `json:"reviewReason" orm:"review_reason" description:"审核意见"`
AllowResubmit int `json:"allowResubmit" orm:"allow_resubmit" description:"是否允许重提"`
LedgerId uint64 `json:"ledgerId" orm:"ledger_id" description:"佣金台账ID"`
SettledAt *gtime.Time `json:"settledAt" orm:"settled_at" description:"结算时间"`
ReversalApprovalId uint64 `json:"reversalApprovalId" orm:"reversal_approval_id" description:"冲正审批ID"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" 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"
)
// TestCategory is the golang structure for table test_category.
type TestCategory struct {
Id int64 `json:"id" orm:"id" description:"分类ID"`
Name string `json:"name" orm:"name" description:"分类名称"`
ShortName string `json:"shortName" orm:"short_name" description:"简称"`
Description string `json:"description" orm:"description" description:"描述"`
Sort int `json:"sort" orm:"sort" 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:"修改时间"`
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"`
}
@@ -0,0 +1,40 @@
// =================================================================================
// 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"
)
// TradeOrder is the golang structure for table trade_order.
type TradeOrder struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
OrderNo string `json:"orderNo" orm:"order_no" description:"订单号"`
MemberId uint64 `json:"memberId" orm:"member_id" description:"会员ID"`
TaskId uint64 `json:"taskId" orm:"task_id" description:"任务ID"`
ProductId uint64 `json:"productId" orm:"product_id" description:"商品ID"`
ProductName string `json:"productName" orm:"product_name" description:"商品名称快照"`
OrderType int `json:"orderType" orm:"order_type" description:"订单类型"`
Quantity uint `json:"quantity" orm:"quantity" description:"数量"`
UnitPriceAmount int64 `json:"unitPriceAmount" orm:"unit_price_amount" description:"单价(分)"`
TotalAmount int64 `json:"totalAmount" orm:"total_amount" description:"订单金额(分)"`
CommissionAmount int64 `json:"commissionAmount" orm:"commission_amount" description:"佣金(分)"`
Currency string `json:"currency" orm:"currency" description:"币种"`
MemberLevelId uint64 `json:"memberLevelId" orm:"member_level_id" description:"下单等级ID"`
RuleSnapshot *gjson.Json `json:"ruleSnapshot" orm:"rule_snapshot" description:"规则快照"`
Message string `json:"message" orm:"message" description:"订单消息"`
OrderStatus int `json:"orderStatus" orm:"order_status" description:"订单状态"`
FreezeStatus int `json:"freezeStatus" orm:"freeze_status" description:"冻结状态"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"人工处理审批ID"`
MatchedAt *gtime.Time `json:"matchedAt" orm:"matched_at" description:"匹配时间"`
CompletedAt *gtime.Time `json:"completedAt" orm:"completed_at" description:"完成时间"`
UnfrozenAt *gtime.Time `json:"unfrozenAt" orm:"unfrozen_at" description:"解冻时间"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"下单时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -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"
)
// WalletAccount is the golang structure for table wallet_account.
type WalletAccount 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"`
Currency string `json:"currency" orm:"currency" description:"币种"`
AvailableAmount int64 `json:"availableAmount" orm:"available_amount" description:"可用金额(分)"`
FrozenAmount int64 `json:"frozenAmount" orm:"frozen_amount" description:"冻结金额(分)"`
TotalIncome int64 `json:"totalIncome" orm:"total_income" description:"累计收入(分)"`
TotalExpense int64 `json:"totalExpense" orm:"total_expense" description:"累计支出(分)"`
AccountStatus int `json:"accountStatus" orm:"account_status" description:"账户状态"`
Version uint `json:"version" orm:"version" description:"乐观锁"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}
@@ -0,0 +1,33 @@
// =================================================================================
// 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"
)
// WalletAdjustmentRequest is the golang structure for table wallet_adjustment_request.
type WalletAdjustmentRequest struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
RequestNo string `json:"requestNo" orm:"request_no" description:"申请单号"`
MemberId uint64 `json:"memberId" orm:"member_id" description:"会员ID"`
AccountId uint64 `json:"accountId" orm:"account_id" description:"钱包账户ID"`
AdjustType int `json:"adjustType" orm:"adjust_type" description:"调整类型"`
Direction int `json:"direction" orm:"direction" description:"方向 1收入 2支出"`
Amount int64 `json:"amount" orm:"amount" description:"金额(分)"`
ReasonCode string `json:"reasonCode" orm:"reason_code" description:"原因编码"`
ReasonText string `json:"reasonText" orm:"reason_text" description:"原因说明"`
EvidenceJson *gjson.Json `json:"evidenceJson" orm:"evidence_json" description:"凭证附件"`
IdempotencyKey string `json:"idempotencyKey" orm:"idempotency_key" description:"幂等键"`
RequestStatus int `json:"requestStatus" orm:"request_status" description:"状态 1待审批 2已通过 3已拒绝 4已执行"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批单ID"`
LedgerId uint64 `json:"ledgerId" orm:"ledger_id" description:"账变流水ID"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_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"
)
// WalletLedger is the golang structure for table wallet_ledger.
type WalletLedger struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
LedgerNo string `json:"ledgerNo" orm:"ledger_no" description:"账变流水号"`
AccountId uint64 `json:"accountId" orm:"account_id" description:"钱包账户ID"`
MemberId uint64 `json:"memberId" orm:"member_id" description:"会员ID"`
BizType string `json:"bizType" orm:"biz_type" description:"业务类型"`
BizNo string `json:"bizNo" orm:"biz_no" description:"业务单号"`
EntryType string `json:"entryType" orm:"entry_type" description:"账变类型"`
Direction int `json:"direction" orm:"direction" description:"方向 1收入 2支出"`
Amount int64 `json:"amount" orm:"amount" description:"发生金额(分)"`
BeforeAmount int64 `json:"beforeAmount" orm:"before_amount" description:"变更前余额(分)"`
AfterAmount int64 `json:"afterAmount" orm:"after_amount" description:"变更后余额(分)"`
Currency string `json:"currency" orm:"currency" description:"币种"`
ReversalOf uint64 `json:"reversalOf" orm:"reversal_of" description:"冲正原流水ID"`
IdempotencyKey string `json:"idempotencyKey" orm:"idempotency_key" description:"幂等键"`
Remark string `json:"remark" orm:"remark" description:"说明"`
OperatorId uint64 `json:"operatorId" orm:"operator_id" description:"操作人"`
OccurredAt *gtime.Time `json:"occurredAt" orm:"occurred_at" description:"发生时间"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
}
@@ -0,0 +1,43 @@
// =================================================================================
// 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"
)
// WithdrawalOrder is the golang structure for table withdrawal_order.
type WithdrawalOrder struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
WithdrawalNo string `json:"withdrawalNo" orm:"withdrawal_no" description:"提现单号"`
MemberId uint64 `json:"memberId" orm:"member_id" description:"会员ID"`
PaymentAccountId uint64 `json:"paymentAccountId" orm:"payment_account_id" description:"收款账户ID"`
ChannelId uint64 `json:"channelId" orm:"channel_id" description:"付款渠道ID"`
RequestAmount int64 `json:"requestAmount" orm:"request_amount" description:"申请金额(分)"`
FeeAmount int64 `json:"feeAmount" orm:"fee_amount" description:"手续费(分)"`
ActualAmount int64 `json:"actualAmount" orm:"actual_amount" description:"实际到账(分)"`
Currency string `json:"currency" orm:"currency" description:"币种"`
AccountSnapshotCipher string `json:"accountSnapshotCipher" orm:"account_snapshot_cipher" description:"收款账户加密快照"`
AccountMask string `json:"accountMask" orm:"account_mask" description:"收款账户脱敏快照"`
BankName string `json:"bankName" orm:"bank_name" description:"银行名称快照"`
HolderMask string `json:"holderMask" orm:"holder_mask" description:"开户名脱敏快照"`
RiskResult *gjson.Json `json:"riskResult" orm:"risk_result" description:"风控结果摘要"`
WithdrawalStatus int `json:"withdrawalStatus" orm:"withdrawal_status" description:"提现状态"`
ReviewReasonCode string `json:"reviewReasonCode" orm:"review_reason_code" description:"审核原因编码"`
ReviewReason string `json:"reviewReason" orm:"review_reason" description:"审核意见"`
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"审批单ID"`
ExternalNo string `json:"externalNo" orm:"external_no" description:"外部付款单号"`
FreezeLedgerId uint64 `json:"freezeLedgerId" orm:"freeze_ledger_id" description:"冻结台账ID"`
FinalLedgerId uint64 `json:"finalLedgerId" orm:"final_ledger_id" description:"完成或解冻台账ID"`
ReviewedAt *gtime.Time `json:"reviewedAt" orm:"reviewed_at" description:"审核时间"`
ProcessedAt *gtime.Time `json:"processedAt" orm:"processed_at" description:"处理时间"`
CompletedAt *gtime.Time `json:"completedAt" orm:"completed_at" description:"完成时间"`
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"发起时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}