mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
发布v2.15.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -24,6 +24,7 @@ type Identity struct {
|
||||
Id int64 `json:"id" description:"用户ID"`
|
||||
Pid int64 `json:"pid" description:"上级ID"`
|
||||
DeptId int64 `json:"deptId" description:"部门ID"`
|
||||
DeptType string `json:"deptType" description:"部门类型"`
|
||||
RoleId int64 `json:"roleId" description:"角色ID"`
|
||||
RoleKey string `json:"roleKey" description:"角色唯一标识符"`
|
||||
Username string `json:"username" description:"用户名"`
|
||||
|
@@ -14,6 +14,9 @@ import (
|
||||
type AddonHgexampleTable struct {
|
||||
g.Meta `orm:"table:hg_addon_hgexample_table, do:true"`
|
||||
Id interface{} // ID
|
||||
Pid interface{} // 上级ID
|
||||
Level interface{} // 树等级
|
||||
Tree interface{} // 关系树
|
||||
CategoryId interface{} // 分类ID
|
||||
Flag *gjson.Json // 标签
|
||||
Title interface{} // 标题
|
||||
@@ -40,9 +43,6 @@ type AddonHgexampleTable struct {
|
||||
Hobby *gjson.Json // 爱好
|
||||
Channel interface{} // 渠道
|
||||
CityId interface{} // 所在城市
|
||||
Pid interface{} // 上级ID
|
||||
Level interface{} // 树等级
|
||||
Tree interface{} // 关系树
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
CreatedBy interface{} // 创建者
|
||||
|
26
server/internal/model/do/addon_hgexample_tenant_order.go
Normal file
26
server/internal/model/do/addon_hgexample_tenant_order.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// AddonHgexampleTenantOrder is the golang structure of table hg_addon_hgexample_tenant_order for DAO operations like Where/Data.
|
||||
type AddonHgexampleTenantOrder struct {
|
||||
g.Meta `orm:"table:hg_addon_hgexample_tenant_order, do:true"`
|
||||
Id interface{} // 主键
|
||||
TenantId interface{} // 租户ID
|
||||
MerchantId interface{} // 商户ID
|
||||
UserId interface{} // 用户ID
|
||||
ProductName interface{} // 购买产品
|
||||
OrderSn interface{} // 订单号
|
||||
Money interface{} // 充值金额
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 订单状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 修改时间
|
||||
}
|
29
server/internal/model/do/sys_gen_tree_demo.go
Normal file
29
server/internal/model/do/sys_gen_tree_demo.go
Normal file
@@ -0,0 +1,29 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysGenTreeDemo is the golang structure of table hg_sys_gen_tree_demo for DAO operations like Where/Data.
|
||||
type SysGenTreeDemo struct {
|
||||
g.Meta `orm:"table:hg_sys_gen_tree_demo, do:true"`
|
||||
Id interface{} // ID
|
||||
Pid interface{} // 上级ID
|
||||
Level interface{} // 关系树级别
|
||||
Tree interface{} // 关系树
|
||||
CategoryId interface{} // 分类ID
|
||||
Title interface{} // 标题
|
||||
Description interface{} // 描述
|
||||
Sort interface{} // 排序
|
||||
Status interface{} // 状态
|
||||
CreatedBy interface{} // 创建者
|
||||
UpdatedBy interface{} // 更新者
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 修改时间
|
||||
DeletedAt *gtime.Time // 删除时间
|
||||
}
|
@@ -12,16 +12,19 @@ import (
|
||||
|
||||
// SysLoginLog is the golang structure of table hg_sys_login_log for DAO operations like Where/Data.
|
||||
type SysLoginLog struct {
|
||||
g.Meta `orm:"table:hg_sys_login_log, do:true"`
|
||||
Id interface{} // 日志ID
|
||||
ReqId interface{} // 请求ID
|
||||
MemberId interface{} // 用户ID
|
||||
Username interface{} // 用户名
|
||||
Response *gjson.Json // 响应数据
|
||||
LoginAt *gtime.Time // 登录时间
|
||||
LoginIp interface{} // 登录IP
|
||||
ErrMsg interface{} // 错误提示
|
||||
Status interface{} // 状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 修改时间
|
||||
g.Meta `orm:"table:hg_sys_login_log, do:true"`
|
||||
Id interface{} // 日志ID
|
||||
ReqId interface{} // 请求ID
|
||||
MemberId interface{} // 用户ID
|
||||
Username interface{} // 用户名
|
||||
Response *gjson.Json // 响应数据
|
||||
LoginAt *gtime.Time // 登录时间
|
||||
LoginIp interface{} // 登录IP
|
||||
ProvinceId interface{} // 省编码
|
||||
CityId interface{} // 市编码
|
||||
UserAgent interface{} // UA信息
|
||||
ErrMsg interface{} // 错误提示
|
||||
Status interface{} // 状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 修改时间
|
||||
}
|
||||
|
@@ -14,6 +14,7 @@ type TestCategory struct {
|
||||
g.Meta `orm:"table:hg_test_category, do:true"`
|
||||
Id interface{} // 分类ID
|
||||
Name interface{} // 分类名称
|
||||
ShortName interface{} // 简称
|
||||
Description interface{} // 描述
|
||||
Sort interface{} // 排序
|
||||
Remark interface{} // 备注
|
||||
|
@@ -11,41 +11,41 @@ import (
|
||||
|
||||
// AddonHgexampleTable is the golang structure for table addon_hgexample_table.
|
||||
type AddonHgexampleTable struct {
|
||||
Id int64 `json:"id" description:"ID"`
|
||||
CategoryId int64 `json:"categoryId" description:"分类ID"`
|
||||
Flag *gjson.Json `json:"flag" description:"标签"`
|
||||
Title string `json:"title" description:"标题"`
|
||||
Description string `json:"description" description:"描述"`
|
||||
Content string `json:"content" description:"内容"`
|
||||
Image string `json:"image" description:"单图"`
|
||||
Images *gjson.Json `json:"images" description:"多图"`
|
||||
Attachfile string `json:"attachfile" description:"附件"`
|
||||
Attachfiles *gjson.Json `json:"attachfiles" description:"多附件"`
|
||||
Map *gjson.Json `json:"map" description:"动态键值对"`
|
||||
Star float64 `json:"star" description:"推荐星"`
|
||||
Price float64 `json:"price" description:"价格"`
|
||||
Views int64 `json:"views" description:"浏览次数"`
|
||||
ActivityAt *gtime.Time `json:"activityAt" description:"活动时间"`
|
||||
StartAt *gtime.Time `json:"startAt" description:"开启时间"`
|
||||
EndAt *gtime.Time `json:"endAt" description:"结束时间"`
|
||||
Switch int `json:"switch" description:"开关"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Avatar string `json:"avatar" description:"头像"`
|
||||
Sex int `json:"sex" description:"性别"`
|
||||
Qq string `json:"qq" description:"qq"`
|
||||
Email string `json:"email" description:"邮箱"`
|
||||
Mobile string `json:"mobile" description:"手机号码"`
|
||||
Hobby *gjson.Json `json:"hobby" description:"爱好"`
|
||||
Channel int `json:"channel" description:"渠道"`
|
||||
CityId int64 `json:"cityId" description:"所在城市"`
|
||||
Pid int64 `json:"pid" description:"上级ID"`
|
||||
Level int `json:"level" description:"树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" description:"创建者"`
|
||||
UpdatedBy int64 `json:"updatedBy" description:"更新者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
|
||||
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:"删除时间"`
|
||||
}
|
||||
|
24
server/internal/model/entity/addon_hgexample_tenant_order.go
Normal file
24
server/internal/model/entity/addon_hgexample_tenant_order.go
Normal file
@@ -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:"修改时间"`
|
||||
}
|
@@ -10,14 +10,14 @@ import (
|
||||
|
||||
// AdminCash is the golang structure for table admin_cash.
|
||||
type AdminCash struct {
|
||||
Id int64 `json:"id" description:"ID"`
|
||||
MemberId int64 `json:"memberId" description:"管理员ID"`
|
||||
Money float64 `json:"money" description:"提现金额"`
|
||||
Fee float64 `json:"fee" description:"手续费"`
|
||||
LastMoney float64 `json:"lastMoney" description:"最终到账金额"`
|
||||
Ip string `json:"ip" description:"申请人IP"`
|
||||
Status int64 `json:"status" description:"状态码"`
|
||||
Msg string `json:"msg" description:"处理结果"`
|
||||
HandleAt *gtime.Time `json:"handleAt" description:"处理时间"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"申请时间"`
|
||||
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:"申请时间"`
|
||||
}
|
||||
|
@@ -10,19 +10,19 @@ import (
|
||||
|
||||
// AdminCreditsLog is the golang structure for table admin_credits_log.
|
||||
type AdminCreditsLog struct {
|
||||
Id int64 `json:"id" description:"变动ID"`
|
||||
MemberId int64 `json:"memberId" description:"管理员ID"`
|
||||
AppId string `json:"appId" description:"应用id"`
|
||||
AddonsName string `json:"addonsName" description:"插件名称"`
|
||||
CreditType string `json:"creditType" description:"变动类型"`
|
||||
CreditGroup string `json:"creditGroup" description:"变动组别"`
|
||||
BeforeNum float64 `json:"beforeNum" description:"变动前"`
|
||||
Num float64 `json:"num" description:"变动数据"`
|
||||
AfterNum float64 `json:"afterNum" description:"变动后"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Ip string `json:"ip" description:"操作人IP"`
|
||||
MapId int64 `json:"mapId" description:"关联ID"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -10,18 +10,18 @@ import (
|
||||
|
||||
// AdminDept is the golang structure for table admin_dept.
|
||||
type AdminDept struct {
|
||||
Id int64 `json:"id" description:"部门ID"`
|
||||
Pid int64 `json:"pid" description:"父部门ID"`
|
||||
Name string `json:"name" description:"部门名称"`
|
||||
Code string `json:"code" description:"部门编码"`
|
||||
Type string `json:"type" description:"部门类型"`
|
||||
Leader string `json:"leader" description:"负责人"`
|
||||
Phone string `json:"phone" description:"联系电话"`
|
||||
Email string `json:"email" description:"邮箱"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"部门状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -11,32 +11,32 @@ import (
|
||||
|
||||
// AdminMember is the golang structure for table admin_member.
|
||||
type AdminMember struct {
|
||||
Id int64 `json:"id" description:"管理员ID"`
|
||||
DeptId int64 `json:"deptId" description:"部门ID"`
|
||||
RoleId int64 `json:"roleId" description:"角色ID"`
|
||||
RealName string `json:"realName" description:"真实姓名"`
|
||||
Username string `json:"username" description:"帐号"`
|
||||
PasswordHash string `json:"passwordHash" description:"密码"`
|
||||
Salt string `json:"salt" description:"密码盐"`
|
||||
PasswordResetToken string `json:"passwordResetToken" description:"密码重置令牌"`
|
||||
Integral float64 `json:"integral" description:"积分"`
|
||||
Balance float64 `json:"balance" description:"余额"`
|
||||
Avatar string `json:"avatar" description:"头像"`
|
||||
Sex int `json:"sex" description:"性别"`
|
||||
Qq string `json:"qq" description:"qq"`
|
||||
Email string `json:"email" description:"邮箱"`
|
||||
Mobile string `json:"mobile" description:"手机号码"`
|
||||
Birthday *gtime.Time `json:"birthday" description:"生日"`
|
||||
CityId int64 `json:"cityId" description:"城市编码"`
|
||||
Address string `json:"address" description:"联系地址"`
|
||||
Pid int64 `json:"pid" description:"上级管理员ID"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
InviteCode string `json:"inviteCode" description:"邀请码"`
|
||||
Cash *gjson.Json `json:"cash" description:"提现配置"`
|
||||
LastActiveAt *gtime.Time `json:"lastActiveAt" description:"最后活跃时间"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -6,6 +6,6 @@ package entity
|
||||
|
||||
// AdminMemberPost is the golang structure for table admin_member_post.
|
||||
type AdminMemberPost struct {
|
||||
MemberId int64 `json:"memberId" description:"管理员ID"`
|
||||
PostId int64 `json:"postId" description:"岗位ID"`
|
||||
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员ID"`
|
||||
PostId int64 `json:"postId" orm:"post_id" description:"岗位ID"`
|
||||
}
|
||||
|
@@ -6,6 +6,6 @@ package entity
|
||||
|
||||
// AdminMemberRole is the golang structure for table admin_member_role.
|
||||
type AdminMemberRole struct {
|
||||
MemberId int64 `json:"memberId" description:"管理员ID"`
|
||||
RoleId int64 `json:"roleId" description:"角色ID"`
|
||||
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员ID"`
|
||||
RoleId int64 `json:"roleId" orm:"role_id" description:"角色ID"`
|
||||
}
|
||||
|
@@ -10,30 +10,30 @@ import (
|
||||
|
||||
// AdminMenu is the golang structure for table admin_menu.
|
||||
type AdminMenu struct {
|
||||
Id int64 `json:"id" description:"菜单ID"`
|
||||
Pid int64 `json:"pid" description:"父菜单ID"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
Title string `json:"title" description:"菜单名称"`
|
||||
Name string `json:"name" description:"名称编码"`
|
||||
Path string `json:"path" description:"路由地址"`
|
||||
Icon string `json:"icon" description:"菜单图标"`
|
||||
Type int `json:"type" description:"菜单类型(1目录 2菜单 3按钮)"`
|
||||
Redirect string `json:"redirect" description:"重定向地址"`
|
||||
Permissions string `json:"permissions" description:"菜单包含权限集合"`
|
||||
PermissionName string `json:"permissionName" description:"权限名称"`
|
||||
Component string `json:"component" description:"组件路径"`
|
||||
AlwaysShow int `json:"alwaysShow" description:"取消自动计算根路由模式"`
|
||||
ActiveMenu string `json:"activeMenu" description:"高亮菜单编码"`
|
||||
IsRoot int `json:"isRoot" description:"是否跟路由"`
|
||||
IsFrame int `json:"isFrame" description:"是否内嵌"`
|
||||
FrameSrc string `json:"frameSrc" description:"内联外部地址"`
|
||||
KeepAlive int `json:"keepAlive" description:"缓存该路由"`
|
||||
Hidden int `json:"hidden" description:"是否隐藏"`
|
||||
Affix int `json:"affix" description:"是否固定"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"菜单状态"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
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:"创建时间"`
|
||||
}
|
||||
|
@@ -11,18 +11,18 @@ import (
|
||||
|
||||
// AdminNotice is the golang structure for table admin_notice.
|
||||
type AdminNotice struct {
|
||||
Id int64 `json:"id" description:"公告ID"`
|
||||
Title string `json:"title" description:"公告标题"`
|
||||
Type int64 `json:"type" description:"公告类型"`
|
||||
Tag int `json:"tag" description:"标签"`
|
||||
Content string `json:"content" description:"公告内容"`
|
||||
Receiver *gjson.Json `json:"receiver" description:"接收者"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"公告状态"`
|
||||
CreatedBy int64 `json:"createdBy" description:"发送人"`
|
||||
UpdatedBy int64 `json:"updatedBy" description:"修改人"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
|
||||
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:"删除时间"`
|
||||
}
|
||||
|
@@ -10,10 +10,10 @@ import (
|
||||
|
||||
// AdminNoticeRead is the golang structure for table admin_notice_read.
|
||||
type AdminNoticeRead struct {
|
||||
Id int64 `json:"id" description:"记录ID"`
|
||||
NoticeId int64 `json:"noticeId" description:"公告ID"`
|
||||
MemberId int64 `json:"memberId" description:"会员ID"`
|
||||
Clicks int `json:"clicks" description:"已读次数"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"阅读时间"`
|
||||
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:"阅读时间"`
|
||||
}
|
||||
|
@@ -10,19 +10,19 @@ import (
|
||||
|
||||
// AdminOauth is the golang structure for table admin_oauth.
|
||||
type AdminOauth struct {
|
||||
Id int64 `json:"id" description:"主键"`
|
||||
MemberId int64 `json:"memberId" description:"用户ID"`
|
||||
Unionid string `json:"unionid" description:"唯一ID"`
|
||||
OauthClient string `json:"oauthClient" description:"授权组别"`
|
||||
OauthOpenid string `json:"oauthOpenid" description:"授权开放ID"`
|
||||
Sex int `json:"sex" description:"性别"`
|
||||
Nickname string `json:"nickname" description:"昵称"`
|
||||
HeadPortrait string `json:"headPortrait" description:"头像"`
|
||||
Birthday *gtime.Time `json:"birthday" description:"生日"`
|
||||
Country string `json:"country" description:"国家"`
|
||||
Province string `json:"province" description:"省"`
|
||||
City string `json:"city" description:"市"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -10,16 +10,16 @@ import (
|
||||
|
||||
// AdminOrder is the golang structure for table admin_order.
|
||||
type AdminOrder struct {
|
||||
Id int64 `json:"id" description:"主键"`
|
||||
MemberId int64 `json:"memberId" description:"管理员id"`
|
||||
OrderType string `json:"orderType" description:"订单类型"`
|
||||
ProductId int64 `json:"productId" description:"产品id"`
|
||||
OrderSn string `json:"orderSn" description:"关联订单号"`
|
||||
Money float64 `json:"money" description:"充值金额"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
RefundReason string `json:"refundReason" description:"退款原因"`
|
||||
RejectRefundReason string `json:"rejectRefundReason" description:"拒绝退款原因"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -10,12 +10,12 @@ import (
|
||||
|
||||
// AdminPost is the golang structure for table admin_post.
|
||||
type AdminPost struct {
|
||||
Id int64 `json:"id" description:"岗位ID"`
|
||||
Code string `json:"code" description:"岗位编码"`
|
||||
Name string `json:"name" description:"岗位名称"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -11,17 +11,17 @@ import (
|
||||
|
||||
// AdminRole is the golang structure for table admin_role.
|
||||
type AdminRole struct {
|
||||
Id int64 `json:"id" description:"角色ID"`
|
||||
Name string `json:"name" description:"角色名称"`
|
||||
Key string `json:"key" description:"角色权限字符串"`
|
||||
DataScope int `json:"dataScope" description:"数据范围"`
|
||||
CustomDept *gjson.Json `json:"customDept" description:"自定义部门权限"`
|
||||
Pid int64 `json:"pid" description:"上级角色ID"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"角色状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -6,12 +6,12 @@ package entity
|
||||
|
||||
// AdminRoleCasbin is the golang structure for table admin_role_casbin.
|
||||
type AdminRoleCasbin struct {
|
||||
Id int64 `json:"id" description:""`
|
||||
PType string `json:"pType" description:""`
|
||||
V0 string `json:"v0" description:""`
|
||||
V1 string `json:"v1" description:""`
|
||||
V2 string `json:"v2" description:""`
|
||||
V3 string `json:"v3" description:""`
|
||||
V4 string `json:"v4" description:""`
|
||||
V5 string `json:"v5" description:""`
|
||||
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:""`
|
||||
}
|
||||
|
@@ -6,6 +6,6 @@ package entity
|
||||
|
||||
// AdminRoleMenu is the golang structure for table admin_role_menu.
|
||||
type AdminRoleMenu struct {
|
||||
RoleId int64 `json:"roleId" description:"角色ID"`
|
||||
MenuId int64 `json:"menuId" description:"菜单ID"`
|
||||
RoleId int64 `json:"roleId" orm:"role_id" description:"角色ID"`
|
||||
MenuId int64 `json:"menuId" orm:"menu_id" description:"菜单ID"`
|
||||
}
|
||||
|
@@ -11,34 +11,34 @@ import (
|
||||
|
||||
// PayLog is the golang structure for table pay_log.
|
||||
type PayLog struct {
|
||||
Id int64 `json:"id" description:"主键"`
|
||||
MemberId int64 `json:"memberId" description:"会员ID"`
|
||||
AppId string `json:"appId" description:"应用ID"`
|
||||
AddonsName string `json:"addonsName" description:"插件名称"`
|
||||
OrderSn string `json:"orderSn" description:"关联订单号"`
|
||||
OrderGroup string `json:"orderGroup" description:"组别[默认统一支付类型]"`
|
||||
Openid string `json:"openid" description:"openid"`
|
||||
MchId string `json:"mchId" description:"商户支付账户"`
|
||||
Subject string `json:"subject" description:"订单标题"`
|
||||
Detail *gjson.Json `json:"detail" description:"支付商品详情"`
|
||||
AuthCode string `json:"authCode" description:"刷卡码"`
|
||||
OutTradeNo string `json:"outTradeNo" description:"商户订单号"`
|
||||
TransactionId string `json:"transactionId" description:"交易号"`
|
||||
PayType string `json:"payType" description:"支付类型"`
|
||||
PayAmount float64 `json:"payAmount" description:"支付金额"`
|
||||
ActualAmount float64 `json:"actualAmount" description:"实付金额"`
|
||||
PayStatus int `json:"payStatus" description:"支付状态"`
|
||||
PayAt *gtime.Time `json:"payAt" description:"支付时间"`
|
||||
TradeType string `json:"tradeType" description:"交易类型"`
|
||||
RefundSn string `json:"refundSn" description:"退款单号"`
|
||||
IsRefund int `json:"isRefund" description:"是否退款"`
|
||||
Custom string `json:"custom" description:"自定义参数"`
|
||||
CreateIp string `json:"createIp" description:"创建者IP"`
|
||||
PayIp string `json:"payIp" description:"支付者IP"`
|
||||
NotifyUrl string `json:"notifyUrl" description:"支付通知回调地址"`
|
||||
ReturnUrl string `json:"returnUrl" description:"买家付款成功跳转地址"`
|
||||
TraceIds *gjson.Json `json:"traceIds" description:"链路ID集合"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -10,17 +10,17 @@ import (
|
||||
|
||||
// PayRefund is the golang structure for table pay_refund.
|
||||
type PayRefund struct {
|
||||
Id uint64 `json:"id" description:"主键ID"`
|
||||
MemberId int64 `json:"memberId" description:"会员ID"`
|
||||
AppId string `json:"appId" description:"应用ID"`
|
||||
OrderSn string `json:"orderSn" description:"业务订单号"`
|
||||
RefundTradeNo string `json:"refundTradeNo" description:"退款交易号"`
|
||||
RefundMoney float64 `json:"refundMoney" description:"退款金额"`
|
||||
RefundWay int `json:"refundWay" description:"退款方式"`
|
||||
Ip string `json:"ip" description:"申请者IP"`
|
||||
Reason string `json:"reason" description:"申请退款原因"`
|
||||
Remark string `json:"remark" description:"退款备注"`
|
||||
Status int `json:"status" description:"退款状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"申请时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,18 +10,18 @@ import (
|
||||
|
||||
// SysAddonsConfig is the golang structure for table sys_addons_config.
|
||||
type SysAddonsConfig struct {
|
||||
Id int64 `json:"id" description:"配置ID"`
|
||||
AddonName string `json:"addonName" description:"插件名称"`
|
||||
Group string `json:"group" description:"分组"`
|
||||
Name string `json:"name" description:"参数名称"`
|
||||
Type string `json:"type" description:"键值类型:string,int,uint,bool,datetime,date"`
|
||||
Key string `json:"key" description:"参数键名"`
|
||||
Value string `json:"value" description:"参数键值"`
|
||||
DefaultValue string `json:"defaultValue" description:"默认值"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Tip string `json:"tip" description:"变量描述"`
|
||||
IsDefault int `json:"isDefault" description:"是否为系统默认"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,21 +10,21 @@ import (
|
||||
|
||||
// SysAttachment is the golang structure for table sys_attachment.
|
||||
type SysAttachment struct {
|
||||
Id int64 `json:"id" description:"文件ID"`
|
||||
AppId string `json:"appId" description:"应用ID"`
|
||||
MemberId int64 `json:"memberId" description:"管理员ID"`
|
||||
CateId uint64 `json:"cateId" description:"上传分类"`
|
||||
Drive string `json:"drive" description:"上传驱动"`
|
||||
Name string `json:"name" description:"文件原始名"`
|
||||
Kind string `json:"kind" description:"上传类型"`
|
||||
MimeType string `json:"mimeType" description:"扩展类型"`
|
||||
NaiveType string `json:"naiveType" description:"NaiveUI类型"`
|
||||
Path string `json:"path" description:"本地路径"`
|
||||
FileUrl string `json:"fileUrl" description:"url"`
|
||||
Size int64 `json:"size" description:"文件大小"`
|
||||
Ext string `json:"ext" description:"扩展名"`
|
||||
Md5 string `json:"md5" description:"md5校验码"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -10,10 +10,10 @@ import (
|
||||
|
||||
// SysBlacklist is the golang structure for table sys_blacklist.
|
||||
type SysBlacklist struct {
|
||||
Id int64 `json:"id" description:"黑名单ID"`
|
||||
Ip string `json:"ip" description:"IP地址"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,17 +10,17 @@ import (
|
||||
|
||||
// SysConfig is the golang structure for table sys_config.
|
||||
type SysConfig struct {
|
||||
Id int64 `json:"id" description:"配置ID"`
|
||||
Group string `json:"group" description:"配置分组"`
|
||||
Name string `json:"name" description:"参数名称"`
|
||||
Type string `json:"type" description:"键值类型:string,int,uint,bool,datetime,date"`
|
||||
Key string `json:"key" description:"参数键名"`
|
||||
Value string `json:"value" description:"参数键值"`
|
||||
DefaultValue string `json:"defaultValue" description:"默认值"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Tip string `json:"tip" description:"变量描述"`
|
||||
IsDefault int `json:"isDefault" description:"是否为系统默认"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,17 +10,17 @@ import (
|
||||
|
||||
// SysCron is the golang structure for table sys_cron.
|
||||
type SysCron struct {
|
||||
Id int64 `json:"id" description:"任务ID"`
|
||||
GroupId int64 `json:"groupId" description:"分组ID"`
|
||||
Title string `json:"title" description:"任务标题"`
|
||||
Name string `json:"name" description:"任务方法"`
|
||||
Params string `json:"params" description:"函数参数"`
|
||||
Pattern string `json:"pattern" description:"表达式"`
|
||||
Policy int64 `json:"policy" description:"策略"`
|
||||
Count int64 `json:"count" description:"执行次数"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"任务状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,13 +10,13 @@ import (
|
||||
|
||||
// SysCronGroup is the golang structure for table sys_cron_group.
|
||||
type SysCronGroup struct {
|
||||
Id int64 `json:"id" description:"任务分组ID"`
|
||||
Pid int64 `json:"pid" description:"父类任务分组ID"`
|
||||
Name string `json:"name" description:"分组名称"`
|
||||
IsDefault int `json:"isDefault" description:"是否默认"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"分组状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,16 +10,16 @@ import (
|
||||
|
||||
// SysDictData is the golang structure for table sys_dict_data.
|
||||
type SysDictData struct {
|
||||
Id int64 `json:"id" description:"字典数据ID"`
|
||||
Label string `json:"label" description:"字典标签"`
|
||||
Value string `json:"value" description:"字典键值"`
|
||||
ValueType string `json:"valueType" description:"键值数据类型:string,int,uint,bool,datetime,date"`
|
||||
Type string `json:"type" description:"字典类型"`
|
||||
ListClass string `json:"listClass" description:"表格回显样式"`
|
||||
IsDefault int `json:"isDefault" description:"是否为系统默认"`
|
||||
Sort int `json:"sort" description:"字典排序"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,13 +10,13 @@ import (
|
||||
|
||||
// SysDictType is the golang structure for table sys_dict_type.
|
||||
type SysDictType struct {
|
||||
Id int64 `json:"id" description:"字典类型ID"`
|
||||
Pid int64 `json:"pid" description:"父类字典类型ID"`
|
||||
Name string `json:"name" description:"字典类型名称"`
|
||||
Type string `json:"type" description:"字典类型"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"字典类型状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,14 +10,14 @@ import (
|
||||
|
||||
// SysEmsLog is the golang structure for table sys_ems_log.
|
||||
type SysEmsLog struct {
|
||||
Id int64 `json:"id" description:"主键"`
|
||||
Event string `json:"event" description:"事件"`
|
||||
Email string `json:"email" description:"邮箱地址,多个用;隔开"`
|
||||
Code string `json:"code" description:"验证码"`
|
||||
Times int64 `json:"times" description:"验证次数"`
|
||||
Content string `json:"content" description:"邮件内容"`
|
||||
Ip string `json:"ip" description:"ip地址"`
|
||||
Status int `json:"status" description:"状态(1未验证,2已验证)"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -11,18 +11,18 @@ import (
|
||||
|
||||
// SysGenCodes is the golang structure for table sys_gen_codes.
|
||||
type SysGenCodes struct {
|
||||
Id int64 `json:"id" description:"生成ID"`
|
||||
GenType uint `json:"genType" description:"生成类型"`
|
||||
GenTemplate int `json:"genTemplate" description:"生成模板"`
|
||||
VarName string `json:"varName" description:"实体命名"`
|
||||
Options *gjson.Json `json:"options" description:"配置选项"`
|
||||
DbName string `json:"dbName" description:"数据库名称"`
|
||||
TableName string `json:"tableName" description:"主表名称"`
|
||||
TableComment string `json:"tableComment" description:"主表注释"`
|
||||
DaoName string `json:"daoName" description:"主表dao模型"`
|
||||
MasterColumns *gjson.Json `json:"masterColumns" description:"主表字段"`
|
||||
AddonName string `json:"addonName" description:"插件名称"`
|
||||
Status int `json:"status" description:"生成状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,20 +10,20 @@ import (
|
||||
|
||||
// SysGenCurdDemo is the golang structure for table sys_gen_curd_demo.
|
||||
type SysGenCurdDemo struct {
|
||||
Id int64 `json:"id" description:"ID"`
|
||||
CategoryId int64 `json:"categoryId" description:"分类ID"`
|
||||
Title string `json:"title" description:"标题"`
|
||||
Description string `json:"description" description:"描述"`
|
||||
Content string `json:"content" description:"内容"`
|
||||
Image string `json:"image" description:"单图"`
|
||||
Attachfile string `json:"attachfile" description:"附件"`
|
||||
CityId int64 `json:"cityId" description:"所在城市"`
|
||||
Switch int `json:"switch" description:"显示开关"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" description:"创建者"`
|
||||
UpdatedBy int64 `json:"updatedBy" description:"更新者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
|
||||
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:"更新者"`
|
||||
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
server/internal/model/entity/sys_gen_tree_demo.go
Normal file
27
server/internal/model/entity/sys_gen_tree_demo.go
Normal 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:"删除时间"`
|
||||
}
|
@@ -11,27 +11,27 @@ import (
|
||||
|
||||
// SysLog is the golang structure for table sys_log.
|
||||
type SysLog struct {
|
||||
Id int64 `json:"id" description:"日志ID"`
|
||||
ReqId string `json:"reqId" description:"对外ID"`
|
||||
AppId string `json:"appId" description:"应用ID"`
|
||||
MerchantId uint64 `json:"merchantId" description:"商户ID"`
|
||||
MemberId int64 `json:"memberId" description:"用户ID"`
|
||||
Method string `json:"method" description:"提交类型"`
|
||||
Module string `json:"module" description:"访问模块"`
|
||||
Url string `json:"url" description:"提交url"`
|
||||
GetData *gjson.Json `json:"getData" description:"get数据"`
|
||||
PostData *gjson.Json `json:"postData" description:"post数据"`
|
||||
HeaderData *gjson.Json `json:"headerData" description:"header数据"`
|
||||
Ip string `json:"ip" description:"IP地址"`
|
||||
ProvinceId int64 `json:"provinceId" description:"省编码"`
|
||||
CityId int64 `json:"cityId" description:"市编码"`
|
||||
ErrorCode int `json:"errorCode" description:"报错code"`
|
||||
ErrorMsg string `json:"errorMsg" description:"对外错误提示"`
|
||||
ErrorData *gjson.Json `json:"errorData" description:"报错日志"`
|
||||
UserAgent string `json:"userAgent" description:"UA信息"`
|
||||
TakeUpTime int64 `json:"takeUpTime" description:"请求耗时"`
|
||||
Timestamp int64 `json:"timestamp" description:"响应时间"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -11,15 +11,18 @@ import (
|
||||
|
||||
// SysLoginLog is the golang structure for table sys_login_log.
|
||||
type SysLoginLog struct {
|
||||
Id int64 `json:"id" description:"日志ID"`
|
||||
ReqId string `json:"reqId" description:"请求ID"`
|
||||
MemberId int64 `json:"memberId" description:"用户ID"`
|
||||
Username string `json:"username" description:"用户名"`
|
||||
Response *gjson.Json `json:"response" description:"响应数据"`
|
||||
LoginAt *gtime.Time `json:"loginAt" description:"登录时间"`
|
||||
LoginIp string `json:"loginIp" description:"登录IP"`
|
||||
ErrMsg string `json:"errMsg" description:"错误提示"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -10,16 +10,16 @@ import (
|
||||
|
||||
// SysProvinces is the golang structure for table sys_provinces.
|
||||
type SysProvinces struct {
|
||||
Id int64 `json:"id" description:"省市区ID"`
|
||||
Title string `json:"title" description:"栏目名称"`
|
||||
Pinyin string `json:"pinyin" description:"拼音"`
|
||||
Lng string `json:"lng" description:"经度"`
|
||||
Lat string `json:"lat" description:"纬度"`
|
||||
Pid int64 `json:"pid" description:"父栏目"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -11,21 +11,21 @@ import (
|
||||
|
||||
// SysServeLicense is the golang structure for table sys_serve_license.
|
||||
type SysServeLicense struct {
|
||||
Id int64 `json:"id" description:"许可ID"`
|
||||
Group string `json:"group" description:"分组"`
|
||||
Name string `json:"name" description:"许可名称"`
|
||||
Appid string `json:"appid" description:"应用ID"`
|
||||
SecretKey string `json:"secretKey" description:"应用秘钥"`
|
||||
RemoteAddr string `json:"remoteAddr" description:"最后连接地址"`
|
||||
OnlineLimit int `json:"onlineLimit" description:"在线限制"`
|
||||
LoginTimes int64 `json:"loginTimes" description:"登录次数"`
|
||||
LastLoginAt *gtime.Time `json:"lastLoginAt" description:"最后登录时间"`
|
||||
LastActiveAt *gtime.Time `json:"lastActiveAt" description:"最后心跳"`
|
||||
Routes *gjson.Json `json:"routes" description:"路由表,空使用默认分组路由"`
|
||||
AllowedIps string `json:"allowedIps" description:"IP白名单"`
|
||||
EndAt *gtime.Time `json:"endAt" description:"授权有效期"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -11,14 +11,14 @@ import (
|
||||
|
||||
// SysServeLog is the golang structure for table sys_serve_log.
|
||||
type SysServeLog struct {
|
||||
Id int64 `json:"id" description:"日志ID"`
|
||||
TraceId string `json:"traceId" description:"链路ID"`
|
||||
LevelFormat string `json:"levelFormat" description:"日志级别"`
|
||||
Content string `json:"content" description:"日志内容"`
|
||||
Stack *gjson.Json `json:"stack" description:"打印堆栈"`
|
||||
Line string `json:"line" description:"调用行"`
|
||||
TriggerNs int64 `json:"triggerNs" description:"触发时间(ns)"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
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:"修改时间"`
|
||||
}
|
||||
|
@@ -10,13 +10,13 @@ import (
|
||||
|
||||
// SysSmsLog is the golang structure for table sys_sms_log.
|
||||
type SysSmsLog struct {
|
||||
Id int64 `json:"id" description:"主键"`
|
||||
Event string `json:"event" description:"事件"`
|
||||
Mobile string `json:"mobile" description:"手机号"`
|
||||
Code string `json:"code" description:"验证码或短信内容"`
|
||||
Times int64 `json:"times" description:"验证次数"`
|
||||
Ip string `json:"ip" description:"ip地址"`
|
||||
Status int `json:"status" description:"状态(1未验证,2已验证)"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
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:"更新时间"`
|
||||
}
|
||||
|
@@ -10,13 +10,14 @@ import (
|
||||
|
||||
// TestCategory is the golang structure for table test_category.
|
||||
type TestCategory struct {
|
||||
Id int64 `json:"id" description:"分类ID"`
|
||||
Name string `json:"name" description:"分类名称"`
|
||||
Description string `json:"description" description:"描述"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
|
||||
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:"删除时间"`
|
||||
}
|
||||
|
@@ -20,19 +20,22 @@ type GenCodesColumn struct {
|
||||
Extra string `json:"extra" dc:"额外选项"`
|
||||
// 自定义生成属性
|
||||
// Alias string `json:"alias" dc:"字段别名"`
|
||||
GoName string `json:"goName" dc:"Go属性"`
|
||||
GoType string `json:"goType" dc:"Go类型"`
|
||||
TsName string `json:"tsName" dc:"Ts属性"`
|
||||
TsType string `json:"tsType" dc:"Ts类型"`
|
||||
IsList bool `json:"isList" dc:"列表"`
|
||||
IsExport bool `json:"isExport" dc:"导出"`
|
||||
IsSort bool `json:"isSort" dc:"排序"`
|
||||
IsQuery bool `json:"isQuery" dc:"查询"`
|
||||
QueryWhere string `json:"queryWhere" dc:"查询条件"`
|
||||
IsEdit bool `json:"isEdit" dc:"编辑"`
|
||||
Required bool `json:"required" dc:"必填"`
|
||||
Unique bool `json:"unique" dc:"唯一性"`
|
||||
FormMode string `json:"formMode" dc:"表单组件"`
|
||||
FormRole string `json:"formRole" dc:"表单验证"`
|
||||
DictType int64 `json:"dictType" dc:"字典类型ID"`
|
||||
GoName string `json:"goName" dc:"Go属性"`
|
||||
GoType string `json:"goType" dc:"Go类型"`
|
||||
TsName string `json:"tsName" dc:"Ts属性"`
|
||||
TsType string `json:"tsType" dc:"Ts类型"`
|
||||
IsList bool `json:"isList" dc:"列表"`
|
||||
IsExport bool `json:"isExport" dc:"导出"`
|
||||
IsSort bool `json:"isSort" dc:"排序"`
|
||||
IsQuery bool `json:"isQuery" dc:"查询"`
|
||||
QueryWhere string `json:"queryWhere" dc:"查询条件"`
|
||||
IsEdit bool `json:"isEdit" dc:"编辑"`
|
||||
Required bool `json:"required" dc:"必填"`
|
||||
Unique bool `json:"unique" dc:"唯一性"`
|
||||
FormMode string `json:"formMode" dc:"表单组件"`
|
||||
FormRole string `json:"formRole" dc:"表单验证"`
|
||||
FormGridSpan int `json:"formGridSpan" dc:"栅格占位数量"`
|
||||
DictType int64 `json:"dictType" dc:"字典类型ID"`
|
||||
Align string `json:"align" dc:"排列方式"`
|
||||
Width int64 `json:"width" dc:"列宽"`
|
||||
}
|
||||
|
@@ -12,6 +12,7 @@ import (
|
||||
"hotgo/internal/consts"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/utility/tree"
|
||||
"hotgo/utility/validate"
|
||||
)
|
||||
|
||||
@@ -21,7 +22,7 @@ type DeptMaxSortInp struct {
|
||||
}
|
||||
|
||||
type DeptMaxSortModel struct {
|
||||
Sort int
|
||||
Sort int `json:"sort"`
|
||||
}
|
||||
|
||||
// DeptEditInp 修改/新增部门数据
|
||||
@@ -112,7 +113,8 @@ type DeptTree struct {
|
||||
}
|
||||
|
||||
type DeptListModel struct {
|
||||
List []*DeptTree `json:"list"`
|
||||
List []*entity.AdminDept `json:"list"`
|
||||
Ids []int64 `json:"ids"`
|
||||
}
|
||||
|
||||
// DeptStatusInp 更新部门状态
|
||||
@@ -148,3 +150,26 @@ type DeptOptionInp struct {
|
||||
type DeptOptionModel struct {
|
||||
List []*DeptTree `json:"list"`
|
||||
}
|
||||
|
||||
// DeptTreeOption 关系树选项
|
||||
type DeptTreeOption struct {
|
||||
Id int64 `json:"id" dc:"部门ID"`
|
||||
Pid int64 `json:"pid" dc:"父部门ID"`
|
||||
Name string `json:"name" dc:"部门名称"`
|
||||
Children []tree.Node `json:"children" dc:"子节点"`
|
||||
}
|
||||
|
||||
// ID 获取节点ID
|
||||
func (t *DeptTreeOption) ID() int64 {
|
||||
return t.Id
|
||||
}
|
||||
|
||||
// PID 获取父级节点ID
|
||||
func (t *DeptTreeOption) PID() int64 {
|
||||
return t.Pid
|
||||
}
|
||||
|
||||
// SetChildren 设置子节点数据
|
||||
func (t *DeptTreeOption) SetChildren(children []tree.Node) {
|
||||
t.Children = children
|
||||
}
|
||||
|
@@ -90,6 +90,7 @@ type LoginMemberInfoModel struct {
|
||||
DeptName string `json:"deptName" dc:"所属部门"`
|
||||
RoleName string `json:"roleName" dc:"所属角色"`
|
||||
Permissions []string `json:"permissions" dc:"角色信息"`
|
||||
DeptType string `json:"deptType" dc:"部门类型"`
|
||||
DeptId int64 `json:"-" dc:"部门ID"`
|
||||
RoleId int64 `json:"-" dc:"角色ID"`
|
||||
Username string `json:"username" dc:"用户名"`
|
||||
@@ -115,7 +116,7 @@ type LoginMemberInfoModel struct {
|
||||
type MemberEditInp struct {
|
||||
Id int64 `json:"id" dc:"管理员ID"`
|
||||
RoleId int64 `json:"roleId" v:"required#角色不能为空" dc:"角色ID"`
|
||||
PostIds []int64 `json:"postIds" v:"required#岗位不能为空" dc:"岗位ID"`
|
||||
PostIds []int64 `json:"postIds" dc:"岗位ID"`
|
||||
DeptId int64 `json:"deptId" v:"required#部门不能为空" dc:"部门ID"`
|
||||
Username string `json:"username" v:"required#账号不能为空" dc:"帐号"`
|
||||
PasswordHash string `json:"passwordHash" dc:"密码hash"`
|
||||
@@ -149,7 +150,7 @@ func (in *MemberEditInp) Filter(ctx context.Context) (err error) {
|
||||
if in.Password != "" {
|
||||
if err := g.Validator().
|
||||
Rules("length:6,16").
|
||||
Messages("#新密码不能为空#新密码需在6~16之间").
|
||||
Messages("新密码不能为空#新密码需在6~16之间").
|
||||
Data(in.Password).Run(ctx); err != nil {
|
||||
return err.Current()
|
||||
}
|
||||
|
@@ -28,7 +28,7 @@ func (in *MenuEditInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
if in.Name == "" {
|
||||
err = gerror.New("路由名称不能为空")
|
||||
err = gerror.New("路由别名不能为空")
|
||||
return
|
||||
}
|
||||
return
|
||||
|
@@ -16,8 +16,9 @@ type ReqPageFunc interface {
|
||||
|
||||
// PageReq 分页请求
|
||||
type PageReq struct {
|
||||
Page int `json:"page" example:"10" d:"1" v:"min:1#页码最小值不能低于1" dc:"当前页码"`
|
||||
PerPage int `json:"pageSize" example:"1" d:"10" v:"min:1|max:200#每页数量最小值不能低于1|最大值不能大于200" dc:"每页数量"`
|
||||
Page int `json:"page" example:"10" d:"1" v:"min:1#页码最小值不能低于1" dc:"当前页码"`
|
||||
PerPage int `json:"pageSize" example:"1" d:"10" v:"min:1|max:200#每页数量最小值不能低于1|最大值不能大于200" dc:"每页数量"`
|
||||
Pagination bool `json:"pagination" d:"true" dc:"是否需要进行分页"`
|
||||
}
|
||||
|
||||
// GetPage 获取当前页码
|
||||
|
@@ -3,62 +3,55 @@
|
||||
// @Copyright Copyright (c) 2024 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
// @AutoGenerate Version 2.12.10
|
||||
// @AutoGenerate Version 2.13.1
|
||||
package sysin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"hotgo/internal/consts"
|
||||
"hotgo/internal/library/hgorm/hook"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/utility/validate"
|
||||
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// CurdDemoUpdateFields 修改生成演示字段过滤
|
||||
// CurdDemoUpdateFields 修改CURD列表字段过滤
|
||||
type CurdDemoUpdateFields struct {
|
||||
CategoryId int64 `json:"categoryId" dc:"分类ID"`
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Content string `json:"content" dc:"内容"`
|
||||
Image string `json:"image" dc:"单图"`
|
||||
Attachfile string `json:"attachfile" dc:"附件"`
|
||||
CityId int64 `json:"cityId" dc:"所在城市"`
|
||||
Switch int `json:"switch" dc:"显示开关"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Switch int `json:"switch" dc:"显示开关"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
}
|
||||
|
||||
// CurdDemoInsertFields 新增生成演示字段过滤
|
||||
// CurdDemoInsertFields 新增CURD列表字段过滤
|
||||
type CurdDemoInsertFields struct {
|
||||
CategoryId int64 `json:"categoryId" dc:"分类ID"`
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Content string `json:"content" dc:"内容"`
|
||||
Image string `json:"image" dc:"单图"`
|
||||
Attachfile string `json:"attachfile" dc:"附件"`
|
||||
CityId int64 `json:"cityId" dc:"所在城市"`
|
||||
Switch int `json:"switch" dc:"显示开关"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Switch int `json:"switch" dc:"显示开关"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
}
|
||||
|
||||
// CurdDemoEditInp 修改/新增生成演示
|
||||
// CurdDemoEditInp 修改/新增CURD列表
|
||||
type CurdDemoEditInp struct {
|
||||
entity.SysGenCurdDemo
|
||||
}
|
||||
|
||||
func (in *CurdDemoEditInp) Filter(ctx context.Context) (err error) {
|
||||
// 验证分类ID
|
||||
if err := g.Validator().Rules("required").Data(in.CategoryId).Messages("分类ID不能为空").Run(ctx); err != nil {
|
||||
return err.Current()
|
||||
}
|
||||
|
||||
// 验证标题
|
||||
if err := g.Validator().Rules("required").Data(in.Title).Messages("标题不能为空").Run(ctx); err != nil {
|
||||
return err.Current()
|
||||
@@ -79,12 +72,17 @@ func (in *CurdDemoEditInp) Filter(ctx context.Context) (err error) {
|
||||
return err.Current()
|
||||
}
|
||||
|
||||
// 验证测试分类
|
||||
if err := g.Validator().Rules("required").Data(in.CategoryId).Messages("测试分类不能为空").Run(ctx); err != nil {
|
||||
return err.Current()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
type CurdDemoEditModel struct{}
|
||||
|
||||
// CurdDemoDeleteInp 删除生成演示
|
||||
// CurdDemoDeleteInp 删除CURD列表
|
||||
type CurdDemoDeleteInp struct {
|
||||
Id interface{} `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
@@ -95,7 +93,7 @@ func (in *CurdDemoDeleteInp) Filter(ctx context.Context) (err error) {
|
||||
|
||||
type CurdDemoDeleteModel struct{}
|
||||
|
||||
// CurdDemoViewInp 获取指定生成演示信息
|
||||
// CurdDemoViewInp 获取指定CURD列表信息
|
||||
type CurdDemoViewInp struct {
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
@@ -106,15 +104,21 @@ func (in *CurdDemoViewInp) Filter(ctx context.Context) (err error) {
|
||||
|
||||
type CurdDemoViewModel struct {
|
||||
entity.SysGenCurdDemo
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
|
||||
UpdatedBySumma *hook.MemberSumma `json:"updatedBySumma" dc:"更新者摘要信息"`
|
||||
}
|
||||
|
||||
// CurdDemoListInp 获取生成演示列表
|
||||
// CurdDemoListInp 获取CURD列表列表
|
||||
type CurdDemoListInp struct {
|
||||
form.PageReq
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy string `json:"createdBy" dc:"创建者"`
|
||||
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
TestCategoryName string `json:"testCategoryName" dc:"分类名称"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
TestCategoryName string `json:"testCategoryName" dc:"关联分类"`
|
||||
}
|
||||
|
||||
func (in *CurdDemoListInp) Filter(ctx context.Context) (err error) {
|
||||
@@ -122,43 +126,43 @@ func (in *CurdDemoListInp) Filter(ctx context.Context) (err error) {
|
||||
}
|
||||
|
||||
type CurdDemoListModel struct {
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
CategoryId int64 `json:"categoryId" dc:"分类ID"`
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Image string `json:"image" dc:"单图"`
|
||||
Attachfile string `json:"attachfile" dc:"附件"`
|
||||
CityId int64 `json:"cityId" dc:"所在城市"`
|
||||
Switch int `json:"switch" dc:"显示开关"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"修改时间"`
|
||||
TestCategoryName string `json:"testCategoryName" dc:"分类名称"`
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Image string `json:"image" dc:"单图"`
|
||||
Attachfile string `json:"attachfile" dc:"附件"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Switch int `json:"switch" dc:"显示开关"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
||||
UpdatedBySumma *hook.MemberSumma `json:"updatedBySumma" dc:"更新者摘要信息"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"修改时间"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
TestCategoryName string `json:"testCategoryName" dc:"关联分类"`
|
||||
}
|
||||
|
||||
// CurdDemoExportModel 导出生成演示
|
||||
// CurdDemoExportModel 导出CURD列表
|
||||
type CurdDemoExportModel struct {
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
CategoryId int64 `json:"categoryId" dc:"分类ID"`
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Image string `json:"image" dc:"单图"`
|
||||
Attachfile string `json:"attachfile" dc:"附件"`
|
||||
CityId int64 `json:"cityId" dc:"所在城市"`
|
||||
Switch int `json:"switch" dc:"显示开关"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Switch int `json:"switch" dc:"显示开关"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"修改时间"`
|
||||
TestCategoryName string `json:"testCategoryName" dc:"分类名称"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
TestCategoryName string `json:"testCategoryName" dc:"关联分类"`
|
||||
}
|
||||
|
||||
// CurdDemoMaxSortInp 获取生成演示最大排序
|
||||
// CurdDemoMaxSortInp 获取CURD列表最大排序
|
||||
type CurdDemoMaxSortInp struct{}
|
||||
|
||||
func (in *CurdDemoMaxSortInp) Filter(ctx context.Context) (err error) {
|
||||
@@ -169,33 +173,7 @@ type CurdDemoMaxSortModel struct {
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
}
|
||||
|
||||
// CurdDemoStatusInp 更新生成演示状态
|
||||
type CurdDemoStatusInp struct {
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
}
|
||||
|
||||
func (in *CurdDemoStatusInp) Filter(ctx context.Context) (err error) {
|
||||
if in.Id <= 0 {
|
||||
err = gerror.New("ID不能为空")
|
||||
return
|
||||
}
|
||||
|
||||
if in.Status <= 0 {
|
||||
err = gerror.New("状态不能为空")
|
||||
return
|
||||
}
|
||||
|
||||
if !validate.InSlice(consts.StatusSlice, in.Status) {
|
||||
err = gerror.New("状态不正确")
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type CurdDemoStatusModel struct{}
|
||||
|
||||
// CurdDemoSwitchInp 更新生成演示开关状态
|
||||
// CurdDemoSwitchInp 更新CURD列表开关状态
|
||||
type CurdDemoSwitchInp struct {
|
||||
form.SwitchReq
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
|
@@ -71,11 +71,11 @@ type DictDataDeleteModel struct{}
|
||||
// DictDataListInp 获取列表
|
||||
type DictDataListInp struct {
|
||||
form.PageReq
|
||||
|
||||
form.StatusReq
|
||||
TypeID int64 `json:"typeId" v:"required#字典类型ID不能为空" dc:"字典类型ID"`
|
||||
Type string `json:"type"`
|
||||
Label string `json:"label"`
|
||||
Type string `json:"type" dc:"字典类型"`
|
||||
Label string `json:"label" dc:"字典标签"`
|
||||
Value string `json:"value" dc:"字典键值"`
|
||||
}
|
||||
|
||||
type DictDataListModel struct {
|
||||
|
@@ -85,11 +85,13 @@ type GenCodesSelectsModel struct {
|
||||
LinkMode form.Selects `json:"linkMode" dc:"关联表方式"`
|
||||
BuildMeth form.Selects `json:"buildMeth" dc:"生成方式"`
|
||||
// 字段表格选项
|
||||
FormMode form.Selects `json:"formMode" dc:"表单组件"`
|
||||
FormRole form.Selects `json:"formRole" dc:"表单验证"`
|
||||
DictMode []*DictTypeTree `json:"dictMode" dc:"字典类型"`
|
||||
WhereMode form.Selects `json:"whereMode" dc:"查询条件"`
|
||||
Addons form.Selects `json:"addons" dc:"插件选项"`
|
||||
FormMode form.Selects `json:"formMode" dc:"表单组件"`
|
||||
FormRole form.Selects `json:"formRole" dc:"表单验证"`
|
||||
DictMode []*DictTypeTree `json:"dictMode" dc:"字典类型"`
|
||||
WhereMode form.Selects `json:"whereMode" dc:"查询条件"`
|
||||
Addons form.Selects `json:"addons" dc:"插件选项"`
|
||||
TableAlign form.Selects `json:"tableAlign" dc:"表格排列方式"`
|
||||
TreeStyleType []*model.Option `json:"treeStyleType" dc:"树表样式选项"`
|
||||
}
|
||||
|
||||
type GenTypeSelects []*GenTypeSelect
|
||||
@@ -229,6 +231,5 @@ func genFilter(ctx context.Context, in entity.SysGenCodes) (err error) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ package sysin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/adminin"
|
||||
@@ -34,29 +36,16 @@ type LoginLogListInp struct {
|
||||
form.PageReq
|
||||
Username string `json:"username" dc:"用户名"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
LoginAt []*gtime.Time `json:"loginAt" dc:"登录时间"`
|
||||
SysLogIp string `json:"sysLogIp" dc:"IP地址"`
|
||||
LoginAt []*gtime.Time `json:"loginAt" dc:"登录时间"`
|
||||
LoginIp string `json:"loginIp" dc:"登录IP"`
|
||||
}
|
||||
|
||||
type LoginLogListModel struct {
|
||||
Id int64 `json:"id" dc:"日志ID"`
|
||||
ReqId string `json:"reqId" dc:"请求ID"`
|
||||
MemberId int64 `json:"memberId" dc:"用户ID"`
|
||||
Username string `json:"username" dc:"用户名"`
|
||||
LoginAt *gtime.Time `json:"loginAt" dc:"登录时间"`
|
||||
ErrMsg string `json:"errMsg" dc:"错误提示"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"修改时间"`
|
||||
SysLogId int64 `json:"sysLogId" dc:"日志ID"`
|
||||
SysLogIp string `json:"sysLogIp" dc:"IP地址"`
|
||||
SysLogProvinceId int64 `json:"sysLogProvinceId" dc:"省编码"`
|
||||
SysLogCityId int64 `json:"sysLogCityId" dc:"市编码"`
|
||||
SysLogErrorCode int `json:"sysLogErrorCode" dc:"报错code"`
|
||||
SysLogUserAgent string `json:"sysLogUserAgent" dc:"UA信息"`
|
||||
CityLabel string `json:"cityLabel" dc:"城市标签"`
|
||||
Os string `json:"os" dc:"系统信息"`
|
||||
Browser string `json:"browser" dc:"浏览器信息"`
|
||||
entity.SysLoginLog
|
||||
Os string `json:"os"`
|
||||
Browser string `json:"browser"`
|
||||
CityLabel string `json:"cityLabel"`
|
||||
SysLogId gdb.Value `json:"sysLogId"`
|
||||
}
|
||||
|
||||
func (in *LoginLogListInp) Filter(ctx context.Context) (err error) {
|
||||
@@ -65,20 +54,22 @@ func (in *LoginLogListInp) Filter(ctx context.Context) (err error) {
|
||||
|
||||
// LoginLogExportModel 导出登录日志
|
||||
type LoginLogExportModel struct {
|
||||
Id int64 `json:"id" dc:"日志ID"`
|
||||
ReqId string `json:"reqId" dc:"请求ID"`
|
||||
MemberId int64 `json:"memberId" dc:"用户ID"`
|
||||
Username string `json:"username" dc:"用户名"`
|
||||
LoginAt int64 `json:"loginAt" dc:"登录时间"`
|
||||
ErrMsg string `json:"errMsg" dc:"错误提示"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"修改时间"`
|
||||
SysLogIp string `json:"sysLogIp" dc:"IP地址"`
|
||||
SysLogProvinceId int64 `json:"sysLogProvinceId" dc:"省编码"`
|
||||
SysLogCityId int64 `json:"sysLogCityId" dc:"市编码"`
|
||||
SysLogErrorCode int `json:"sysLogErrorCode" dc:"报错code"`
|
||||
SysLogUserAgent string `json:"sysLogUserAgent" dc:"UA信息"`
|
||||
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:"修改时间"`
|
||||
Os string `json:"os"`
|
||||
Browser string `json:"browser"`
|
||||
}
|
||||
|
||||
// LoginLogPushInp 解推送登录日志
|
||||
|
141
server/internal/model/input/sysin/normal_tree_demo.go
Normal file
141
server/internal/model/input/sysin/normal_tree_demo.go
Normal file
@@ -0,0 +1,141 @@
|
||||
// Package sysin
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2024 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
// @AutoGenerate Version 2.13.1
|
||||
package sysin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"hotgo/internal/library/hgorm/hook"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/utility/tree"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// NormalTreeDemoUpdateFields 修改普通树表字段过滤
|
||||
type NormalTreeDemoUpdateFields struct {
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
||||
}
|
||||
|
||||
// NormalTreeDemoInsertFields 新增普通树表字段过滤
|
||||
type NormalTreeDemoInsertFields struct {
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
||||
}
|
||||
|
||||
// NormalTreeDemoEditInp 修改/新增普通树表
|
||||
type NormalTreeDemoEditInp struct {
|
||||
entity.SysGenTreeDemo
|
||||
}
|
||||
|
||||
func (in *NormalTreeDemoEditInp) Filter(ctx context.Context) (err error) {
|
||||
// 验证标题
|
||||
if err := g.Validator().Rules("required").Data(in.Title).Messages("标题不能为空").Run(ctx); err != nil {
|
||||
return err.Current()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
type NormalTreeDemoEditModel struct{}
|
||||
|
||||
// NormalTreeDemoDeleteInp 删除普通树表
|
||||
type NormalTreeDemoDeleteInp struct {
|
||||
Id interface{} `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
|
||||
func (in *NormalTreeDemoDeleteInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type NormalTreeDemoDeleteModel struct{}
|
||||
|
||||
// NormalTreeDemoViewInp 获取指定普通树表信息
|
||||
type NormalTreeDemoViewInp struct {
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
|
||||
func (in *NormalTreeDemoViewInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type NormalTreeDemoViewModel struct {
|
||||
entity.SysGenTreeDemo
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
|
||||
}
|
||||
|
||||
// NormalTreeDemoListInp 获取普通树表列表
|
||||
type NormalTreeDemoListInp struct {
|
||||
form.PageReq
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
func (in *NormalTreeDemoListInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type NormalTreeDemoListModel struct {
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
// NormalTreeDemoMaxSortInp 获取普通树表最大排序
|
||||
type NormalTreeDemoMaxSortInp struct{}
|
||||
|
||||
func (in *NormalTreeDemoMaxSortInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type NormalTreeDemoMaxSortModel struct {
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
}
|
||||
|
||||
// NormalTreeDemoTreeOption 关系树选项
|
||||
type NormalTreeDemoTreeOption struct {
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
Children []tree.Node `json:"children" dc:"子节点"`
|
||||
}
|
||||
|
||||
// ID 获取节点ID
|
||||
func (t *NormalTreeDemoTreeOption) ID() int64 {
|
||||
return t.Id
|
||||
}
|
||||
|
||||
// PID 获取父级节点ID
|
||||
func (t *NormalTreeDemoTreeOption) PID() int64 {
|
||||
return t.Pid
|
||||
}
|
||||
|
||||
// SetChildren 设置子节点数据
|
||||
func (t *NormalTreeDemoTreeOption) SetChildren(children []tree.Node) {
|
||||
t.Children = children
|
||||
}
|
140
server/internal/model/input/sysin/option_tree_demo.go
Normal file
140
server/internal/model/input/sysin/option_tree_demo.go
Normal file
@@ -0,0 +1,140 @@
|
||||
// Package sysin
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2024 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
// @AutoGenerate Version 2.13.1
|
||||
package sysin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"hotgo/internal/library/hgorm/hook"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/utility/tree"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// OptionTreeDemoUpdateFields 修改选项树表字段过滤
|
||||
type OptionTreeDemoUpdateFields struct {
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
|
||||
}
|
||||
|
||||
// OptionTreeDemoInsertFields 新增选项树表字段过滤
|
||||
type OptionTreeDemoInsertFields struct {
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
||||
}
|
||||
|
||||
// OptionTreeDemoEditInp 修改/新增选项树表
|
||||
type OptionTreeDemoEditInp struct {
|
||||
entity.SysGenTreeDemo
|
||||
}
|
||||
|
||||
func (in *OptionTreeDemoEditInp) Filter(ctx context.Context) (err error) {
|
||||
// 验证标题
|
||||
if err := g.Validator().Rules("required").Data(in.Title).Messages("标题不能为空").Run(ctx); err != nil {
|
||||
return err.Current()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
type OptionTreeDemoEditModel struct{}
|
||||
|
||||
// OptionTreeDemoDeleteInp 删除选项树表
|
||||
type OptionTreeDemoDeleteInp struct {
|
||||
Id interface{} `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
|
||||
func (in *OptionTreeDemoDeleteInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type OptionTreeDemoDeleteModel struct{}
|
||||
|
||||
// OptionTreeDemoViewInp 获取指定选项树表信息
|
||||
type OptionTreeDemoViewInp struct {
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
|
||||
func (in *OptionTreeDemoViewInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type OptionTreeDemoViewModel struct {
|
||||
entity.SysGenTreeDemo
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
|
||||
}
|
||||
|
||||
// OptionTreeDemoListInp 获取选项树表列表
|
||||
type OptionTreeDemoListInp struct {
|
||||
form.PageReq
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
func (in *OptionTreeDemoListInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type OptionTreeDemoListModel struct {
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
CategoryId int64 `json:"categoryId" dc:"测试分类"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者"`
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
// OptionTreeDemoMaxSortInp 获取选项树表最大排序
|
||||
type OptionTreeDemoMaxSortInp struct{}
|
||||
|
||||
func (in *OptionTreeDemoMaxSortInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type OptionTreeDemoMaxSortModel struct {
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
}
|
||||
|
||||
// OptionTreeDemoTreeOption 关系树选项
|
||||
type OptionTreeDemoTreeOption struct {
|
||||
Title string `json:"title" dc:"标题"`
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
Pid int64 `json:"pid" dc:"上级"`
|
||||
Children []tree.Node `json:"children" dc:"子节点"`
|
||||
}
|
||||
|
||||
// ID 获取节点ID
|
||||
func (t *OptionTreeDemoTreeOption) ID() int64 {
|
||||
return t.Id
|
||||
}
|
||||
|
||||
// PID 获取父级节点ID
|
||||
func (t *OptionTreeDemoTreeOption) PID() int64 {
|
||||
return t.Pid
|
||||
}
|
||||
|
||||
// SetChildren 设置子节点数据
|
||||
func (t *OptionTreeDemoTreeOption) SetChildren(children []tree.Node) {
|
||||
t.Children = children
|
||||
}
|
143
server/internal/model/input/sysin/test_category.go
Normal file
143
server/internal/model/input/sysin/test_category.go
Normal file
@@ -0,0 +1,143 @@
|
||||
// Package sysin
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2024 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
// @AutoGenerate Version 2.13.1
|
||||
package sysin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"hotgo/internal/consts"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/utility/validate"
|
||||
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// TestCategoryUpdateFields 修改测试分类字段过滤
|
||||
type TestCategoryUpdateFields struct {
|
||||
Name string `json:"name" dc:"分类名称"`
|
||||
ShortName string `json:"shortName" dc:"简称"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
Remark string `json:"remark" dc:"备注"`
|
||||
}
|
||||
|
||||
// TestCategoryInsertFields 新增测试分类字段过滤
|
||||
type TestCategoryInsertFields struct {
|
||||
Name string `json:"name" dc:"分类名称"`
|
||||
ShortName string `json:"shortName" dc:"简称"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
Remark string `json:"remark" dc:"备注"`
|
||||
}
|
||||
|
||||
// TestCategoryEditInp 修改/新增测试分类
|
||||
type TestCategoryEditInp struct {
|
||||
entity.TestCategory
|
||||
}
|
||||
|
||||
func (in *TestCategoryEditInp) Filter(ctx context.Context) (err error) {
|
||||
// 验证分类名称
|
||||
if err := g.Validator().Rules("required").Data(in.Name).Messages("分类名称不能为空").Run(ctx); err != nil {
|
||||
return err.Current()
|
||||
}
|
||||
|
||||
// 验证排序
|
||||
if err := g.Validator().Rules("required").Data(in.Sort).Messages("排序不能为空").Run(ctx); err != nil {
|
||||
return err.Current()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
type TestCategoryEditModel struct{}
|
||||
|
||||
// TestCategoryDeleteInp 删除测试分类
|
||||
type TestCategoryDeleteInp struct {
|
||||
Id interface{} `json:"id" v:"required#分类ID不能为空" dc:"分类ID"`
|
||||
}
|
||||
|
||||
func (in *TestCategoryDeleteInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type TestCategoryDeleteModel struct{}
|
||||
|
||||
// TestCategoryViewInp 获取指定测试分类信息
|
||||
type TestCategoryViewInp struct {
|
||||
Id int64 `json:"id" v:"required#分类ID不能为空" dc:"分类ID"`
|
||||
}
|
||||
|
||||
func (in *TestCategoryViewInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type TestCategoryViewModel struct {
|
||||
entity.TestCategory
|
||||
}
|
||||
|
||||
// TestCategoryListInp 获取测试分类列表
|
||||
type TestCategoryListInp struct {
|
||||
form.PageReq
|
||||
Id int64 `json:"id" dc:"分类ID"`
|
||||
Name string `json:"name" dc:"分类名称"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
func (in *TestCategoryListInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type TestCategoryListModel struct {
|
||||
Id int64 `json:"id" dc:"分类ID"`
|
||||
Name string `json:"name" dc:"分类名称"`
|
||||
ShortName string `json:"shortName" dc:"简称"`
|
||||
Description string `json:"description" dc:"描述"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
// TestCategoryMaxSortInp 获取测试分类最大排序
|
||||
type TestCategoryMaxSortInp struct{}
|
||||
|
||||
func (in *TestCategoryMaxSortInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type TestCategoryMaxSortModel struct {
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
}
|
||||
|
||||
// TestCategoryStatusInp 更新测试分类状态
|
||||
type TestCategoryStatusInp struct {
|
||||
Id int64 `json:"id" v:"required#分类ID不能为空" dc:"分类ID"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
}
|
||||
|
||||
func (in *TestCategoryStatusInp) Filter(ctx context.Context) (err error) {
|
||||
if in.Id <= 0 {
|
||||
err = gerror.New("分类ID不能为空")
|
||||
return
|
||||
}
|
||||
|
||||
if in.Status <= 0 {
|
||||
err = gerror.New("状态不能为空")
|
||||
return
|
||||
}
|
||||
|
||||
if !validate.InSlice(consts.StatusSlice, in.Status) {
|
||||
err = gerror.New("状态不正确")
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type TestCategoryStatusModel struct{}
|
Reference in New Issue
Block a user