mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-13 20:53:49 +08:00
发布代码生成、更新20+表单组件,优化数据字典,gf版本更新到2.3.1
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
// AdminDept is the golang structure of table hg_admin_dept for DAO operations like Where/Data.
|
||||
type AdminDept struct {
|
||||
g.Meta `orm:"table:hg_admin_dept, do:true"`
|
||||
Id interface{} // 部门id
|
||||
Pid interface{} // 父部门id
|
||||
Id interface{} // 部门ID
|
||||
Pid interface{} // 父部门ID
|
||||
Name interface{} // 部门名称
|
||||
Code interface{} // 部门编码
|
||||
Type interface{} // 部门类型
|
||||
|
||||
@@ -12,31 +12,31 @@ import (
|
||||
// AdminMember is the golang structure of table hg_admin_member for DAO operations like Where/Data.
|
||||
type AdminMember struct {
|
||||
g.Meta `orm:"table:hg_admin_member, do:true"`
|
||||
Id interface{} //
|
||||
Id interface{} // 管理员ID
|
||||
DeptId interface{} // 部门ID
|
||||
RoleId interface{} // 角色ID
|
||||
RealName interface{} // 真实姓名
|
||||
Username interface{} // 帐号
|
||||
PasswordHash interface{} // 密码
|
||||
Salt interface{} // 密码盐
|
||||
AuthKey interface{} // 授权令牌
|
||||
PasswordResetToken interface{} // 密码重置令牌
|
||||
Type interface{} // 1:普通管理员;10超级管理员
|
||||
Realname interface{} // 真实姓名
|
||||
Avatar interface{} // 头像
|
||||
Sex interface{} // 性别[1:男;2:女;3:未知]
|
||||
Sex interface{} // 性别
|
||||
Qq interface{} // qq
|
||||
Email interface{} // 邮箱
|
||||
Birthday *gtime.Time // 生日
|
||||
ProvinceId interface{} // 省
|
||||
CityId interface{} // 城市
|
||||
AreaId interface{} // 地区
|
||||
Address interface{} // 默认地址
|
||||
Mobile interface{} // 手机号码
|
||||
HomePhone interface{} // 家庭号码
|
||||
DingtalkRobotToken interface{} // 钉钉机器人token
|
||||
Birthday *gtime.Time // 生日
|
||||
ProvinceId interface{} // 省编码
|
||||
CityId interface{} // 城市编码
|
||||
CountyId interface{} // 区域编码
|
||||
Address interface{} // 联系地址
|
||||
VisitCount interface{} // 访问次数
|
||||
LastTime interface{} // 最后一次登录时间
|
||||
LastIp interface{} // 最后一次登录ip
|
||||
Role interface{} // 权限
|
||||
Pid interface{} // 上级管理员ID
|
||||
Level interface{} // 关系树等级
|
||||
Tree interface{} // 关系树
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
|
||||
@@ -11,6 +11,6 @@ import (
|
||||
// AdminMemberPost is the golang structure of table hg_admin_member_post for DAO operations like Where/Data.
|
||||
type AdminMemberPost struct {
|
||||
g.Meta `orm:"table:hg_admin_member_post, do:true"`
|
||||
MemberId interface{} // 用户ID
|
||||
MemberId interface{} // 管理员ID
|
||||
PostId interface{} // 岗位ID
|
||||
}
|
||||
|
||||
@@ -11,6 +11,6 @@ import (
|
||||
// AdminMemberRole is the golang structure of table hg_admin_member_role for DAO operations like Where/Data.
|
||||
type AdminMemberRole struct {
|
||||
g.Meta `orm:"table:hg_admin_member_role, do:true"`
|
||||
MemberId interface{} // 用户ID
|
||||
MemberId interface{} // 管理员ID
|
||||
RoleId interface{} // 角色ID
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ type AdminMenu struct {
|
||||
KeepAlive interface{} // 缓存该路由
|
||||
Hidden interface{} // 是否隐藏
|
||||
Affix interface{} // 是否固定
|
||||
Level interface{} // 级别
|
||||
Tree interface{} // 树
|
||||
Level interface{} // 关系树等级
|
||||
Tree interface{} // 关系树
|
||||
Sort interface{} // 排序
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 菜单状态
|
||||
|
||||
@@ -14,7 +14,7 @@ type AdminNotice struct {
|
||||
g.Meta `orm:"table:hg_admin_notice, do:true"`
|
||||
Id interface{} // 公告ID
|
||||
Title interface{} // 公告标题
|
||||
Type interface{} // 公告类型(1通知 2公告)
|
||||
Type interface{} // 公告类型
|
||||
Content interface{} // 公告内容
|
||||
Receiver interface{} // 接收者
|
||||
Reader interface{} // 已读人
|
||||
|
||||
@@ -5,22 +5,25 @@
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// AdminRole is the golang structure of table hg_admin_role for DAO operations like Where/Data.
|
||||
type AdminRole struct {
|
||||
g.Meta `orm:"table:hg_admin_role, do:true"`
|
||||
Id interface{} // 角色ID
|
||||
Name interface{} // 角色名称
|
||||
Key interface{} // 角色权限字符串
|
||||
DataScope interface{} // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)
|
||||
MenuCheckStrictly interface{} // 菜单树选择项是否关联显示
|
||||
DeptCheckStrictly interface{} // 部门树选择项是否关联显示
|
||||
Remark interface{} // 备注
|
||||
Sort interface{} // 排序
|
||||
Status interface{} // 角色状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
g.Meta `orm:"table:hg_admin_role, do:true"`
|
||||
Id interface{} // 角色ID
|
||||
Name interface{} // 角色名称
|
||||
Key interface{} // 角色权限字符串
|
||||
DataScope interface{} // 数据范围
|
||||
CustomDept *gjson.Json // 自定义部门权限
|
||||
Pid interface{} // 上级角色ID
|
||||
Level interface{} // 关系树等级
|
||||
Tree interface{} // 关系树
|
||||
Remark interface{} // 备注
|
||||
Sort interface{} // 排序
|
||||
Status interface{} // 角色状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
}
|
||||
|
||||
@@ -12,18 +12,18 @@ import (
|
||||
// SysAttachment is the golang structure of table hg_sys_attachment for DAO operations like Where/Data.
|
||||
type SysAttachment struct {
|
||||
g.Meta `orm:"table:hg_sys_attachment, do:true"`
|
||||
Id interface{} //
|
||||
Id interface{} // 文件ID
|
||||
AppId interface{} // 应用ID
|
||||
MemberId interface{} // 用户
|
||||
CateId interface{} // 分类
|
||||
Drive interface{} // 驱动
|
||||
MemberId interface{} // 管理员ID
|
||||
CateId interface{} // 上传分类
|
||||
Drive interface{} // 上传驱动
|
||||
Name interface{} // 文件原始名
|
||||
Kind interface{} // 上传类型
|
||||
MetaType interface{} // 类别
|
||||
MetaType interface{} // 文件类型
|
||||
NaiveType interface{} // NaiveUI类型
|
||||
Path interface{} // 本地路径
|
||||
FileUrl interface{} // url
|
||||
Size interface{} // 长度
|
||||
Size interface{} // 文件大小
|
||||
Ext interface{} // 扩展名
|
||||
Md5 interface{} // md5校验码
|
||||
Status interface{} // 状态
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
// SysBlacklist is the golang structure of table hg_sys_blacklist for DAO operations like Where/Data.
|
||||
type SysBlacklist struct {
|
||||
g.Meta `orm:"table:hg_sys_blacklist, do:true"`
|
||||
Id interface{} // 主键
|
||||
Ip interface{} // ip地址
|
||||
Id interface{} // 黑名单ID
|
||||
Ip interface{} // IP地址
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
|
||||
@@ -13,15 +13,15 @@ import (
|
||||
type SysConfig struct {
|
||||
g.Meta `orm:"table:hg_sys_config, do:true"`
|
||||
Id interface{} // 配置ID
|
||||
Group interface{} // 分组
|
||||
Group interface{} // 配置分组
|
||||
Name interface{} // 参数名称
|
||||
Type interface{} // 类型:string,text,int,bool,array,datetime,date,file
|
||||
Type interface{} // 键值类型:string,int,uint,bool,datetime,date
|
||||
Key interface{} // 参数键名
|
||||
Value interface{} // 参数键值
|
||||
DefaultValue interface{} // 默认值
|
||||
Sort interface{} // 排序
|
||||
Tip interface{} // 变量描述
|
||||
IsDefault interface{} // 是否默认
|
||||
IsDefault interface{} // 是否为系统默认
|
||||
Status interface{} // 状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
// SysCron is the golang structure of table hg_sys_cron for DAO operations like Where/Data.
|
||||
type SysCron struct {
|
||||
g.Meta `orm:"table:hg_sys_cron, do:true"`
|
||||
Id interface{} // 主键
|
||||
Id interface{} // 任务ID
|
||||
GroupId interface{} // 分组ID
|
||||
Name interface{} // 任务名称
|
||||
Params interface{} // 函数参数
|
||||
@@ -21,7 +21,7 @@ type SysCron struct {
|
||||
Count interface{} // 执行次数
|
||||
Sort interface{} // 排序
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
Status interface{} // 任务状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
}
|
||||
|
||||
@@ -12,13 +12,13 @@ import (
|
||||
// SysCronGroup is the golang structure of table hg_sys_cron_group for DAO operations like Where/Data.
|
||||
type SysCronGroup struct {
|
||||
g.Meta `orm:"table:hg_sys_cron_group, do:true"`
|
||||
Id interface{} // 主键
|
||||
Pid interface{} // 父类ID
|
||||
Id interface{} // 任务分组ID
|
||||
Pid interface{} // 父类任务分组ID
|
||||
Name interface{} // 分组名称
|
||||
IsDefault interface{} // 是否默认
|
||||
Sort interface{} // 排序
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
Status interface{} // 分组状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
}
|
||||
|
||||
@@ -12,12 +12,13 @@ import (
|
||||
// SysDictData is the golang structure of table hg_sys_dict_data for DAO operations like Where/Data.
|
||||
type SysDictData struct {
|
||||
g.Meta `orm:"table:hg_sys_dict_data, do:true"`
|
||||
Id interface{} // 字典编码
|
||||
Id interface{} // 字典数据ID
|
||||
Label interface{} // 字典标签
|
||||
Value interface{} // 字典键值
|
||||
ValueType interface{} // 键值数据类型:string,int,uint,bool,datetime,date
|
||||
Type interface{} // 字典类型
|
||||
ListClass interface{} // 表格回显样式
|
||||
IsDefault interface{} // 是否默认
|
||||
IsDefault interface{} // 是否为系统默认
|
||||
Sort interface{} // 字典排序
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
|
||||
@@ -12,13 +12,13 @@ import (
|
||||
// SysDictType is the golang structure of table hg_sys_dict_type for DAO operations like Where/Data.
|
||||
type SysDictType struct {
|
||||
g.Meta `orm:"table:hg_sys_dict_type, do:true"`
|
||||
Id interface{} // 字典主键
|
||||
Pid interface{} // 父类ID
|
||||
Name interface{} // 字典名称
|
||||
Id interface{} // 字典类型ID
|
||||
Pid interface{} // 父类字典类型ID
|
||||
Name interface{} // 字典类型名称
|
||||
Type interface{} // 字典类型
|
||||
Sort interface{} // 排序
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
Status interface{} // 字典类型状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
}
|
||||
|
||||
28
server/internal/model/do/sys_gen_codes.go
Normal file
28
server/internal/model/do/sys_gen_codes.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysGenCodes is the golang structure of table hg_sys_gen_codes for DAO operations like Where/Data.
|
||||
type SysGenCodes struct {
|
||||
g.Meta `orm:"table:hg_sys_gen_codes, do:true"`
|
||||
Id interface{} // 生成ID
|
||||
GenType interface{} // 生成类型
|
||||
VarName interface{} // 实体命名
|
||||
Options *gjson.Json // 配置选项
|
||||
DbName interface{} // 数据库名称
|
||||
TableName interface{} // 主表名称
|
||||
TableComment interface{} // 主表注释
|
||||
DaoName interface{} // 主表dao模型
|
||||
MasterColumns *gjson.Json // 主表字段
|
||||
Status interface{} // 生成状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
}
|
||||
30
server/internal/model/do/sys_gen_curd_demo.go
Normal file
30
server/internal/model/do/sys_gen_curd_demo.go
Normal file
@@ -0,0 +1,30 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysGenCurdDemo is the golang structure of table hg_sys_gen_curd_demo for DAO operations like Where/Data.
|
||||
type SysGenCurdDemo struct {
|
||||
g.Meta `orm:"table:hg_sys_gen_curd_demo, do:true"`
|
||||
Id interface{} // ID
|
||||
CategoryId interface{} // 分类ID
|
||||
Title interface{} // 标题
|
||||
Description interface{} // 描述
|
||||
Content interface{} // 内容
|
||||
Image interface{} // 单图
|
||||
Attachfile interface{} // 附件
|
||||
Switch interface{} // 显示开关
|
||||
Sort interface{} // 排序
|
||||
Status interface{} // 状态
|
||||
CreatedBy interface{} // 创建者
|
||||
UpdatedBy interface{} // 更新者
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 修改时间
|
||||
DeletedAt *gtime.Time // 删除时间
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
@@ -12,23 +13,23 @@ import (
|
||||
// SysLog is the golang structure of table hg_sys_log for DAO operations like Where/Data.
|
||||
type SysLog struct {
|
||||
g.Meta `orm:"table:hg_sys_log, do:true"`
|
||||
Id interface{} //
|
||||
AppId interface{} // 应用id
|
||||
MerchantId interface{} // 商户id
|
||||
MemberId interface{} // 用户id
|
||||
Id interface{} // 日志ID
|
||||
AppId interface{} // 应用ID
|
||||
MerchantId interface{} // 商户ID
|
||||
MemberId interface{} // 用户ID
|
||||
Method interface{} // 提交类型
|
||||
Module interface{} // 模块
|
||||
Module interface{} // 访问模块
|
||||
Url interface{} // 提交url
|
||||
GetData interface{} // get数据
|
||||
PostData interface{} // post数据
|
||||
HeaderData interface{} // header数据
|
||||
Ip interface{} // ip地址
|
||||
GetData *gjson.Json // get数据
|
||||
PostData *gjson.Json // post数据
|
||||
HeaderData *gjson.Json // header数据
|
||||
Ip interface{} // IP地址
|
||||
ProvinceId interface{} // 省编码
|
||||
CityId interface{} // 市编码
|
||||
ErrorCode interface{} // 报错code
|
||||
ErrorMsg interface{} // 报错信息
|
||||
ErrorData interface{} // 报错日志
|
||||
ReqId interface{} // 对外id
|
||||
ErrorData *gjson.Json // 报错日志
|
||||
ReqId interface{} // 对外ID
|
||||
Timestamp interface{} // 响应时间
|
||||
UserAgent interface{} // UA信息
|
||||
TakeUpTime interface{} // 请求耗时
|
||||
|
||||
@@ -12,17 +12,17 @@ import (
|
||||
// SysProvinces is the golang structure of table hg_sys_provinces for DAO operations like Where/Data.
|
||||
type SysProvinces struct {
|
||||
g.Meta `orm:"table:hg_sys_provinces, do:true"`
|
||||
Id interface{} // ID
|
||||
Title interface{} // 栏目名
|
||||
Pid interface{} // 父栏目
|
||||
Id interface{} // 省市区ID
|
||||
Title interface{} // 栏目名称
|
||||
ShortTitle interface{} // 缩写
|
||||
Areacode interface{} // 区域编码
|
||||
Zipcode interface{} // 邮政编码
|
||||
Pinyin interface{} // 拼音
|
||||
Lng interface{} // 经度
|
||||
Lat interface{} // 纬度
|
||||
Level interface{} // 级别
|
||||
Tree interface{} //
|
||||
Pid interface{} // 父栏目
|
||||
Level interface{} // 关系树等级
|
||||
Tree interface{} // 关系
|
||||
Sort interface{} // 排序
|
||||
Status interface{} // 状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
|
||||
52
server/internal/model/do/test.go
Normal file
52
server/internal/model/do/test.go
Normal file
@@ -0,0 +1,52 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// Test is the golang structure of table hg_test for DAO operations like Where/Data.
|
||||
type Test struct {
|
||||
g.Meta `orm:"table:hg_test, do:true"`
|
||||
Id interface{} // ID
|
||||
CategoryId interface{} // 分类ID
|
||||
Flag *gjson.Json // 标签
|
||||
Title interface{} // 标题
|
||||
Description interface{} // 描述
|
||||
Content interface{} // 内容
|
||||
Image interface{} // 单图
|
||||
Images *gjson.Json // 多图
|
||||
Attachfile interface{} // 附件
|
||||
Attachfiles *gjson.Json // 多附件
|
||||
Map *gjson.Json // 动态键值对
|
||||
Star interface{} // 推荐星
|
||||
Price interface{} // 价格
|
||||
Views interface{} // 浏览次数
|
||||
ActivityAt *gtime.Time // 活动时间
|
||||
StartAt *gtime.Time // 开启时间
|
||||
EndAt *gtime.Time // 结束时间
|
||||
Switch interface{} // 开关
|
||||
Sort interface{} // 排序
|
||||
Avatar interface{} // 头像
|
||||
Sex interface{} // 性别
|
||||
Qq interface{} // qq
|
||||
Email interface{} // 邮箱
|
||||
Mobile interface{} // 手机号码
|
||||
Hobby *gjson.Json // 爱好
|
||||
Channel interface{} // 渠道
|
||||
Pid interface{} // 上级ID
|
||||
Level interface{} // 树等级
|
||||
Tree interface{} // 关系树
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
CreatedBy interface{} // 创建者
|
||||
UpdatedBy interface{} // 更新者
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 修改时间
|
||||
DeletedAt *gtime.Time // 删除时间
|
||||
}
|
||||
24
server/internal/model/do/test_category.go
Normal file
24
server/internal/model/do/test_category.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// TestCategory is the golang structure of table hg_test_category for DAO operations like Where/Data.
|
||||
type TestCategory struct {
|
||||
g.Meta `orm:"table:hg_test_category, do:true"`
|
||||
Id interface{} // 分类ID
|
||||
Name interface{} // 分类名称
|
||||
Description interface{} // 描述
|
||||
Sort interface{} // 排序
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 修改时间
|
||||
DeletedAt *gtime.Time // 删除时间
|
||||
}
|
||||
Reference in New Issue
Block a user