diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..f60520c7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sql linguist-vendored diff --git a/README.md b/README.md index 25ed6f44..598e8ee2 100644 --- a/README.md +++ b/README.md @@ -4,19 +4,19 @@ `备注`:本文档中,如果没有特殊明确,`app目录`均是指`app/app/`的第二层目录 -`关于前端技术我解释下`: -1. 由于业务和环境的变化,原本vue2.0前端的维护压力越来越大。再三考虑后,使用React对前端进行了重构,借此也对golang接口端的各种问题进行了集中处理。 +`关于前端技术我解释下`: +1. 由于业务和环境的变化,原本vue2.0前端的维护压力越来越大。再三考虑后,使用React对前端进行了重构,借此也对golang接口端的各种问题进行了集中处理。 2. vue2.0版的最终完整版本,我单独设置了一个分支,该分支仅做永久备份,不再进行更新和维护。后续将只会迭代新的react版 3. react版分为内部版和开源版,内部版源码不对外开放,但为了开源版的完整性,我借用了第三方开源项目框架[Hooks-Admin](https://github.com/HalseySpicy/Hooks-Admin) 来实现。 - 1. 所有涉及业务接口的页面,都是从内部版完整迁移到这个框架,这些页面一行代码也没改 - 2. 该框架原本使用的是ant-design4.x,为了兼容业务页面,我变更为5.x,框架本身针对性的做了一些调整 - 3. 最终目的是让迁移的页面能在不改代码的情况下正常运行,而框架本身的基础功能非必要我不做调整 - 4. 该开源框架本身其实已经很老,很多细节实现上也需要完善或者重构,由于个人精力有限,这个只能是使用者根据自身情况自行迭代完善了。 - + 1. 所有涉及业务接口的页面,都是从内部版完整迁移到这个框架,这些页面一行代码也没改 + 2. 该框架原本使用的是ant-design4.x,为了兼容业务页面,我变更为5.x,框架本身针对性的做了一些调整 + 3. 最终目的是让迁移的页面能在不改代码的情况下正常运行,而框架本身的基础功能非必要我不做调整 + 4. 该开源框架本身其实已经很老,很多细节实现上也需要完善或者重构,由于个人精力有限,这个只能是使用者根据自身情况自行迭代完善了。 + `初衷`: 有很多开源的go-admin,但其实都是在别的开源项目的基础上各种迭代的,代码冗余,功能冗余,结构上也不尽人意。 为了满足个人日常需要(统计数据、中小单体项目开发等),我经过多个项目的磨合,对该项目做了大量的精简和调整,也对很多功能做了重新规划和设计。 -对很多人而言,仅仅需要最基础的功能,剩下的根据需要自行迭代,而这套框架也刚好满足你。 +对很多人而言,仅仅需要最基础的功能,剩下的根据需要自行迭代,而这套框架也刚好满足你。 我的开发准则: `大道至简` @@ -24,15 +24,15 @@ ![启动](/logo.png) 在线体验: -[go-admin react开源版入口](http://120.48.157.250:22222/) +[go-admin react开源版入口](http://120.48.157.250:22222/) -[go-admin vue2.0版入口(不再更新)](http://120.48.157.250:60000/) +[go-admin vue2.0版入口(不再更新)](http://120.48.157.250:60000/) 内置两个默认账户: 账户:admin 密码:123456 顶级账户 -账户:test 密码:123456 菜单权限受限的账户 +账户:test 密码:123456 菜单权限受限的账户 -`注:`:该项目没有任何商业行为,只作为公开分享和交流,请友善体验,不要非法攻击该在线地址。所有功能对外开放,期间可能有小伙伴无意间操作导致页面显示异常,我发现后会及时恢复数据库,或者可以发Issues提醒我处理。 +`注:`:该项目没有任何商业行为,只作为公开分享和交流,请友善体验,不要非法攻击该在线地址。所有功能对外开放,期间可能有小伙伴无意间操作导致页面显示异常,我发现后会及时恢复数据库,或者可以发Issues提醒我处理。 项目本身功能细节很多,这里我把我认为需要表述的功能介绍下,剩下的大家进一步看代码来逐步理解吧 @@ -41,48 +41,48 @@ 其实它本质还是前后端分离。 这里我解释下几个主要目录 1. 后端(golang端): - 1. 所有业务内容,均在`app根目录`下完成,而该目录下,分为3个子目录: - 1. `admin子目录`:后台管理系统通用功能,能够确保框架正常运行的基础业务,如登录、日志、系统管理、菜单等等 - 2. `app子目录`:个性化业务层,也就是你具体业务均放在该目录下,大多数情况下,你的所有业务都是在该目录下完成的, - 3. `plugins子目录`:存放一些独立插件功能,方便根据自身需要选择删掉或者增加。如消息管理、文章管理等等 - 2. 上面虽然说,一般情况下都是在第二层`app`子目录中完成业务,但一些业务常量和国际化为了方便统一管理,我将其归纳到`config/base目录`中,自己根据已有的内容,根据业务需要在其中添加就行。 - 1. 国际化默认都是中文的,要对不同语言翻译,就得在`config/lang`目录中多语言翻译了 - 2. 目前框架多语言只支持中英文,如果需要根多语言,只需要在`core/lang/lang.go`中添加需要的语言就行 + 1. 所有业务内容,均在`app根目录`下完成,而该目录下,分为3个子目录: + 1. `admin子目录`:后台管理系统通用功能,能够确保框架正常运行的基础业务,如登录、日志、系统管理、菜单等等 + 2. `app子目录`:个性化业务层,也就是你具体业务均放在该目录下,大多数情况下,你的所有业务都是在该目录下完成的, + 3. `plugins子目录`:存放一些独立插件功能,方便根据自身需要选择删掉或者增加。如消息管理、文章管理等等 + 2. 上面虽然说,一般情况下都是在第二层`app`子目录中完成业务,但一些业务常量和国际化为了方便统一管理,我将其归纳到`config/base目录`中,自己根据已有的内容,根据业务需要在其中添加就行。 + 1. 国际化默认都是中文的,要对不同语言翻译,就得在`config/lang`目录中多语言翻译了 + 2. 目前框架多语言只支持中英文,如果需要根多语言,只需要在`core/lang/lang.go`中添加需要的语言就行 2. 前端(ts+react18+ant5+vite+xxx) - 1. `web`目录是前端根目录,完全独立,可以独立开发和部署。除了该目录,剩下的都属于后台接口的 - 2. 同后端目录功能类似,前端的业务目录主要有两个: - 1. `src/api目录`:用于存放和后端交互的业务接口,其中也分为三个子目录:`admin`、`app`、`plugins` - 2. `src/views目录`:存放所有业务页面,其中也分为三个子目录:`admin`、`app`、`plugins` - 3. 前面我提到过,目前我开源的react版,业务页面是原封不动的迁移进来的,也就是说,`src/api目录`中的内容和我内部版是完全一样的,而`src/views目录`除了其中的`/admin/sys/login`,其余也是完全一样的 + 1. `web`目录是前端根目录,完全独立,可以独立开发和部署。除了该目录,剩下的都属于后台接口的 + 2. 同后端目录功能类似,前端的业务目录主要有两个: + 1. `src/api目录`:用于存放和后端交互的业务接口,其中也分为三个子目录:`admin`、`app`、`plugins` + 2. `src/views目录`:存放所有业务页面,其中也分为三个子目录:`admin`、`app`、`plugins` + 3. 前面我提到过,目前我开源的react版,业务页面是原封不动的迁移进来的,也就是说,`src/api目录`中的内容和我内部版是完全一样的,而`src/views目录`除了其中的`/admin/sys/login`,其余也是完全一样的 ## 2. 当前主要功能 -基础功能: -* 登录身份鉴权,支持session和jwt两种方式、支持单点登录 -* 部门、岗位、角色(子账户)、管理员等基本通用功能 -* 数据权限管理,该功能虽已完成,因使用频率低,暂未调试 [后续完善] +基础功能: +* 登录身份鉴权,支持session和jwt两种方式、支持单点登录 +* 部门、岗位、角色(子账户)、管理员等基本通用功能 +* 数据权限管理,该功能虽已完成,因使用频率低,暂未调试 [后续完善] * 字典管理、业务参数管理、登录日志、操作日志等 -* 根据模板一键`生成/下载/预览`前端页面以及后端相应业务代码,满足常用的增删改 -* 插件化管理,尽可能独立化每个功能 -* 支持mysql -* 接口支持多语言i18n -* 支持后端接口自动扫描及录入 - -扩展业务功能(我简单实现的一些基础业务功能,可进行二次开发) -* app用户管理,包括对应配置管理里 -* 等级管理 -* 账变记录 -* 国际区号 -* 插件(基本的CMS内容管理、App安装包管理、消息管理) +* 根据模板一键`生成/下载/预览`前端页面以及后端相应业务代码,满足常用的增删改 +* 插件化管理,尽可能独立化每个功能 +* 完整支持 mysql 和 postgresql +* 接口支持多语言i18n +* 支持后端接口自动扫描及录入 + +扩展业务功能(我简单实现的一些基础业务功能,可进行二次开发) +* app用户管理,包括对应配置管理里 +* 等级管理 +* 账变记录 +* 国际区号 +* 插件(基本的CMS内容管理、App安装包管理、消息管理) `备注`:截止目前,我也不打算提供定时任务和swagger功能,对我而言,我认为完全没必要。首先定时任务和后台耦合,每次后台发布,很容易引起定时任务的异常,定时任务完全可以搞成一个独立的脚本去运行彻底解耦。而swagger我只感觉鸡肋,除了给自己增加工作量,眼前还没发现任何优势。这两个功能谁如果需要,完全可以自行在现有框架中加进去。 ## 3. 遵守规则 1. 数据库表 - 1. 分为3类表: - 1. 系统基础表,以`admin_子业务名_xxx`为前缀,后面衔接模块业务名 - 2. 插件表,以`plugins_子业务名_xxx`为前缀,后面衔接模块业务名 - 3. 主业务项目,以`app_子业务名_xxx`为前缀,后面衔接模块业务名 - 2. 这里我简单举例说明下,比如`app_user_level`,表示我是要开发自己的业务,需要用`app`标记,而具体的子业务是`user`,具体功能是`level`,直到`子业务`的命名一定要规范,这是为了后续一键生成代码体验更好 + 1. 分为3类表: + 1. 系统基础表,以`admin_子业务名_xxx`为前缀,后面衔接模块业务名 + 2. 插件表,以`plugins_子业务名_xxx`为前缀,后面衔接模块业务名 + 3. 主业务项目,以`app_子业务名_xxx`为前缀,后面衔接模块业务名 + 2. 这里我简单举例说明下,比如`app_user_level`,表示我是要开发自己的业务,需要用`app`标记,而具体的子业务是`user`,具体功能是`level`,直到`子业务`的命名一定要规范,这是为了后续一键生成代码体验更好 2. 尽可能按照已有功能的文件结构和命名方式来开发项目,模板本身就是按照该规则实现的,尽量约束自己的开发范围 3. 注释规范:因为`接口同步`需要录入接口功能说明,每个方法前都需要按规范写上注释(功能说明),尤其路由接口上,规范是:`// 方法名 功能说明` 4. 按钮权限规范:`菜单管理`中,会涉及到按钮的权限配置,此时你配置的权限内容要和页面中`permission`属性配置内容保持一致,命名规则最好按我这样:`业务名:包名:作用`,同样以`app_user_level`表为例,`新增按钮`权限命名为:`app:user_level:add`;`删除按钮`权限命名为:`app:user_level:del``更新按钮`权限命名为:`app:user_level:edit`;`查询`权限命名为:`app:user_level:query`。权限这个很灵活,你根据自己实际场景来尝试,比如有时候你可以不用在页面设置`permisson`,一样能达到权限控制效果 @@ -92,13 +92,13 @@ 分为数据库、后端、前端部署 ### 4.1 数据库部署 -1. 我亲测的环境:10.7.3-MariaDB 或者 8.0.40-Mysql -2. 直接自建数据库,用`字符集:utf8_mb4`、`排序规则:utf8_mb4_bin` -3. 建好数据库后,直接把我根目录的sql脚本`app.sql`导入即可 +1. 我亲测的环境:mysql:10.7.3-MariaDB 或者 8.0.40-Mysql postgresql:16.1 +2. 直接自建数据库,mysql:用`字符集:utf8_mb4`、`排序规则:utf8_mb4_bin`;postgresql默认 +3. 建好数据库后,直接把我根目录的sql脚本 mysql=>`app_mysql.sql`(由Navicat Lite导出) 或者 postgresql=>`app_pgsql.sql`(自行整理)导入即可 ### 4.2 后台接口部署与启动 -1. 环境:golang版本-1.23.2 -2. 编译项目,项目根目录执行如下: +1. 环境:golang版本-1.24.5 +2. 编译项目,项目根目录执行如下: ```shell go mod tidy @@ -108,7 +108,7 @@ go generate && go build -a -o go-admin-api main.go # 交叉编译为linux amd64: go generate && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o go-admin-api main.go ``` -`注`⚠️:`go generate`命令一定要执行(无论打包前还是本地运行),它可以扫描保存你新增的路由,用于后续接口同步 +`注`⚠️:`go generate`命令一定要执行(无论打包前还是本地运行),它可以扫描保存你新增的路由,用于后续接口同步 3. 项目根目录,找到`conf/`,可以直接再`settings.yml`中配置数据库,或者可以拷贝一份,重新命名,比如:`settings.dev.yml`,具体的配置信息,请自行去文件中参考,里面写的很详细,我这里就不再解释了 4. 启动项目,参考如下两种方式: ```shell @@ -120,7 +120,11 @@ go generate && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o go-admin-api ``` ### 4.3 web页面编译和部署 -1. 依赖安装: +1. 为了避免隐式依赖问题,要禁止依赖自动安装 +```shell +npm config set legacy-peer-deps true +``` +2. 依赖安装: ```shell cd ./web # 常规安装 @@ -133,13 +137,13 @@ npm install --legacy-peer-deps # 注:由于开源版新旧包依赖问题,导致依赖安装时,需要始终使用--legacy-peer-deps,比如安装md5: npm install --legacy-peer-deps md5 ``` -2. 本地启动: +3. 本地启动: ```shell npm run dev ``` 浏览器打开:http://127.0.0.1:1688 -3. 生产编译: +4. 生产编译: ```shell npm run build:prod ``` @@ -149,11 +153,11 @@ npm run build:prod 2. 整体上的使用步骤就是,先把数据库表导入到系统,然后编辑每个字段的规则,保存。接着就是你下载代码还是直接生成到你代码里都行 3. 前端生成位置,需要你在配置中指定 4. 生成的golang文件中,会有一个`router.go.bk`文件,具体我还是用例子说明吧: - 1. 比如你要针对`app_user_level`表 - 2. 当你第一次在`app`子目录中生成第一个子业务`user`时,也就是说原先`app`目录下没有`user`目录 - 3. 你生成代码后,会自动产生个`user`目录,该目录下的`router`目录中会有个`router.go.bk`文件,这时,你把`.bk`后缀去掉 - 4. 然后回到`app目录`下,在`init.go`文件中,按照已有的样例,把自己的业务路由`append`加上去,也就是注入路由 - 5. 至此你的业务模块就能和项目框架关联上了 + 1. 比如你要针对`app_user_level`表 + 2. 当你第一次在`app`子目录中生成第一个子业务`user`时,也就是说原先`app`目录下没有`user`目录 + 3. 你生成代码后,会自动产生个`user`目录,该目录下的`router`目录中会有个`router.go.bk`文件,这时,你把`.bk`后缀去掉 + 4. 然后回到`app目录`下,在`init.go`文件中,按照已有的样例,把自己的业务路由`append`加上去,也就是注入路由 + 5. 至此你的业务模块就能和项目框架关联上了 ## 7. 接口数据同步 1. 接口数据同步,可以将当前程序中的所有接口录入数据库,方便后续从后台绑定菜单,具体可以查看下一节讲述 @@ -168,16 +172,16 @@ npm run build:prod 3. 这时,那个管理员登录后,就只能看到你刚分配的菜单了 4. 你会发现,此时点击菜单会提示无权限,这是因为还没给菜单分配对应的接口,无法获取相应数据 5. 为了安全,我后台服务端是需要根据角色判断该管理员是否有权限访问接口的,因此,接口需要和菜单绑定,具体需要这样操作 - 1. 在`接口管理`中,你点击`接口数据同步`,此时服务端会通过Handler将所有接口信息录入到表中 - 2. 你在`菜单管理`中,将接口绑定到对应`菜单/按钮`上, - 3. 此时,那个管理员就能访问他的菜单了,而其余菜单,哪怕他跳过页面去调试接口,也会提示无权限的。 + 1. 在`接口管理`中,你点击`接口数据同步`,此时服务端会通过Handler将所有接口信息录入到表中 + 2. 你在`菜单管理`中,将接口绑定到对应`菜单/按钮`上, + 3. 此时,那个管理员就能访问他的菜单了,而其余菜单,哪怕他跳过页面去调试接口,也会提示无权限的。 6. 之所以要点击`接口数据同步`是因为,新发布的项目,可能程序中新增了接口,但库中没有捕获到;也有可能新部署的程序删掉了某些接口。这时候点击同步,可以自动删除表中无效接口并增加程序新增的接口。这样就方便你绑定菜单了。 7. 我没有在程序启动时,自动去录入接口,是因为不喜欢那种方式,总感觉那样耦合度太高,容易出问题。还是直接在页面上操作,不论成功还是失败,一目了然。 ## 9. 总结 -说实话,这个开源的react前端无论体验和代码实现上,都还有很大提升空间,包括需要使用的技术等等都有很多地方可以替代下,这些更改只能是留给使用者来酌情调整了,我也会抽时间尽量把一些严重的页面问题给完善下。 - -这里只是大概讲了下基本情况,具体更多内容,还是需要大家在使用中一点点去发现。 +说实话,这个开源的react前端无论体验和代码实现上,都还有很大提升空间,包括需要使用的技术等等都有很多地方可以替代下,这些更改只能是留给使用者来酌情调整了,我也会抽时间尽量把一些严重的页面问题给完善下。 + +这里只是大概讲了下基本情况,具体更多内容,还是需要大家在使用中一点点去发现。 ## 感谢 > [go-admin-team](https://github.com/go-admin-team) diff --git a/app/admin/sys/apis/sys_user.go b/app/admin/sys/apis/sys_user.go index d72c6590..92d71aa3 100644 --- a/app/admin/sys/apis/sys_user.go +++ b/app/admin/sys/apis/sys_user.go @@ -445,7 +445,7 @@ func (e SysUser) GenCaptcha(c *gin.Context) { e.Error(baseLang.DataDecodeCode, lang.MsgLogErrf(e.Logger, e.Lang, baseLang.DataDecodeCode, baseLang.DataDecodeLogCode, err).Error()) return } - id, b64s, err := captchautils.DriverDigitFunc() + id, b64s, _, err := captchautils.DriverDigitFunc() if err != nil { e.Error(baseLang.SysUseGenCaptchaErrLogCode, lang.MsgLogErrf(e.Logger, e.Lang, baseLang.SysUseGenCaptchaErrCode, baseLang.SysUseGenCaptchaErrLogCode, err).Error()) return diff --git a/app/admin/sys/models/sys_api_gen_desc.go b/app/admin/sys/models/sys_api_gen_desc.go index d4b424ee..466edb1a 100644 --- a/app/admin/sys/models/sys_api_gen_desc.go +++ b/app/admin/sys/models/sys_api_gen_desc.go @@ -2,147 +2,147 @@ package models var ApiDescMap = map[string]string{ - "go-admin/app/admin/sys/apis.SysPost.Export-fm": "admin-导出岗位管理", - "go-admin/app/admin/sys/apis.SysRole.Update-fm": "admin-更新角色管理", + "go-admin/app/admin/sys/apis.SysPost.Delete-fm": "admin-删除岗位管理", + "go-admin/app/plugins/content/apis.ContentAnnouncement.Export-fm": "plugins-导出公告管理", + "go-admin/app/app/user/apis.UserCountryCode.Delete-fm": "app-删除国家区号管理", "go-admin/app/admin/sys/apis.SysTables.Get-fm": "admin-获取表管理详情", - "go-admin/app/admin/sys/apis.SysRole.Get-fm": "admin-获取角色管理详情", - "go-admin/app/admin/sys/apis.SysUser.ResetPwd-fm": "admin-重置系统用户密码", - "go-admin/app/admin/sys/apis.SysDictData.GetPage-fm": "admin-获取字典数据分页列表", - "go-admin/app/admin/sys/apis.SysLoginLog.Export-fm": "admin-导出登录日志", - "go-admin/app/admin/sys/apis.SysMenu.Delete-fm": "admin-删除菜单管理", - "go-admin/app/admin/sys/apis.SysUser.Get-fm": "admin-获取系统用户管理详情", - "go-admin/app/admin/sys/apis.SysUser.UpdateProfileAvatar-fm": "admin-更新系统登录用户头像", - "go-admin/app/app/user/apis.User.Update-fm": "app-更新用户管理", - "go-admin/app/plugins/filemgr/apis.FilemgrApp.Get-fm": "plugins-获取APP管理详情", - "go-admin/app/admin/sys/apis.SysConfig.Export-fm": "admin-导出配置管理", - "go-admin/app/admin/sys/apis.SysTables.GetPage-fm": "admin-获取表管理分页列表", - "go-admin/app/admin/sys/apis.SysMenu.GetTreeList-fm": "admin-获取菜单管理树", - "go-admin/app/admin/sys/apis.SysUser.Update-fm": "admin-更新系统用户管理", + "go-admin/app/app/user/apis.UserLevel.Delete-fm": "app-删除用户等级管理", + "go-admin/app/admin/sys/apis.SysTables.Update-fm": "admin-更新表管理", + "go-admin/app/admin/sys/apis.SysTables.Delete-fm": "admin-删除表管理", + "go-admin/app/admin/sys/apis.SysApi.GetList-fm": "admin-获取接口管理全部列表", "go-admin/app/admin/sys/apis.SysTables.GenCode-fm": "admin-生成表管理的代码", - "go-admin/app/admin/sys/apis.SysLoginLog.GetPage-fm": "admin-获取登录日志分页列表", - "go-admin/app/admin/sys/apis.SysMenu.Get-fm": "admin-获取菜单管理详情", + "go-admin/app/admin/sys/apis.SysTables.GenDB-fm": "admin-表管理中生成菜单数据", + "go-admin/app/admin/sys/apis.SysUser.Delete-fm": "admin-删除系统用户管理", "go-admin/app/plugins/content/apis.ContentCategory.Insert-fm": "plugins-新增内容分类管理详情", - "go-admin/app/admin/sys/apis.SysDept.Insert-fm": "admin-新增部门管理", - "go-admin/app/admin/sys/apis.SysTables.DownloadCode-fm": "admin-表管理下载代码", - "go-admin/app/admin/sys/apis.SysOperLog.GetPage-fm": "admin-获取操作日志分页列表", - "go-admin/app/admin/sys/apis.SysUser.Insert-fm": "admin-新增系统用户管理", - "go-admin/app/plugins/content/apis.ContentAnnouncement.Get-fm": "plugins-获取公告管理详情", - "go-admin/app/admin/sys/apis.SysApi.Get-fm": "admin-获取接口管理详情", - "go-admin/app/admin/sys/apis.SysPost.GetTotalList-fm": "admin-获取岗位管理全部列表", - "go-admin/app/app/user/apis.User.GetPage-fm": "app-获取用户管理分页列表", - "go-admin/app/app/user/apis.UserCountryCode.Get-fm": "app-获取国家区号管理详情", - "go-admin/app/plugins/filemgr/apis.FilemgrApp.GetPage-fm": "plugins-获取APP管理分页列表", - "go-admin/app/plugins/filemgr/apis.FilemgrApp.Update-fm": "plugins-更新APP管理", - "go-admin/app/admin/sys/apis.SysDictData.Get-fm": "admin-获取字典数据详情", + "go-admin/app/admin/sys/apis.SysDictType.Export-fm": "admin-导出字典类型", + "go-admin/app/admin/sys/apis.SysTables.Preview-fm": "admin-预览表管理的代码页面", + "go-admin/app/admin/sys/apis.SysRole.Update-fm": "admin-更新角色管理", + "go-admin/app/plugins/content/apis.ContentArticle.Delete-fm": "plugins-删除文章管理", + "go-admin/app/admin/sys/apis.SysConfig.Get-fm": "admin-获取配置管理详情", + "go-admin/app/admin/sys/apis.SysDept.GetTree-fm": "admin-获取部门管理树", + "go-admin/app/admin/sys/apis.SysDept.Delete-fm": "admin-删除部门管理", + "go-admin/app/admin/sys/apis.Monitor.GetMonitor-fm": "admin-获取服务器信息", + "go-admin/app/admin/sys/apis.SysOperLog.Delete-fm": "admin-删除操作日志", + "go-admin/app/admin/sys/apis.SysPost.GetPage-fm": "admin-获取岗位管理分页列表", + "go-admin/app/admin/sys/apis.SysUser.GetPage-fm": "admin-获取系统用户管理分页列表", + "go-admin/app/plugins/filemgr/apis.FilemgrApp.Upload-fm": "plugins-上传APP", "go-admin/app/admin/sys/apis.SysDictData.Insert-fm": "admin-新增字典数据", - "go-admin/app/admin/sys/apis.SysDictType.Delete-fm": "admin-删除字典类型", + "go-admin/app/admin/sys/apis.SysLoginLog.Get-fm": "admin-获取登录日志详情", "go-admin/app/admin/sys/apis.SysPost.Insert-fm": "admin-新增岗位管理", - "go-admin/app/plugins/content/apis.ContentArticle.GetPage-fm": "plugins-获取文章管理分页列表", - "go-admin/app/plugins/content/apis.ContentCategory.Update-fm": "plugins-更新内容分类管理", + "go-admin/app/admin/sys/apis.SysPost.Export-fm": "admin-导出岗位管理", + "go-admin/app/app/user/apis.UserOperLog.Get-fm": "app-获取用户操作日志详情", "go-admin/app/admin/sys/apis.SysConfig.GetPage-fm": "admin-获取配置管理分页列表", - "go-admin/app/admin/sys/apis.SysMenu.GetMenuRole-fm": "admin-根据角色获取菜单", - "go-admin/app/admin/sys/apis.SysRole.UpdateDataScope-fm": "admin-更新角色管理数据权限", - "go-admin/app/app/user/apis.User.Export-fm": "app-导出用户管理", - "go-admin/app/app/user/apis.UserAccountLog.GetPage-fm": "app-获取账变记录分页列表", - "go-admin/app/app/user/apis.UserCountryCode.Export-fm": "app-导出国家区号管理", - "go-admin/app/app/user/apis.UserLevel.Insert-fm": "app-新增用户等级管理", - "go-admin/app/admin/sys/apis.SysDept.GetDeptTreeByRole-fm": "admin-根据角色获取部门", - "go-admin/app/admin/sys/apis.SysTables.Insert-fm": "admin-新增表管理", - "go-admin/app/admin/sys/apis.SysMenu.Insert-fm": "admin-新增菜单管理", + "go-admin/app/admin/sys/apis.SysDictData.GetList-fm": "admin-获取字典数据全部列表", + "go-admin/app/admin/sys/apis.SysPost.Update-fm": "admin-更新岗位管理", + "go-admin/app/admin/sys/apis.SysUser.UpdateProfile-fm": "admin-更新系统登录用户信息", + "go-admin/app/admin/sys/apis.SysUser.LogOut-fm": "admin-退出系统", + "go-admin/app/app/user/apis.UserCountryCode.Update-fm": "app-更新国家区号管理", + "go-admin/app/plugins/filemgr/apis.FilemgrApp.Get-fm": "plugins-获取APP管理详情", + "go-admin/app/admin/sys/apis.SysTables.GetPage-fm": "admin-获取表管理分页列表", + "go-admin/app/app/user/apis.User.GetPage-fm": "app-获取用户管理分页列表", + "go-admin/app/app/user/apis.UserLevel.Update-fm": "app-更新用户等级管理", + "go-admin/app/plugins/content/apis.ContentArticle.Get-fm": "plugins-获取文章管理详情", + "go-admin/app/plugins/filemgr/apis.FilemgrApp.Insert-fm": "plugins-新增APP管理", + "go-admin/app/admin/sys/apis.SysConfig.Export-fm": "admin-导出配置管理", + "go-admin/app/admin/sys/apis.Monitor.Prom-fm": "admin-获取Prom信息", + "go-admin/app/admin/sys/apis.SysOperLog.Get-fm": "admin-获取操作日志详情", "go-admin/app/admin/sys/apis.SysRole.Insert-fm": "admin-新增角色管理", - "go-admin/app/plugins/content/apis.ContentCategory.Get-fm": "plugins-获取内容分类管理详情", - "go-admin/app/plugins/filemgr/apis.FilemgrApp.Delete-fm": "plugins-删除APP管理", - "go-admin/app/admin/sys/apis.SysDictType.GetPage-fm": "admin-获取字典类型分页列表", - "go-admin/app/admin/sys/apis.SysPost.Delete-fm": "admin-删除岗位管理", - "go-admin/app/admin/sys/apis.SysUser.Delete-fm": "admin-删除系统用户管理", - "go-admin/app/app/user/apis.UserConf.Update-fm": "app-更新用户配置管理", - "go-admin/app/admin/sys/apis.SysApi.Sync-fm": "admin-同步接口数据", - "go-admin/app/admin/sys/apis.SysDept.GetTree-fm": "admin-获取部门管理树", - "go-admin/app/admin/sys/apis.SysDictType.Insert-fm": "admin-新增字典类型", - "go-admin/app/admin/sys/apis.SysUser.UpdateStatus-fm": "admin-更新系统用户状态", - "go-admin/app/app/user/apis.UserCountryCode.Insert-fm": "app-新增国家区号管理", - "go-admin/app/app/user/apis.UserLevel.Delete-fm": "app-删除用户等级管理", - "go-admin/app/plugins/content/apis.ContentAnnouncement.Update-fm": "plugins-更新公告管理", - "go-admin/app/plugins/content/apis.ContentArticle.Update-fm": "plugins-更新文章管理", - "go-admin/app/admin/sys/apis.SysDictType.Get-fm": "admin-获取字典类型详情", - "go-admin/app/admin/sys/apis.SysMenu.Update-fm": "admin-更新菜单管理", - "go-admin/app/admin/sys/apis.SysMenu.GetMenuTreeSelect-fm": "admin-获取全部菜单以及选中的菜单编号", - "go-admin/app/admin/sys/apis.Monitor.Ping-fm": "admin-ping测试", - "go-admin/app/admin/sys/apis.SysRole.UpdateStatus-fm": "admin-更新角色管理状态", - "go-admin/app/app/user/apis.UserCountryCode.Delete-fm": "app-删除国家区号管理", - "go-admin/app/admin/sys/apis.SysDictData.Delete-fm": "admin-删除字典数据", - "go-admin/app/admin/sys/apis.SysTables.Delete-fm": "admin-删除表管理", - "go-admin/app/admin/sys/apis.SysConfig.Get-fm": "admin-获取配置管理详情", - "go-admin/app/admin/sys/apis.SysTables.Preview-fm": "admin-预览表管理的代码页面", - "go-admin/app/admin/sys/apis.Monitor.GetMonitor-fm": "admin-获取服务器信息", + "go-admin/app/plugins/content/apis.ContentCategory.Delete-fm": "plugins-删除内容分类管理", "go-admin/app/app/user/apis.UserLevel.GetPage-fm": "app-获取用户等级管理分页列表", - "go-admin/app/app/user/apis.UserOperLog.Get-fm": "app-获取用户操作日志详情", - "go-admin/app/admin/sys/apis.SysApi.Delete-fm": "admin-删除接口管理", - "go-admin/app/admin/sys/apis.SysDictType.Export-fm": "admin-导出字典类型", - "go-admin/app/app/user/apis.UserAccountLog.Get-fm": "app-获取账变记录详情", - "go-admin/app/app/user/apis.UserOperLog.GetPage-fm": "app-获取用户操作日志分页列表", - "go-admin/app/plugins/content/apis.ContentArticle.Delete-fm": "plugins-删除文章管理", - "go-admin/app/plugins/content/apis.ContentCategory.GetPage-fm": "plugins-获取内容分类管理分页列表", - "go-admin/app/plugins/filemgr/apis.FilemgrApp.Insert-fm": "plugins-新增APP管理", - "go-admin/app/admin/sys/apis.SysApi.GetPage-fm": "admin-获取接口管理分页列表", "go-admin/app/admin/sys/apis.SysDept.Update-fm": "admin-更新部门管理", - "go-admin/app/admin/sys/apis.Monitor.Prom-fm": "admin-获取Prom信息", + "go-admin/app/admin/sys/apis.SysDictType.GetList-fm": "admin-获取字典类型全部列表", + "go-admin/app/admin/sys/apis.SysMenu.GetMenuTreeSelect-fm": "admin-获取全部菜单以及选中的菜单编号", + "go-admin/app/admin/sys/apis.SysRole.Get-fm": "admin-获取角色管理详情", + "go-admin/app/app/user/apis.User.Export-fm": "app-导出用户管理", + "go-admin/app/plugins/msg/apis.MsgCode.GetPage-fm": "plugins-获取验证码管理分页列表", + "go-admin/app/admin/sys/apis.SysConfig.GetByKey-fm": "admin-根据Key获取配置值", + "go-admin/app/admin/sys/apis.SysTables.GetDBTablePage-fm": "admin-获取表管理的DB表分页列表", "go-admin/app/admin/sys/apis.SysRole.GetPage-fm": "admin-获取角色管理分页列表", - "go-admin/app/admin/sys/apis.SysUser.UpdateProfile-fm": "admin-更新系统登录用户信息", - "go-admin/app/app/user/apis.User.Get-fm": "app-获取用户管理详情", - "go-admin/app/plugins/content/apis.ContentAnnouncement.Delete-fm": "plugins-删除公告管理", + "go-admin/app/admin/sys/apis.SysUser.Insert-fm": "admin-新增系统用户管理", + "go-admin/app/app/user/apis.UserConf.Get-fm": "app-获取用户配置管理详情", "go-admin/app/plugins/content/apis.ContentCategory.Export-fm": "plugins-导出内容分类管理", - "go-admin/app/plugins/msg/apis.MsgCode.GetPage-fm": "plugins-获取验证码管理分页列表", - "go-admin/app/admin/sys/apis.SysTables.Update-fm": "admin-更新表管理", - "go-admin/app/admin/sys/apis.SysUser.UpdateProfilePwd-fm": "admin-更新系统登录用户密码", - "go-admin/app/admin/sys/apis.SysTables.GenDB-fm": "admin-表管理中生成菜单数据", - "go-admin/app/admin/sys/apis.SysPost.Update-fm": "admin-更新岗位管理", - "go-admin/app/app/user/apis.UserLevel.Update-fm": "app-更新用户等级管理", - "go-admin/app/plugins/msg/apis.MsgCode.Get-fm": "plugins-获取验证码管理详情", - "go-admin/app/admin/sys/apis.SysConfig.Insert-fm": "admin-新增配置管理", "go-admin/app/admin/sys/apis.SysConfig.Update-fm": "admin-更新配置管理", - "go-admin/app/admin/sys/apis.SysConfig.GetByKey-fm": "admin-根据Key获取配置值", - "go-admin/app/admin/sys/apis.SysDept.Delete-fm": "admin-删除部门管理", - "go-admin/app/plugins/filemgr/apis.FilemgrApp.Upload-fm": "plugins-上传APP", + "go-admin/app/admin/sys/apis.SysDept.Insert-fm": "admin-新增部门管理", + "go-admin/app/admin/sys/apis.SysTables.DownloadCode-fm": "admin-表管理下载代码", + "go-admin/app/app/user/apis.UserCountryCode.Get-fm": "app-获取国家区号管理详情", + "go-admin/app/plugins/content/apis.ContentCategory.GetPage-fm": "plugins-获取内容分类管理分页列表", + "go-admin/app/plugins/filemgr/apis.FilemgrApp.Delete-fm": "plugins-删除APP管理", + "go-admin/app/admin/sys/apis.SysApi.GetPage-fm": "admin-获取接口管理分页列表", + "go-admin/app/admin/sys/apis.SysDictType.Delete-fm": "admin-删除字典类型", + "go-admin/app/admin/sys/apis.SysMenu.Delete-fm": "admin-删除菜单管理", + "go-admin/app/admin/sys/apis.SysRole.Delete-fm": "admin-删除角色管理", + "go-admin/app/admin/sys/apis.SysRole.UpdateStatus-fm": "admin-更新角色管理状态", + "go-admin/app/admin/sys/apis.SysMenu.Get-fm": "admin-获取菜单管理详情", + "go-admin/app/plugins/content/apis.ContentAnnouncement.Update-fm": "plugins-更新公告管理", + "go-admin/app/plugins/content/apis.ContentAnnouncement.Delete-fm": "plugins-删除公告管理", + "go-admin/app/admin/sys/apis.SysApi.Delete-fm": "admin-删除接口管理", "go-admin/app/admin/sys/apis.SysApi.Export-fm": "admin-导出接口管理", - "go-admin/app/admin/sys/apis.SysDept.Get-fm": "admin-获取部门管理详情", - "go-admin/app/app/user/apis.UserCountryCode.Update-fm": "app-更新国家区号管理", - "go-admin/app/plugins/content/apis.ContentCategory.Delete-fm": "plugins-删除内容分类管理", - "go-admin/app/admin/sys/apis.SysOperLog.Delete-fm": "admin-删除操作日志", - "go-admin/app/admin/sys/apis.SysRole.GetList-fm": "admin-获取角色管理全部列表", - "go-admin/app/admin/sys/apis.SysUser.GetProfile-fm": "admin-获取系统登录用户信息", - "go-admin/app/admin/sys/apis.SysConfig.Delete-fm": "admin-删除配置管理", - "go-admin/app/app/user/apis.UserConf.Get-fm": "app-获取用户配置管理详情", + "go-admin/app/admin/sys/apis.SysApi.Sync-fm": "admin-同步接口数据", + "go-admin/app/admin/sys/apis.SysTables.Insert-fm": "admin-新增表管理", + "go-admin/app/admin/sys/apis.SysUser.Login-fm": "admin-登录系统", + "go-admin/app/app/user/apis.UserConf.GetPage-fm": "app-获取用户配置管理分页列表", + "go-admin/app/app/user/apis.UserConf.Update-fm": "app-更新用户配置管理", "go-admin/app/app/user/apis.UserCountryCode.GetPage-fm": "app-获取国家区号管理分页列表", + "go-admin/app/admin/sys/apis.SysApi.Update-fm": "admin-更新接口管理", + "go-admin/app/app/user/apis.User.Get-fm": "app-获取用户管理详情", + "go-admin/app/app/user/apis.UserCountryCode.Insert-fm": "app-新增国家区号管理", "go-admin/app/app/user/apis.UserLevel.Get-fm": "app-获取用户等级管理详情", "go-admin/app/app/user/apis.UserLevel.Export-fm": "app-导出用户等级管理", + "go-admin/app/plugins/content/apis.ContentCategory.Get-fm": "plugins-获取内容分类管理详情", + "go-admin/app/plugins/filemgr/apis.FilemgrApp.Update-fm": "plugins-更新APP管理", + "go-admin/app/admin/sys/apis.SysConfig.Insert-fm": "admin-新增配置管理", + "go-admin/app/admin/sys/apis.SysDictType.Insert-fm": "admin-新增字典类型", + "go-admin/app/admin/sys/apis.SysLoginLog.Delete-fm": "admin-删除登录日志", + "go-admin/app/admin/sys/apis.SysUser.Get-fm": "admin-获取系统用户管理详情", + "go-admin/app/app/user/apis.UserAccountLog.Get-fm": "app-获取账变记录详情", + "go-admin/app/app/user/apis.UserCountryCode.Export-fm": "app-导出国家区号管理", + "go-admin/app/plugins/content/apis.ContentAnnouncement.Get-fm": "plugins-获取公告管理详情", + "go-admin/app/plugins/filemgr/apis.FilemgrApp.Export-fm": "plugins-导出APP管理", + "go-admin/app/admin/sys/apis.SysUser.GetProfile-fm": "admin-获取系统登录用户信息", + "go-admin/app/app/user/apis.UserLevel.Insert-fm": "app-新增用户等级管理", "go-admin/app/app/user/apis.UserOperLog.Export-fm": "app-导出用户操作日志", + "go-admin/app/plugins/content/apis.ContentAnnouncement.Insert-fm": "plugins-新增公告管理", + "go-admin/app/plugins/content/apis.ContentArticle.GetPage-fm": "plugins-获取文章管理分页列表", + "go-admin/app/plugins/content/apis.ContentArticle.Export-fm": "plugins-导出文章管理", + "go-admin/app/plugins/msg/apis.MsgCode.Get-fm": "plugins-获取验证码管理详情", + "go-admin/app/admin/sys/apis.SysRole.UpdateDataScope-fm": "admin-更新角色管理数据权限", + "go-admin/app/admin/sys/apis.SysDictData.Delete-fm": "admin-删除字典数据", + "go-admin/app/admin/sys/apis.SysDictType.GetPage-fm": "admin-获取字典类型分页列表", + "go-admin/app/admin/sys/apis.SysMenu.Insert-fm": "admin-新增菜单管理", + "go-admin/app/admin/sys/apis.SysOperLog.GetPage-fm": "admin-获取操作日志分页列表", + "go-admin/app/admin/sys/apis.SysPost.GetTotalList-fm": "admin-获取岗位管理全部列表", "go-admin/app/plugins/content/apis.ContentAnnouncement.GetPage-fm": "plugins-获取公告管理分页列表", "go-admin/app/admin/sys/apis.SysDictData.Update-fm": "admin-更新字典数据", - "go-admin/app/admin/sys/apis.SysDictData.GetList-fm": "admin-获取字典数据全部列表", - "go-admin/app/admin/sys/apis.SysDictType.Update-fm": "admin-更新字典类型", - "go-admin/app/admin/sys/apis.SysTables.GetDBTablePage-fm": "admin-获取表管理的DB表分页列表", - "go-admin/app/admin/sys/apis.SysLoginLog.Get-fm": "admin-获取登录日志详情", - "go-admin/app/admin/sys/apis.SysUser.Login-fm": "admin-登录系统", - "go-admin/app/app/user/apis.UserConf.GetPage-fm": "app-获取用户配置管理分页列表", - "go-admin/app/plugins/content/apis.ContentArticle.Insert-fm": "plugins-新增文章管理", - "go-admin/app/plugins/content/apis.ContentArticle.Get-fm": "plugins-获取文章管理详情", - "go-admin/app/plugins/content/apis.ContentArticle.Export-fm": "plugins-导出文章管理", - "go-admin/app/plugins/filemgr/apis.FilemgrApp.Export-fm": "plugins-导出APP管理", + "go-admin/app/admin/sys/apis.SysUser.UpdateStatus-fm": "admin-更新系统用户状态", "go-admin/app/admin/sys/apis.SysPost.Get-fm": "admin-获取岗位管理详情", - "go-admin/app/app/user/apis.User.Insert-fm": "app-新增用户管理", - "go-admin/app/admin/sys/apis.SysDictType.GetList-fm": "admin-获取字典类型全部列表", - "go-admin/app/admin/sys/apis.SysLoginLog.Delete-fm": "admin-删除登录日志", - "go-admin/app/admin/sys/apis.SysOperLog.Get-fm": "admin-获取操作日志详情", - "go-admin/app/admin/sys/apis.SysUser.LogOut-fm": "admin-退出系统", - "go-admin/app/plugins/content/apis.ContentAnnouncement.Insert-fm": "plugins-新增公告管理", - "go-admin/app/admin/sys/apis.SysPost.GetPage-fm": "admin-获取岗位管理分页列表", - "go-admin/app/admin/sys/apis.SysRole.Delete-fm": "admin-删除角色管理", - "go-admin/app/admin/sys/apis.SysUser.GetPage-fm": "admin-获取系统用户管理分页列表", - "go-admin/app/plugins/content/apis.ContentAnnouncement.Export-fm": "plugins-导出公告管理", - "go-admin/app/admin/sys/apis.SysApi.GetList-fm": "admin-获取接口管理全部列表", - "go-admin/app/admin/sys/apis.SysApi.Update-fm": "admin-更新接口管理", + "go-admin/app/admin/sys/apis.SysUser.ResetPwd-fm": "admin-重置系统用户密码", + "go-admin/app/admin/sys/apis.SysDictData.Get-fm": "admin-获取字典数据详情", + "go-admin/app/app/user/apis.User.Update-fm": "app-更新用户管理", + "go-admin/app/app/user/apis.UserAccountLog.Export-fm": "app-导出账变记录", + "go-admin/app/plugins/filemgr/apis.FilemgrApp.GetPage-fm": "plugins-获取APP管理分页列表", + "go-admin/app/admin/sys/apis.SysApi.Get-fm": "admin-获取接口管理详情", + "go-admin/app/admin/sys/apis.SysDictType.Update-fm": "admin-更新字典类型", + "go-admin/app/admin/sys/apis.SysLoginLog.GetPage-fm": "admin-获取登录日志分页列表", + "go-admin/app/admin/sys/apis.SysMenu.Update-fm": "admin-更新菜单管理", + "go-admin/app/app/user/apis.UserOperLog.GetPage-fm": "app-获取用户操作日志分页列表", + "go-admin/app/plugins/content/apis.ContentCategory.Update-fm": "plugins-更新内容分类管理", + "go-admin/app/admin/sys/apis.SysDept.GetDeptTreeByRole-fm": "admin-根据角色获取部门", + "go-admin/app/admin/sys/apis.SysMenu.GetTreeList-fm": "admin-获取菜单管理树", + "go-admin/app/admin/sys/apis.SysRole.GetList-fm": "admin-获取角色管理全部列表", + "go-admin/app/admin/sys/apis.SysUser.Update-fm": "admin-更新系统用户管理", + "go-admin/app/admin/sys/apis.SysDictType.Get-fm": "admin-获取字典类型详情", "go-admin/app/admin/sys/apis.SysOperLog.Export-fm": "admin-导出操作日志", + "go-admin/app/admin/sys/apis.SysUser.UpdateProfileAvatar-fm": "admin-更新系统登录用户头像", + "go-admin/app/app/user/apis.UserAccountLog.GetPage-fm": "app-获取账变记录分页列表", + "go-admin/app/plugins/content/apis.ContentArticle.Insert-fm": "plugins-新增文章管理", + "go-admin/app/plugins/content/apis.ContentArticle.Update-fm": "plugins-更新文章管理", + "go-admin/app/admin/sys/apis.SysConfig.Delete-fm": "admin-删除配置管理", + "go-admin/app/admin/sys/apis.SysDept.Get-fm": "admin-获取部门管理详情", + "go-admin/app/admin/sys/apis.SysLoginLog.Export-fm": "admin-导出登录日志", + "go-admin/app/admin/sys/apis.SysUser.UpdateProfilePwd-fm": "admin-更新系统登录用户密码", "go-admin/app/admin/sys/apis.SysUser.GenCaptcha-fm": "admin-获取图形验证码", - "go-admin/app/app/user/apis.UserAccountLog.Export-fm": "app-导出账变记录", + "go-admin/app/app/user/apis.User.Insert-fm": "app-新增用户管理", + "go-admin/app/admin/sys/apis.SysDictData.GetPage-fm": "admin-获取字典数据分页列表", + "go-admin/app/admin/sys/apis.SysMenu.GetMenuRole-fm": "admin-根据角色获取菜单", + "go-admin/app/admin/sys/apis.Monitor.Ping-fm": "admin-ping测试", } diff --git a/app/admin/sys/models/sys_gen_column.go b/app/admin/sys/models/sys_gen_column.go index 92f285f5..62586547 100644 --- a/app/admin/sys/models/sys_gen_column.go +++ b/app/admin/sys/models/sys_gen_column.go @@ -1,6 +1,10 @@ package models -import "time" +import ( + "go-admin/core/config" + "go-admin/core/global" + "time" +) type SysGenColumn struct { Id int64 `gorm:"primaryKey;autoIncrement" json:"id"` @@ -21,7 +25,7 @@ type SysGenColumn struct { Sort int `gorm:"column:sort;" json:"sort"` Remark string `gorm:"column:remark;size:255;" json:"remark"` CreateBy int64 `gorm:"column:create_by;size:11;" json:"createBy"` - UpdateBy int64 `gorm:"column:update_By;size:11;" json:"updateBy"` + UpdateBy int64 `gorm:"column:update_by;size:11;" json:"updateBy"` CreatedAt *time.Time `json:"createdAt" gorm:"comment:创建时间"` UpdatedAt *time.Time `json:"updatedAt" gorm:"comment:最后更新时间"` } @@ -31,20 +35,23 @@ func (SysGenColumn) TableName() string { } type DBColumn struct { - TableSchema string `gorm:"column:TABLE_SCHEMA" json:"tableSchema"` - TBName string `gorm:"column:TABLE_NAME" json:"tableName"` - ColumnName string `gorm:"column:COLUMN_NAME" json:"columnName"` - ColumnDefault string `gorm:"column:COLUMN_DEFAULT" json:"columnDefault"` - IsNullable string `gorm:"column:IS_NULLABLE" json:"isNullable"` - DataType string `gorm:"column:DATA_TYPE" json:"dataType"` - CharacterMaximumLength string `gorm:"column:CHARACTER_MAXIMUM_LENGTH" json:"characterMaximumLength"` - CharacterSetName string `gorm:"column:CHARACTER_SET_NAME" json:"characterSetName"` - ColumnType string `gorm:"column:COLUMN_TYPE" json:"columnType"` - ColumnKey string `gorm:"column:COLUMN_KEY" json:"columnKey"` - Extra string `gorm:"column:EXTRA" json:"extra"` - ColumnComment string `gorm:"column:COLUMN_COMMENT" json:"columnComment"` + TableSchema string `gorm:"column:table_schema" json:"tableSchema"` + TBName string `gorm:"column:table_name" json:"tableName"` + ColumnName string `gorm:"column:column_name" json:"columnName"` + ColumnDefault string `gorm:"column:column_default" json:"columnDefault"` + IsNullable string `gorm:"column:is_nullable" json:"isNullable"` + DataType string `gorm:"column:data_type" json:"dataType"` + CharacterMaximumLength string `gorm:"column:character_maximum_length" json:"characterMaximumLength"` + CharacterSetName string `gorm:"column:character_set_name" json:"characterSetName"` + ColumnType string `gorm:"column:column_type" json:"columnType"` + ColumnKey string `gorm:"column:column_key" json:"columnKey"` + Extra string `gorm:"column:extra" json:"extra"` + ColumnComment string `gorm:"column:column_comment" json:"columnComment"` } func (DBColumn) TableName() string { - return "information_schema.columns" + if config.DatabaseConfig.Driver == global.DBDriverPostgres { + return "information_schema.columns" + } + return "information_schema.COLUMNS" } diff --git a/app/admin/sys/models/sys_gen_table.go b/app/admin/sys/models/sys_gen_table.go index 0ad223e8..12acf075 100644 --- a/app/admin/sys/models/sys_gen_table.go +++ b/app/admin/sys/models/sys_gen_table.go @@ -1,6 +1,10 @@ package models -import "time" +import ( + "go-admin/core/config" + "go-admin/core/global" + "time" +) type SysGenTable struct { Id int64 `gorm:"primaryKey;autoIncrement" json:"id"` //表编码 @@ -25,15 +29,18 @@ func (SysGenTable) TableName() string { } type DBTable struct { - TBName string `gorm:"column:TABLE_NAME" json:"tableName"` - Engine string `gorm:"column:ENGINE" json:"engine"` - TableRows string `gorm:"column:TABLE_ROWS" json:"tableRows"` - TableCollation string `gorm:"column:TABLE_COLLATION" json:"tableCollation"` - CreateTime *time.Time `gorm:"column:CREATE_TIME" json:"createTime"` - UpdateTime *time.Time `gorm:"column:UPDATE_TIME" json:"updateTime"` - TableComment string `gorm:"column:TABLE_COMMENT" json:"tableComment"` + TBName string `gorm:"column:table_name" json:"tableName"` + Engine string `gorm:"column:engine" json:"engine"` + TableRows string `gorm:"column:table_rows" json:"tableRows"` + TableCollation string `gorm:"column:table_collation" json:"tableCollation"` + CreateTime *time.Time `gorm:"column:create_time" json:"createTime"` + UpdateTime *time.Time `gorm:"column:update_time" json:"updateTime"` + TableComment string `gorm:"column:table_comment" json:"tableComment"` } func (DBTable) TableName() string { + if config.DatabaseConfig.Driver == global.DBDriverPostgres { + return "pg_catalog.pg_tables" + } return "information_schema.tables" } diff --git a/app/admin/sys/service/dto/sys_gen_table.go b/app/admin/sys/service/dto/sys_gen_table.go index 21fd440f..fed15707 100644 --- a/app/admin/sys/service/dto/sys_gen_table.go +++ b/app/admin/sys/service/dto/sys_gen_table.go @@ -61,8 +61,8 @@ type SysGenTableGenCodeReq struct { // ------------------ DBTable --------------- type DBTableQueryReq struct { dto.Pagination `search:"-"` - TableName string `form:"tableName" search:"type:contains;column:TABLE_NAME;table:tables"` - TableComment string `form:"tableComment" search:"type:contains;column:TABLE_COMMENT;table:tables"` + TableName string `form:"tableName" search:"type:contains;column:table_name;table:tables"` + TableComment string `form:"tableComment" search:"type:contains;column:table_comment;table:tables"` } func (m *DBTableQueryReq) GetNeedSearch() interface{} { diff --git a/app/admin/sys/service/sys_api.go b/app/admin/sys/service/sys_api.go index 50832e2b..bb239754 100644 --- a/app/admin/sys/service/sys_api.go +++ b/app/admin/sys/service/sys_api.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" @@ -74,10 +75,10 @@ func (e *SysApi) Get(id int64, p *middleware.DataPermission) (*models.SysApi, in err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -91,10 +92,10 @@ func (e *SysApi) QueryOne(queryCondition *dto.SysApiQueryReq, p *middleware.Data cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_config.go b/app/admin/sys/service/sys_config.go index b21611ff..8a08c5bf 100644 --- a/app/admin/sys/service/sys_config.go +++ b/app/admin/sys/service/sys_config.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/shopspring/decimal" "github.com/xuri/excelize/v2" @@ -71,10 +72,10 @@ func (e *SysConfig) Get(id int64, p *middleware.DataPermission) (*models.SysConf err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -88,10 +89,10 @@ func (e *SysConfig) QueryOne(queryCondition *dto.SysConfigQueryReq, p *middlewar cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -106,10 +107,10 @@ func (e *SysConfig) Count(c *dto.SysConfigQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil @@ -283,10 +284,10 @@ func (e *SysConfig) GetByKey(c *dto.SysConfigByKeyReq) (*dto.SysConfigByKeyResp, var data models.SysConfig resp := &dto.SysConfigByKeyResp{} err = e.Orm.Scopes().Table(data.TableName()).Where("config_key = ?", c.ConfigKey).First(resp).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return resp, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_dept.go b/app/admin/sys/service/sys_dept.go index b3a1dd49..74ffe726 100644 --- a/app/admin/sys/service/sys_dept.go +++ b/app/admin/sys/service/sys_dept.go @@ -1,6 +1,7 @@ package service import ( + "errors" "go-admin/app/admin/sys/models" baseLang "go-admin/config/base/lang" "go-admin/core/dto/service" @@ -54,10 +55,10 @@ func (e *SysDept) Get(id int64, p *middleware.DataPermission) (*models.SysDept, err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -71,10 +72,10 @@ func (e *SysDept) QueryOne(queryCondition *dto.SysDeptQueryReq, p *middleware.Da cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -89,10 +90,10 @@ func (e *SysDept) Count(c *dto.SysDeptQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_dict_data.go b/app/admin/sys/service/sys_dict_data.go index 30275856..bbe558b5 100644 --- a/app/admin/sys/service/sys_dict_data.go +++ b/app/admin/sys/service/sys_dict_data.go @@ -1,6 +1,7 @@ package service import ( + "errors" baseLang "go-admin/config/base/lang" "go-admin/core/dto/service" "go-admin/core/global" @@ -53,10 +54,10 @@ func (e *SysDictData) QueryOne(queryCondition *dto.SysDictDataQueryReq, p *middl cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -71,10 +72,10 @@ func (e *SysDictData) Count(c *dto.SysDictDataQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil @@ -89,10 +90,10 @@ func (e *SysDictData) Get(id int64, p *middleware.DataPermission) (*models.SysDi err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_dict_type.go b/app/admin/sys/service/sys_dict_type.go index 8120c109..26b3bbd1 100644 --- a/app/admin/sys/service/sys_dict_type.go +++ b/app/admin/sys/service/sys_dict_type.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" @@ -55,10 +56,10 @@ func (e *SysDictType) QueryOne(queryCondition *dto.SysDictTypeQueryReq, p *middl cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -73,10 +74,10 @@ func (e *SysDictType) Count(c *dto.SysDictTypeQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil @@ -91,10 +92,10 @@ func (e *SysDictType) Get(id int64, p *middleware.DataPermission) (*models.SysDi err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_gen_column.go b/app/admin/sys/service/sys_gen_column.go index b0eddaf2..8d486df1 100644 --- a/app/admin/sys/service/sys_gen_column.go +++ b/app/admin/sys/service/sys_gen_column.go @@ -1,11 +1,14 @@ package service import ( + "errors" "go-admin/app/admin/sys/models" "go-admin/app/admin/sys/service/dto" baseLang "go-admin/config/base/lang" + "go-admin/core/config" cDto "go-admin/core/dto" "go-admin/core/dto/service" + "go-admin/core/global" "go-admin/core/lang" "go-admin/core/middleware" "gorm.io/gorm" @@ -50,10 +53,10 @@ func (e *SysGenColumn) Get(id int64, p *middleware.DataPermission) (*models.SysG err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -136,16 +139,48 @@ func (e *SysGenColumn) Update(c *dto.SysGenColumnUpdateReq, p *middleware.DataPe } // GetDBColumnList admin-从数据库表中获取表字段列表 -func (e *SysGenColumn) GetDBColumnList(dbTableName string) ([]models.DBColumn, int, error) { - if len(dbTableName) <= 0 { +func (e *SysGenColumn) GetDBColumnList(tableName string) ([]models.DBColumn, int, error) { + if tableName == "" { return nil, baseLang.SysGenTableSelectCode, lang.MsgErr(baseLang.SysGenTableSelectCode, e.Lang) } + var err error var data []models.DBColumn - err := e.Orm.Where("TABLE_NAME in (?)", dbTableName).Find(&data).Error - if err != nil && err != gorm.ErrRecordNotFound { + + if config.DatabaseConfig.Driver == global.DBDriverPostgres { + err = e.Orm.Select(`table_schema, + table_name, + column_name, + column_default, + is_nullable, + data_type, + character_maximum_length, + NULL AS character_set_name, + udt_name AS column_type, + NULL AS column_key, + NULL AS extra, + col_description(format('%s.%s', table_schema, table_name)::regclass::oid, ordinal_position) AS column_comment`). + Where("table_name in (?)", tableName).Find(&data).Error + } else { + err = e.Orm.Select("TABLE_SCHEMA as table_schema,"+ + "TABLE_NAME as table_name,"+ + "COLUMN_NAME as column_name,"+ + "COLUMN_DEFAULT as column_default,"+ + "IS_NULLABLE as is_nullable,"+ + "DATA_TYPE as data_type,"+ + "CHARACTER_MAXIMUM_LENGTH as character_maximum_length,"+ + "CHARACTER_SET_NAME as character_set_name,"+ + "COLUMN_TYPE as column_type,"+ + "COLUMN_KEY as column_key,"+ + "EXTRA as extra,"+ + "COLUMN_COMMENT as column_comment"). + Where("table_schema= ? ", e.Orm.Migrator().CurrentDatabase()). + Where("TABLE_NAME in (?)", tableName).Find(&data).Error + } + + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_gen_table.go b/app/admin/sys/service/sys_gen_table.go index c472086b..93364450 100644 --- a/app/admin/sys/service/sys_gen_table.go +++ b/app/admin/sys/service/sys_gen_table.go @@ -3,6 +3,7 @@ package service import ( "archive/zip" "bytes" + "errors" "go-admin/config/base/constant" "go-admin/app/admin/sys/models" @@ -62,10 +63,10 @@ func (e *SysGenTable) Get(id int64, p *middleware.DataPermission) (*models.SysGe err := e.Orm.Preload("SysGenColumns").Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -79,10 +80,10 @@ func (e *SysGenTable) QueryOne(queryCondition *dto.SysGenTableQueryReq, p *middl cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -97,10 +98,10 @@ func (e *SysGenTable) Count(c *dto.SysGenTableQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil @@ -237,30 +238,57 @@ func (e *SysGenTable) Delete(ids []int64, p *middleware.DataPermission) (int, er // GetDBTablePage admin-获取表管理的DB表分页列表 func (e *SysGenTable) GetDBTablePage(c dto.DBTableQueryReq) ([]dto.DBTableResp, int64, int, error) { var list []models.DBTable - var data models.DBTable var count int64 - - err := e.Orm.Model(&data). - Scopes( - cDto.MakeCondition(c.GetNeedSearch()), - cDto.Paginate(c.GetPageSize(), c.GetPageIndex()), - ). - //Where("table_name not like 'admin_sys_%'"). - Where("table_name not in ('admin_sys_role_menu','admin_sys_role_dept','admin_sys_menu_api_rule','admin_sys_gen_column','admin_sys_casbin_rule')"). - Where("table_name not in (select table_name from admin_sys_gen_table)"). - Where("table_schema= ? ", e.Orm.Migrator().CurrentDatabase()). - Find(&list).Limit(-1).Offset(-1).Count(&count).Error + var err error + if config.DatabaseConfig.Driver == global.DBDriverPostgres { + subQuery := e.Orm.Model(&models.DBTable{}). + Select(`tablename AS table_name, + obj_description(('"' || tablename || '"')::regclass, 'pg_class') AS table_comment, + NULL::text AS create_time`). + Where("schemaname = 'public'") + + err = e.Orm.Table("(?) as tables", subQuery). + Scopes( + cDto.MakeCondition(c.GetNeedSearch()), + cDto.Paginate(c.GetPageSize(), c.GetPageIndex()), + ). + Where("tables.table_name not in ('admin_sys_role_menu','admin_sys_role_dept','admin_sys_menu_api_rule','admin_sys_gen_column','admin_sys_casbin_rule')"). + Where("tables.table_name not in (select table_name from admin_sys_gen_table)"). + Find(&list).Limit(-1).Offset(-1).Count(&count).Error + } else if config.DatabaseConfig.Driver == global.DBDriverMysql { + subQuery := e.Orm.Model(&models.DBTable{}). + Select("TABLE_NAME as table_name,"+ + "ENGINE as engine,TABLE_ROWS as table_rows,"+ + "TABLE_COLLATION as table_collation,"+ + "CREATE_TIME as create_time,"+ + "UPDATE_TIME as update_time,"+ + "TABLE_COMMENT as table_comment"). + Where("table_schema= ? ", e.Orm.Migrator().CurrentDatabase()) + + err = e.Orm.Table("(?) as tables", subQuery). + Scopes( + cDto.MakeCondition(c.GetNeedSearch()), + cDto.Paginate(c.GetPageSize(), c.GetPageIndex()), + ). + //Where("table_name not like 'admin_sys_%'"). + Where("tables.table_name not in ('admin_sys_role_menu','admin_sys_role_dept','admin_sys_menu_api_rule','admin_sys_gen_column','admin_sys_casbin_rule')"). + Where("tables.table_name not in (select table_name from admin_sys_gen_table)"). + Find(&list).Limit(-1).Offset(-1).Count(&count).Error + } if err != nil { return nil, 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - var respList []dto.DBTableResp + + // 构造响应 + respList := make([]dto.DBTableResp, 0, len(list)) for _, item := range list { - dbTableResp := dto.DBTableResp{} - dbTableResp.CreatedAt = dateutils.ConvertToStrByPrt(item.CreateTime, -1) - dbTableResp.TableName = item.TBName - dbTableResp.TableComment = item.TableComment - respList = append(respList, dbTableResp) + respList = append(respList, dto.DBTableResp{ + TableName: item.TBName, + TableComment: item.TableComment, + CreatedAt: dateutils.ConvertToStrByPrt(item.CreateTime, -1), + }) } + return respList, count, baseLang.SuccessCode, nil } @@ -275,6 +303,7 @@ func (e *SysGenTable) genTables(dbTableNames []string) ([]models.SysGenTable, in } var sysTables []models.SysGenTable + now := time.Now() for _, table := range dbTables { sysTable := models.SysGenTable{} @@ -350,31 +379,50 @@ func (e *SysGenTable) genTables(dbTableNames []string) ([]models.SysGenTable, in sysColumn.JsonField += strings.ToUpper(strStart) + strend } } - if strings.Contains(column.ColumnKey, "PR") { + //must cmp pk at first + if config.DatabaseConfig.Driver == global.DBDriverPostgres { + var isPK bool + sql := ` + SELECT EXISTS ( + SELECT 1 + FROM pg_index i + JOIN pg_attribute a ON a.attrelid = i.indrelid AND a.attnum = ANY(i.indkey) + WHERE i.indrelid = ?::regclass + AND i.indisprimary + AND a.attname = ? + ) AS is_primary_key; + ` + _ = e.Orm.Raw(sql, table.TBName, column.ColumnName).Scan(&isPK).Error + if isPK { + sysColumn.IsPk = global.SysStatusOk + } + } else if strings.Contains(column.ColumnKey, "PR") { sysColumn.IsPk = global.SysStatusOk } sysColumn.IsRequired = global.SysStatusNotOk if strings.Contains(column.IsNullable, "NO") { sysColumn.IsRequired = global.SysStatusOk } - if strings.Contains(column.ColumnType, "int") { + if strings.Contains(column.ColumnType, "int") || strings.Contains(column.ColumnType, "BIGINT") { sysColumn.GoType = "int64" sysColumn.HtmlType = "numInput" } else if strings.Contains(column.ColumnType, "decimal") { sysColumn.GoType = "decimal.Decimal" sysColumn.HtmlType = "input" - } else if strings.Contains(column.ColumnType, "timestamp") { - sysColumn.GoType = "*time.Time" - sysColumn.HtmlType = "datetime" - } else if strings.Contains(column.ColumnType, "datetime") { + } else if strings.Contains(column.ColumnType, "timestamp") || strings.Contains(column.ColumnType, "datetime") { sysColumn.GoType = "*time.Time" sysColumn.HtmlType = "datetime" } else { sysColumn.GoType = "string" sysColumn.HtmlType = "input" } + sysColumn.CreatedAt = &now + sysColumn.UpdatedAt = &now sysTable.SysGenColumns = append(sysTable.SysGenColumns, sysColumn) } + + sysTable.CreatedAt = &now + sysTable.UpdatedAt = &now sysTables = append(sysTables, sysTable) } return sysTables, baseLang.SuccessCode, nil @@ -382,18 +430,39 @@ func (e *SysGenTable) genTables(dbTableNames []string) ([]models.SysGenTable, in // getDBTableList admin-从数据库中获取表指定表的完整结构 func (e *SysGenTable) getDBTableList(tableNames []string) ([]models.DBTable, int, error) { - if len(tableNames) <= 0 { + if len(tableNames) == 0 { return nil, baseLang.SysGenTableSelectCode, lang.MsgErr(baseLang.SysGenTableSelectCode, e.Lang) } - var data []models.DBTable - err := e.Orm.Where("TABLE_NAME in (?)", tableNames).Find(&data).Error - if err != nil && err != gorm.ErrRecordNotFound { + + var list []models.DBTable + var err error + + if config.DatabaseConfig.Driver == global.DBDriverPostgres { + err = e.Orm.Select(`tablename AS table_name, + obj_description(('"' || tablename || '"')::regclass, 'pg_class') AS table_comment, + NULL::text AS create_time`). + Where("schemaname = 'public'"). + Where("tablename IN (?)", tableNames). + Find(&list).Error + } else if config.DatabaseConfig.Driver == global.DBDriverMysql { + err = e.Orm.Select("TABLE_NAME as table_name,"+ + "ENGINE as engine,TABLE_ROWS as table_rows,"+ + "TABLE_COLLATION as table_collation,"+ + "CREATE_TIME as create_time,"+ + "UPDATE_TIME as update_time,"+ + "TABLE_COMMENT as table_comment"). + Where("table_schema= ? ", e.Orm.Migrator().CurrentDatabase()). + Where("TABLE_NAME in (?)", tableNames).Find(&list).Error + } + + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } - return data, baseLang.SuccessCode, nil + + return list, baseLang.SuccessCode, nil } // Preview admin-预览表管理的代码页面 diff --git a/app/admin/sys/service/sys_login_log.go b/app/admin/sys/service/sys_login_log.go index a0b998f0..93f5a139 100644 --- a/app/admin/sys/service/sys_login_log.go +++ b/app/admin/sys/service/sys_login_log.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" "go-admin/app/admin/sys/models" @@ -53,10 +54,10 @@ func (e *SysLoginLog) Get(id int64, p *middleware.DataPermission) (*models.SysLo err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_menu.go b/app/admin/sys/service/sys_menu.go index 4695b3d8..b0a15dee 100644 --- a/app/admin/sys/service/sys_menu.go +++ b/app/admin/sys/service/sys_menu.go @@ -60,10 +60,10 @@ func (e *SysMenu) Get(id int64, p *middleware.DataPermission) (*models.SysMenu, err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).Preload("SysApi").First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } apis := make([]int64, 0) @@ -82,10 +82,10 @@ func (e *SysMenu) GetWithRoles(id int64) (*models.SysMenu, int, error) { } data := &models.SysMenu{} err := e.Orm.Preload("SysRole").First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -99,10 +99,10 @@ func (e *SysMenu) QueryOne(queryCondition *dto.SysMenuQueryReq, p *middleware.Da cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -117,10 +117,10 @@ func (e *SysMenu) Count(c *dto.SysMenuQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil @@ -284,9 +284,6 @@ func (e *SysMenu) Update(c *dto.SysMenuUpdateReq, p *middleware.DataPermission, if c.MenuType != "" && data.MenuType != c.MenuType { menuUpdates["menu_type"] = c.MenuType } - if c.MenuType != "" && data.MenuType != c.MenuType { - menuUpdates["menu_type"] = c.MenuType - } if c.ParentId >= 0 && data.ParentId != c.ParentId { menuUpdates["parent_id"] = c.ParentId } diff --git a/app/admin/sys/service/sys_oper_log.go b/app/admin/sys/service/sys_oper_log.go index 5500654d..195a533f 100644 --- a/app/admin/sys/service/sys_oper_log.go +++ b/app/admin/sys/service/sys_oper_log.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" "go-admin/app/admin/sys/models" @@ -52,10 +53,10 @@ func (e *SysOperLog) Get(id int64, p *middleware.DataPermission) (*models.SysOpe err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_post.go b/app/admin/sys/service/sys_post.go index 24652574..996f93a1 100644 --- a/app/admin/sys/service/sys_post.go +++ b/app/admin/sys/service/sys_post.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" @@ -73,10 +74,10 @@ func (e *SysPost) Get(id int64, p *middleware.DataPermission) (*models.SysPost, err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -90,10 +91,10 @@ func (e *SysPost) QueryOne(queryCondition *dto.SysPostQueryReq, p *middleware.Da cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -108,10 +109,10 @@ func (e *SysPost) Count(c *dto.SysPostQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_role.go b/app/admin/sys/service/sys_role.go index ea78d061..3d66dbe8 100644 --- a/app/admin/sys/service/sys_role.go +++ b/app/admin/sys/service/sys_role.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "go-admin/config/base/constant" mycasbin "go-admin/core/casbin" @@ -77,10 +78,10 @@ func (e *SysRole) Get(id int64, p *middleware.DataPermission) (*models.SysRole, err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } @@ -105,10 +106,10 @@ func (e *SysRole) QueryOne(queryCondition *dto.SysRoleQueryReq, p *middleware.Da cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).Preload("SysMenu").First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -123,10 +124,10 @@ func (e *SysRole) Count(c *dto.SysRoleQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/admin/sys/service/sys_user.go b/app/admin/sys/service/sys_user.go index b14a5c80..cd27ffa8 100644 --- a/app/admin/sys/service/sys_user.go +++ b/app/admin/sys/service/sys_user.go @@ -1,6 +1,7 @@ package service import ( + "errors" "github.com/gin-gonic/gin" "github.com/mssola/user_agent" "go-admin/config/base/constant" @@ -62,10 +63,10 @@ func (e *SysUser) Get(id int64, p *middleware.DataPermission) (*models.SysUser, err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -79,10 +80,10 @@ func (e *SysUser) QueryOne(queryCondition *dto.SysUserQueryReq, p *middleware.Da cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -97,10 +98,10 @@ func (e *SysUser) Count(c *dto.SysUserQueryReq) (int64, int, error) { cDto.MakeCondition(c.GetNeedSearch()), ).Limit(-1).Offset(-1). Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil @@ -413,10 +414,10 @@ func (e *SysUser) GetProfile(userId int64) (*dto.SysUserResp, int, error) { } user := &models.SysUser{} err := e.Orm.Preload("Dept").Preload("Post").Preload("Role").First(user, userId).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err != nil && err == gorm.ErrRecordNotFound { + if err != nil && errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.SysUserNoExistCode, lang.MsgErr(baseLang.SysUserNoExistCode, e.Lang) } @@ -529,10 +530,10 @@ func (e *SysUser) LoginVerify(login *dto.LoginReq) (*models.SysUser, int, error) status = []string{global.SysStatusOk, global.SysStatusNotOk} } err := e.Orm.Preload("Dept").Preload("Post").Preload("Role").Where("username = ? and status in (?)", login.Username, status).First(user).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err != nil && err == gorm.ErrRecordNotFound { + if err != nil && errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.SysUserNoExistCode, lang.MsgErr(baseLang.SysUserNoExistCode, e.Lang) } if !strutils.CompareHashAndPassword(user.Password, login.Password) { diff --git a/app/app/user/models/user_account_log.go b/app/app/user/models/user_account_log.go index 0350fc6a..7ab77202 100644 --- a/app/app/user/models/user_account_log.go +++ b/app/app/user/models/user_account_log.go @@ -17,7 +17,7 @@ type UserAccountLog struct { CreateBy int64 `json:"createBy" gorm:"column:create_by;type:int;comment:创建者"` CreatedAt *time.Time `json:"createdAt" gorm:"column:created_at;type:datetime;comment:创建时间"` UpdateBy int64 `json:"updateBy" gorm:"column:update_by;type:int;comment:更新者"` - UpdatedDate *time.Time `json:"updatedDate" gorm:"column:updated_date;type:datetime;comment:更新时间"` + UpdatedAt *time.Time `json:"updatedAt" gorm:"column:updated_at;type:datetime;comment:更新时间"` Remarks string `json:"remarks" gorm:"column:remarks;type:varchar(500);comment:备注信息"` User *User `json:"user" gorm:"foreignkey:user_id"` } diff --git a/app/app/user/service/dto/user.go b/app/app/user/service/dto/user.go index e090bd95..f0e8690d 100644 --- a/app/app/user/service/dto/user.go +++ b/app/app/user/service/dto/user.go @@ -11,7 +11,6 @@ type UserQueryReq struct { dto.Pagination `search:"-"` BeginCreatedAt string `form:"beginCreatedAt" search:"type:gte;column:created_at;table:app_user" comment:"创建时间"` EndCreatedAt string `form:"endCreatedAt" search:"type:lte;column:created_at;table:app_user" comment:"创建时间"` - Id int64 `form:"id" search:"type:exact;column:id;table:app_user" comment:"用户编号"` LevelId int64 `form:"levelId" search:"type:exact;column:level_id;table:app_user" comment:"用户等级编号"` LevelIds []int64 `form:"levelId" search:"type:exact;column:level_id;table:app_user" comment:"用户等级编号"` UserName string `form:"userName" search:"type:exact;column:user_name;table:app_user" comment:"用户昵称"` diff --git a/app/app/user/service/dto/user_account_log.go b/app/app/user/service/dto/user_account_log.go index 1fb9c027..88fc9b0b 100644 --- a/app/app/user/service/dto/user_account_log.go +++ b/app/app/user/service/dto/user_account_log.go @@ -9,7 +9,6 @@ import ( type UserAccountLogQueryReq struct { dto.Pagination `search:"-"` - UserId int64 `form:"userId" search:"type:exact;column:user_id;table:app_user_account_log" comment:"用户编号"` MoneyType string `form:"moneyType" search:"type:exact;column:money_type;table:app_user_account_log" comment:"金额类型 1:余额 "` ChangeType string `form:"changeType" search:"type:exact;column:change_type;table:app_user_account_log" comment:"帐变类型(1-类型1)"` BeginCreatedAt string `form:"beginCreatedAt" search:"type:gte;column:created_at;table:app_user_account_log" comment:"创建时间"` @@ -31,7 +30,7 @@ type UserAccountLogOrder struct { CreateByOrder int64 `form:"createByOrder" search:"type:order;column:create_by;table:app_user_account_log"` CreatedAtOrder *time.Time `form:"createdAtOrder" search:"type:order;column:created_at;table:app_user_account_log"` UpdateByOrder int64 `form:"updateByOrder" search:"type:order;column:update_by;table:app_user_account_log"` - UpdatedDateOrder *time.Time `form:"updatedDateOrder" search:"type:order;column:updated_date;table:app_user_account_log"` + UpdatedAtOrder *time.Time `form:"updatedAtOrder" search:"type:order;column:updated_at;table:app_user_account_log"` RemarksOrder string `form:"remarksOrder" search:"type:order;column:remarks;table:app_user_account_log"` } diff --git a/app/app/user/service/dto/user_conf.go b/app/app/user/service/dto/user_conf.go index c93e6ee0..ee2a99d6 100644 --- a/app/app/user/service/dto/user_conf.go +++ b/app/app/user/service/dto/user_conf.go @@ -8,7 +8,6 @@ import ( type UserConfQueryReq struct { dto.Pagination `search:"-"` - UserId int64 `form:"userId" search:"type:exact;column:user_id;table:app_user_conf" comment:"用户编号"` CanLogin string `form:"canLogin" search:"type:exact;column:can_login;table:app_user_conf" comment:"1-允许登陆;2-不允许登陆"` BeginCreatedAt string `form:"beginCreatedAt" search:"type:gte;column:created_at;table:app_user_conf" comment:"创建时间"` EndCreatedAt string `form:"endCreatedAt" search:"type:lte;column:created_at;table:app_user_conf" comment:"创建时间"` diff --git a/app/app/user/service/dto/user_oper_log.go b/app/app/user/service/dto/user_oper_log.go index f20726e5..1efc9b56 100644 --- a/app/app/user/service/dto/user_oper_log.go +++ b/app/app/user/service/dto/user_oper_log.go @@ -10,7 +10,6 @@ type UserOperLogQueryReq struct { dto.Pagination `search:"-"` ActionType string `form:"actionType" search:"type:exact;column:action_type;table:app_user_oper_log" comment:"用户行为类型"` ByType string `form:"byType" search:"type:exact;column:by_type;table:app_user_oper_log" comment:"更新用户类型 1-app用户 2-后台用户"` - UserId int64 `form:"userId" search:"type:exact;column:user_id;table:app_user_oper_log" comment:"用户编号"` BeginCreatedAt string `form:"beginCreatedAt" search:"type:gte;column:created_at;table:app_user_oper_log" comment:"创建时间"` EndCreatedAt string `form:"endCreatedAt" search:"type:lte;column:created_at;table:app_user_oper_log" comment:"创建时间"` ShowInfo bool `form:"-" search:"-" comment:"是否明文显示加密信息"` diff --git a/app/app/user/service/user.go b/app/app/user/service/user.go index 959c7d45..e07cf4a0 100644 --- a/app/app/user/service/user.go +++ b/app/app/user/service/user.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" adminService "go-admin/app/admin/sys/service" @@ -58,7 +59,7 @@ func (e *User) GetPage(c *dto.UserQueryReq, p *middleware.DataPermission) ([]mod if err != nil { return nil, 0, respCode, err } - c.ParentId = m.ParentId + c.ParentId = m.Id } err := e.Orm.Preload("UserLevel").Order("created_at desc").Model(&data). @@ -115,10 +116,10 @@ func (e *User) Get(id int64, p *middleware.DataPermission) (*models.User, int, e err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } if data.Mobile != "" { @@ -137,10 +138,10 @@ func (e *User) QueryOne(queryCondition *dto.UserQueryReq, p *middleware.DataPerm cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -166,10 +167,10 @@ func (e *User) Count(queryCondition *dto.UserQueryReq) (int64, int, error) { Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/app/user/service/user_account_log.go b/app/app/user/service/user_account_log.go index acba7099..37c05147 100644 --- a/app/app/user/service/user_account_log.go +++ b/app/app/user/service/user_account_log.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" adminService "go-admin/app/admin/sys/service" @@ -48,7 +49,7 @@ func (e *UserAccountLog) GetPage(c *dto.UserAccountLogQueryReq, p *middleware.Da } } - err = e.Orm.Preload("User").Order("created_at desc").Model(&data). + err = e.Orm.Joins("User").Order("created_at desc").Model(&data). Scopes( cDto.MakeCondition(c.GetNeedSearch()), cDto.Paginate(c.GetPageSize(), c.GetPageIndex()), @@ -58,29 +59,42 @@ func (e *UserAccountLog) GetPage(c *dto.UserAccountLogQueryReq, p *middleware.Da return nil, 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - for index, item := range list { - if item.User != nil && item.User.Mobile != "" { - mobile, err := encrypt.AesDecrypt(item.User.Mobile, []byte(config.AuthConfig.Secret)) + cacheUsers := map[int64]*models.User{} + for _, u := range list { + if u.User == nil || cacheUsers[u.User.Id] != nil { + continue + } + cacheUsers[u.User.Id] = u.User + if u.User.Mobile != "" { + mobile, err := encrypt.AesDecrypt(u.User.Mobile, []byte(config.AuthConfig.Secret)) if err == nil { if c.ShowInfo { - list[index].User.Mobile = mobile + cacheUsers[u.User.Id].Mobile = mobile } else { - list[index].User.Mobile = strutils.HidePartStr(mobile, 3) + cacheUsers[u.User.Id].Mobile = strutils.HidePartStr(mobile, 3) } } } - if item.User != nil && item.User.Email != "" { - email, err := encrypt.AesDecrypt(item.User.Email, []byte(config.AuthConfig.Secret)) + if u.User.Email != "" { + email, err := encrypt.AesDecrypt(u.User.Email, []byte(config.AuthConfig.Secret)) if err == nil { if c.ShowInfo { - list[index].User.Email = email + cacheUsers[u.User.Id].Email = email } else { - list[index].User.Email = strutils.HidePartStr(email, 5) + cacheUsers[u.User.Id].Email = strutils.HidePartStr(email, 5) } } } } + + for index, item := range list { + if item.User == nil || cacheUsers[item.User.Id] == nil { + continue + } + list[index].User.Mobile = cacheUsers[item.User.Id].Mobile + list[index].User.Email = cacheUsers[item.User.Id].Email + } return list, count, baseLang.SuccessCode, nil } @@ -93,10 +107,10 @@ func (e *UserAccountLog) Get(id int64, p *middleware.DataPermission) (*models.Us err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -109,10 +123,10 @@ func (e *UserAccountLog) QueryOne(queryCondition *dto.UserAccountLogQueryReq, p cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -126,10 +140,10 @@ func (e *UserAccountLog) Count(queryCondition *dto.UserAccountLogQueryReq) (int6 Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/app/user/service/user_conf.go b/app/app/user/service/user_conf.go index e305c9f3..947787a1 100644 --- a/app/app/user/service/user_conf.go +++ b/app/app/user/service/user_conf.go @@ -1,6 +1,7 @@ package service import ( + "errors" "go-admin/app/app/user/models" "go-admin/app/app/user/service/dto" "go-admin/config/base/constant" @@ -58,29 +59,42 @@ func (e *UserConf) GetPage(c *dto.UserConfQueryReq, p *middleware.DataPermission return nil, 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - for index, item := range list { - if item.User != nil && item.User.Mobile != "" { - mobile, err := encrypt.AesDecrypt(item.User.Mobile, []byte(config.AuthConfig.Secret)) + cacheUsers := map[int64]*models.User{} + for _, u := range list { + if u.User == nil || cacheUsers[u.User.Id] != nil { + continue + } + cacheUsers[u.User.Id] = u.User + if u.User.Mobile != "" { + mobile, err := encrypt.AesDecrypt(u.User.Mobile, []byte(config.AuthConfig.Secret)) if err == nil { if c.ShowInfo { - list[index].User.Mobile = mobile + cacheUsers[u.User.Id].Mobile = mobile } else { - list[index].User.Mobile = strutils.HidePartStr(mobile, 3) + cacheUsers[u.User.Id].Mobile = strutils.HidePartStr(mobile, 3) } } } - if item.User != nil && item.User.Email != "" { - email, err := encrypt.AesDecrypt(item.User.Email, []byte(config.AuthConfig.Secret)) + if u.User.Email != "" { + email, err := encrypt.AesDecrypt(u.User.Email, []byte(config.AuthConfig.Secret)) if err == nil { if c.ShowInfo { - list[index].User.Email = email + cacheUsers[u.User.Id].Email = email } else { - list[index].User.Email = strutils.HidePartStr(email, 5) + cacheUsers[u.User.Id].Email = strutils.HidePartStr(email, 5) } } } } + + for index, item := range list { + if item.User == nil || cacheUsers[item.User.Id] == nil { + continue + } + list[index].User.Mobile = cacheUsers[item.User.Id].Mobile + list[index].User.Email = cacheUsers[item.User.Id].Email + } return list, count, baseLang.SuccessCode, nil } @@ -93,10 +107,10 @@ func (e *UserConf) Get(id int64, p *middleware.DataPermission) (*models.UserConf err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -109,10 +123,10 @@ func (e *UserConf) QueryOne(queryCondition *dto.UserConfQueryReq, p *middleware. cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -126,10 +140,10 @@ func (e *UserConf) Count(queryCondition *dto.UserConfQueryReq) (int64, int, erro Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/app/user/service/user_country_code.go b/app/app/user/service/user_country_code.go index b31ad95b..6e0e838f 100644 --- a/app/app/user/service/user_country_code.go +++ b/app/app/user/service/user_country_code.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" adminService "go-admin/app/admin/sys/service" @@ -54,10 +55,10 @@ func (e *UserCountryCode) Get(id int64, p *middleware.DataPermission) (*models.U err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -70,10 +71,10 @@ func (e *UserCountryCode) QueryOne(queryCondition *dto.UserCountryCodeQueryReq, cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -87,10 +88,10 @@ func (e *UserCountryCode) Count(queryCondition *dto.UserCountryCodeQueryReq) (in Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/app/user/service/user_level.go b/app/app/user/service/user_level.go index 17d2dfa3..9b6c4dd4 100644 --- a/app/app/user/service/user_level.go +++ b/app/app/user/service/user_level.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" adminService "go-admin/app/admin/sys/service" @@ -55,10 +56,10 @@ func (e *UserLevel) Get(id int64, p *middleware.DataPermission) (*models.UserLev err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -71,10 +72,10 @@ func (e *UserLevel) QueryOne(queryCondition *dto.UserLevelQueryReq, p *middlewar cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -88,10 +89,10 @@ func (e *UserLevel) Count(queryCondition *dto.UserLevelQueryReq) (int64, int, er Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/app/user/service/user_oper_log.go b/app/app/user/service/user_oper_log.go index 3481bba5..97daad0c 100644 --- a/app/app/user/service/user_oper_log.go +++ b/app/app/user/service/user_oper_log.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" adminService "go-admin/app/admin/sys/service" @@ -63,30 +64,42 @@ func (e *UserOperLog) GetPage(c *dto.UserOperLogQueryReq, p *middleware.DataPerm return nil, 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - for index, item := range list { - if item.User != nil && item.User.Mobile != "" { - mobile, err := encrypt.AesDecrypt(item.User.Mobile, []byte(config.AuthConfig.Secret)) - + cacheUsers := map[int64]*models.User{} + for _, u := range list { + if u.User == nil || cacheUsers[u.User.Id] != nil { + continue + } + cacheUsers[u.User.Id] = u.User + if u.User.Mobile != "" { + mobile, err := encrypt.AesDecrypt(u.User.Mobile, []byte(config.AuthConfig.Secret)) if err == nil { if c.ShowInfo { - list[index].User.Mobile = mobile + cacheUsers[u.User.Id].Mobile = mobile } else { - list[index].User.Mobile = strutils.HidePartStr(mobile, 3) + cacheUsers[u.User.Id].Mobile = strutils.HidePartStr(mobile, 3) } } } - if item.User != nil && item.User.Email != "" { - email, err := encrypt.AesDecrypt(item.User.Email, []byte(config.AuthConfig.Secret)) + + if u.User.Email != "" { + email, err := encrypt.AesDecrypt(u.User.Email, []byte(config.AuthConfig.Secret)) if err == nil { if c.ShowInfo { - list[index].User.Email = email + cacheUsers[u.User.Id].Email = email } else { - list[index].User.Email = strutils.HidePartStr(email, 5) + cacheUsers[u.User.Id].Email = strutils.HidePartStr(email, 5) } - } } } + + for index, item := range list { + if item.User == nil || cacheUsers[item.User.Id] == nil { + continue + } + list[index].User.Mobile = cacheUsers[item.User.Id].Mobile + list[index].User.Email = cacheUsers[item.User.Id].Email + } return list, count, baseLang.SuccessCode, nil } @@ -99,10 +112,10 @@ func (e *UserOperLog) Get(id int64, p *middleware.DataPermission) (*models.UserO err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -115,10 +128,10 @@ func (e *UserOperLog) QueryOne(queryCondition *dto.UserOperLogQueryReq, p *middl cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -132,10 +145,10 @@ func (e *UserOperLog) Count(queryCondition *dto.UserOperLogQueryReq) (int64, int Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/plugins/content/service/content_announcement.go b/app/plugins/content/service/content_announcement.go index c6aeea5e..104ebdd1 100644 --- a/app/plugins/content/service/content_announcement.go +++ b/app/plugins/content/service/content_announcement.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/microcosm-cc/bluemonday" "github.com/xuri/excelize/v2" @@ -55,10 +56,10 @@ func (e *ContentAnnouncement) Get(id int64, p *middleware.DataPermission) (*mode err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -71,10 +72,10 @@ func (e *ContentAnnouncement) QueryOne(queryCondition *dto.ContentAnnouncementQu cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -88,10 +89,10 @@ func (e *ContentAnnouncement) Count(queryCondition *dto.ContentAnnouncementQuery Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/plugins/content/service/content_article.go b/app/plugins/content/service/content_article.go index 31846d0b..ea639b49 100644 --- a/app/plugins/content/service/content_article.go +++ b/app/plugins/content/service/content_article.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/microcosm-cc/bluemonday" "github.com/xuri/excelize/v2" @@ -57,10 +58,10 @@ func (e *ContentArticle) Get(id int64, p *middleware.DataPermission) (*models.Co err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -73,10 +74,10 @@ func (e *ContentArticle) QueryOne(queryCondition *dto.ContentArticleQueryReq, p cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -90,10 +91,10 @@ func (e *ContentArticle) Count(queryCondition *dto.ContentArticleQueryReq) (int6 Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/plugins/content/service/content_category.go b/app/plugins/content/service/content_category.go index 2fe09f42..34ad9823 100644 --- a/app/plugins/content/service/content_category.go +++ b/app/plugins/content/service/content_category.go @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" @@ -57,10 +58,10 @@ func (e *ContentCategory) Get(id int64, p *middleware.DataPermission) (*models.C err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -73,10 +74,10 @@ func (e *ContentCategory) QueryOne(queryCondition *dto.ContentCategoryQueryReq, cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -90,10 +91,10 @@ func (e *ContentCategory) Count(queryCondition *dto.ContentCategoryQueryReq) (in Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/plugins/filemgr/service/filemgr_app.go b/app/plugins/filemgr/service/filemgr_app.go index 7f25db66..860a789a 100644 --- a/app/plugins/filemgr/service/filemgr_app.go +++ b/app/plugins/filemgr/service/filemgr_app.go @@ -74,10 +74,10 @@ func (e *FilemgrApp) Get(id int64, p *middleware.DataPermission) (*models.Filemg err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -90,10 +90,10 @@ func (e *FilemgrApp) QueryOne(queryCondition *dto.FilemgrAppQueryReq, p *middlew cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -107,10 +107,10 @@ func (e *FilemgrApp) Count(queryCondition *dto.FilemgrAppQueryReq) (int64, int, Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app/plugins/msg/service/msg_code.go b/app/plugins/msg/service/msg_code.go index 30ab8a29..a6645a4b 100644 --- a/app/plugins/msg/service/msg_code.go +++ b/app/plugins/msg/service/msg_code.go @@ -1,6 +1,7 @@ package service import ( + "errors" "go-admin/app/plugins/msg/models" "go-admin/app/plugins/msg/service/dto" baseLang "go-admin/config/base/lang" @@ -50,10 +51,10 @@ func (e *MsgCode) Get(id int64, p *middleware.DataPermission) (*models.MsgCode, err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -66,10 +67,10 @@ func (e *MsgCode) QueryOne(queryCondition *dto.MsgCodeQueryReq, p *middleware.Da cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -83,10 +84,10 @@ func (e *MsgCode) Count(queryCondition *dto.MsgCodeQueryReq) (int64, int, error) Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/app.sql b/app_mysql.sql similarity index 98% rename from app.sql rename to app_mysql.sql index 0083f7ba..2336fcf9 100644 --- a/app.sql +++ b/app_mysql.sql @@ -27,11 +27,11 @@ CREATE TABLE `admin_sys_api` ( `path` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '地址', `api_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '接口类型', `method` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '请求类型', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `remark` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='接口管理'; @@ -226,11 +226,11 @@ CREATE TABLE `admin_sys_config` ( `config_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'ConfigValue', `config_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'ConfigType', `is_frontend` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否前台', - `remark` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Remark', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Remark', `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='配置管理'; @@ -267,8 +267,8 @@ CREATE TABLE `admin_sys_dept` ( `status` tinyint DEFAULT NULL, `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='部门管理'; @@ -302,8 +302,8 @@ CREATE TABLE `admin_sys_dict_data` ( `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=95 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='字典数据管理'; @@ -416,8 +416,8 @@ CREATE TABLE `admin_sys_dict_type` ( `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='字典类型管理'; @@ -478,8 +478,8 @@ CREATE TABLE `admin_sys_gen_column` ( `dict_type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, `sort` bigint DEFAULT NULL, `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', PRIMARY KEY (`id`) USING BTREE @@ -540,7 +540,7 @@ INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_com INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_comment`, `column_type`, `go_type`, `go_field`, `json_field`, `is_pk`, `is_required`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `remark`, `created_at`, `updated_at`, `create_by`, `update_by`) VALUES (49, 3, 'remarks', '备注信息', 'varchar(500)', 'string', 'Remarks', 'remarks', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_comment`, `column_type`, `go_type`, `go_field`, `json_field`, `is_pk`, `is_required`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `remark`, `created_at`, `updated_at`, `create_by`, `update_by`) VALUES (50, 3, 'status', '状态(1正常 2-异常)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_comment`, `column_type`, `go_type`, `go_field`, `json_field`, `is_pk`, `is_required`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `remark`, `created_at`, `updated_at`, `create_by`, `update_by`) VALUES (51, 3, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); -INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_comment`, `column_type`, `go_type`, `go_field`, `json_field`, `is_pk`, `is_required`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `remark`, `created_at`, `updated_at`, `create_by`, `update_by`) VALUES (52, 3, 'updated_date', '更新时间', 'datetime', '*time.Time', 'UpdatedDate', 'updatedDate', '2', '1', '2', '2', 'EQ', 'datetime', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_comment`, `column_type`, `go_type`, `go_field`, `json_field`, `is_pk`, `is_required`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `remark`, `created_at`, `updated_at`, `create_by`, `update_by`) VALUES (52, 3, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_comment`, `column_type`, `go_type`, `go_field`, `json_field`, `is_pk`, `is_required`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `remark`, `created_at`, `updated_at`, `create_by`, `update_by`) VALUES (53, 3, 'user_id', '用户编号', 'int', 'int64', 'UserId', 'userId', '2', '1', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_comment`, `column_type`, `go_type`, `go_field`, `json_field`, `is_pk`, `is_required`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `remark`, `created_at`, `updated_at`, `create_by`, `update_by`) VALUES (54, 4, 'can_login', '1-允许登陆;2-不允许登陆', 'char(1)', 'string', 'CanLogin', 'canLogin', '2', '1', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); INSERT INTO `admin_sys_gen_column` (`id`, `table_id`, `column_name`, `column_comment`, `column_type`, `go_type`, `go_field`, `json_field`, `is_pk`, `is_required`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `remark`, `created_at`, `updated_at`, `create_by`, `update_by`) VALUES (55, 4, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); @@ -794,8 +794,8 @@ CREATE TABLE `admin_sys_gen_table` ( `business_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '业务名', `is_plugin` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '1' COMMENT '是否插件 1-是 2-否', `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', `create_by` bigint DEFAULT NULL COMMENT '创建者', `update_by` bigint DEFAULT NULL COMMENT '更新者', PRIMARY KEY (`id`) USING BTREE @@ -846,8 +846,8 @@ CREATE TABLE `admin_sys_login_log` ( `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '登录时间', `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态 1-登录 2-退出', `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', PRIMARY KEY (`id`) @@ -882,8 +882,8 @@ CREATE TABLE `admin_sys_menu` ( `is_frame` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否内嵌 1-是 2-否', `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='菜单管理'; @@ -1200,8 +1200,8 @@ CREATE TABLE `admin_sys_oper_log` ( `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', `latency_time` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '耗时', `user_agent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'ua', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', PRIMARY KEY (`id`) @@ -1235,8 +1235,8 @@ CREATE TABLE `admin_sys_post` ( `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗位管理'; @@ -1263,8 +1263,8 @@ CREATE TABLE `admin_sys_role` ( `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态 1-正常 2-停用', `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `created_at` datetime(3) DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='角色管理'; @@ -1344,8 +1344,8 @@ CREATE TABLE `admin_sys_user` ( `status` varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态', `create_by` int DEFAULT NULL COMMENT '创建者', `update_by` int DEFAULT NULL COMMENT '更新者', - `created_at` datetime DEFAULT NULL COMMENT '创建时间', - `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='系统用户管理'; @@ -1380,8 +1380,8 @@ CREATE TABLE `app_user` ( `tree_sorts` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '0' COMMENT '所有级别排序号', `tree_leaf` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '0' COMMENT '是否最末级', `tree_level` int NOT NULL DEFAULT '0' COMMENT '层次级别', - `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '状态(1-正常 2-异常)', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '1' COMMENT '状态(1-正常 2-异常)', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', `create_by` int NOT NULL DEFAULT '0' COMMENT '创建者', `update_by` int NOT NULL DEFAULT '0' COMMENT '更新者', `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', @@ -1412,9 +1412,9 @@ CREATE TABLE `app_user_account_log` ( `change_type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '1' COMMENT '帐变类型(1-类型1)', `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '状态(1正常 2-异常)', `create_by` int NOT NULL COMMENT '创建者', - `created_at` datetime NOT NULL COMMENT '创建时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` int NOT NULL COMMENT '更新者', - `updated_date` datetime NOT NULL COMMENT '更新时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', PRIMARY KEY (`id`), KEY `idx_qyc_user_status` (`status`) @@ -1424,15 +1424,15 @@ CREATE TABLE `app_user_account_log` ( -- Records of app_user_account_log -- ---------------------------- BEGIN; -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (1, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (2, 2, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (3, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (4, 3, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (5, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (6, 2, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (7, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (8, 3, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); -INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_date`, `remarks`) VALUES (9, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (1, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (2, 2, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (3, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (4, 3, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (5, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (6, 2, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (7, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (8, 3, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO `app_user_account_log` (`id`, `user_id`, `change_money`, `before_money`, `after_money`, `money_type`, `change_type`, `status`, `create_by`, `created_at`, `update_by`, `updated_at`, `remarks`) VALUES (9, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); COMMIT; -- ---------------------------- @@ -1443,12 +1443,12 @@ CREATE TABLE `app_user_conf` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int NOT NULL COMMENT '用户id', `can_login` char(1) NOT NULL DEFAULT '0' COMMENT '1-允许登陆;2-不允许登陆', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', - `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '状态(1-正常 2-异常)\n', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '1' COMMENT '状态(1-正常 2-异常)\n', `create_by` int NOT NULL DEFAULT '0' COMMENT '创建者', `update_by` int NOT NULL DEFAULT '0' COMMENT '更新者', - `created_at` datetime NOT NULL COMMENT '创建时间', - `updated_at` datetime NOT NULL COMMENT '更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=COMPACT COMMENT='用户配置'; @@ -1469,8 +1469,8 @@ CREATE TABLE `app_user_country_code` ( `id` int NOT NULL AUTO_INCREMENT, `country` varchar(64) NOT NULL DEFAULT '' COMMENT '国家或地区', `code` varchar(12) NOT NULL DEFAULT '' COMMENT '区号', - `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '状态(1-可用 2-停用)', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '1' COMMENT '状态(1-可用 2-停用)', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', `create_by` int NOT NULL DEFAULT '0' COMMENT '创建者', `update_by` int NOT NULL DEFAULT '0' COMMENT '更新者', `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', @@ -1506,12 +1506,12 @@ CREATE TABLE `app_user_level` ( `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '等级名称', `level_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '等级类型', `level` int NOT NULL COMMENT '等级', - `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '状态(1-正常 2-异常)', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '1' COMMENT '状态(1-正常 2-异常)', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', `create_by` int NOT NULL DEFAULT '0' COMMENT '创建者', `update_by` int NOT NULL DEFAULT '0' COMMENT '更新者', - `created_at` datetime NOT NULL COMMENT '创建时间', - `updated_at` datetime NOT NULL COMMENT '更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='用户等级'; @@ -1532,12 +1532,12 @@ CREATE TABLE `app_user_oper_log` ( `user_id` int NOT NULL DEFAULT '1' COMMENT '用户编号', `action_type` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '用户行为类型', `by_type` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '更新用户类型 1-app用户 2-后台用户', - `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '状态(1-正常 2-异常)', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '1' COMMENT '状态(1-正常 2-异常)', `create_by` int NOT NULL DEFAULT '0' COMMENT '创建者', `update_by` int NOT NULL DEFAULT '0' COMMENT '更新者', `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC COMMENT='用户关键行为日志表'; @@ -1563,12 +1563,12 @@ CREATE TABLE `plugins_content_announcement` ( `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标题', `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '内容', `num` int DEFAULT NULL COMMENT '阅读次数', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '0' COMMENT '状态(0正常 1删除 2停用 3冻结)', `create_by` int NOT NULL COMMENT '创建者', `update_by` int NOT NULL COMMENT '更新者', - `updated_at` datetime NOT NULL COMMENT '更新时间', - `created_at` datetime NOT NULL COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='公告管理'; @@ -1589,12 +1589,12 @@ CREATE TABLE `plugins_content_article` ( `cate_id` int DEFAULT NULL COMMENT '分类编号', `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称', `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '内容', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '0' COMMENT '状态(1-正常 2-异常)', `create_by` int NOT NULL COMMENT '创建者', `update_by` int NOT NULL COMMENT '更新者', - `updated_at` datetime NOT NULL COMMENT '更新时间', - `created_at` datetime NOT NULL COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='文章管理'; @@ -1613,11 +1613,11 @@ CREATE TABLE `plugins_content_category` ( `id` int NOT NULL AUTO_INCREMENT COMMENT '主键编码', `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称', `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '0' COMMENT '状态(1-正常 2-异常)', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', `create_by` int NOT NULL COMMENT '创建者', `update_by` int NOT NULL COMMENT '更新者', - `updated_at` datetime NOT NULL COMMENT '更新时间', - `created_at` datetime NOT NULL COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='文章分类管理'; @@ -1642,12 +1642,12 @@ CREATE TABLE `plugins_filemgr_app` ( `local_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '本地地址', `download_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '下载类型(1-本地 2-外链 3-oss )', `download_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '下载地址(download_type=1使用)', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息', `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '状态(1-已发布 2-待发布)\n', `create_by` int NOT NULL COMMENT '创建者', - `created_at` datetime NOT NULL COMMENT '创建时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` int NOT NULL COMMENT '更新者', - `updated_at` datetime NOT NULL COMMENT '更新时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC COMMENT='app升级管理'; @@ -1670,12 +1670,12 @@ CREATE TABLE `plugins_msg_code` ( `user_id` int NOT NULL COMMENT '用户编号', `code` varchar(12) NOT NULL DEFAULT '0' COMMENT '验证码', `code_type` char(1) NOT NULL DEFAULT '0' COMMENT '验证码类型 1-邮箱;2-短信', - `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注异常', - `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '验证码状态 1-发送成功 2-发送失败', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注异常', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '1' COMMENT '验证码状态 1-发送成功 2-发送失败', `create_by` int NOT NULL DEFAULT '0' COMMENT '创建者', `update_by` int NOT NULL DEFAULT '0' COMMENT '更新者', - `created_at` datetime NOT NULL COMMENT '创建时间', - `updated_at` datetime NOT NULL COMMENT '更新时间', + `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 ROW_FORMAT=COMPACT COMMENT='验证码记录'; diff --git a/app_pgsql.sql b/app_pgsql.sql new file mode 100644 index 00000000..b77daeb3 --- /dev/null +++ b/app_pgsql.sql @@ -0,0 +1,2130 @@ +/* + Navicat Premium Dump SQL + + Source Server : my-pgsql + Source Server Type : PostgreSQL + Source Server Version : 160001 (160001) + Source Host : 127.0.0.1:5432 + Source Catalog : bitxxadmin + Source Schema : public + + Target Server Type : PostgreSQL + Target Server Version : 160001 (160001) + File Encoding : 65001 + + Date: 10/07/2025 14:24:45 +*/ + +-- ---------------------------- +-- Table structure for admin_sys_api +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_api"; +CREATE TABLE "public"."admin_sys_api" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "description" varchar(256) DEFAULT NULL::character varying, + "path" varchar(128) DEFAULT NULL::character varying, + "api_type" varchar(16) DEFAULT NULL::character varying, + "method" varchar(32) DEFAULT NULL::character varying, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "create_by" BIGINT, + "update_by" BIGINT, + "remark" varchar(255) DEFAULT NULL::character varying +) +; +ALTER TABLE "public"."admin_sys_api" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_api"."id" IS '主键编码'; +COMMENT ON COLUMN "public"."admin_sys_api"."description" IS '功能描述'; +COMMENT ON COLUMN "public"."admin_sys_api"."path" IS '地址'; +COMMENT ON COLUMN "public"."admin_sys_api"."api_type" IS '接口类型'; +COMMENT ON COLUMN "public"."admin_sys_api"."method" IS '请求类型'; +COMMENT ON COLUMN "public"."admin_sys_api"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_api"."updated_at" IS '最后更新时间'; +COMMENT ON COLUMN "public"."admin_sys_api"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_api"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_api"."remark" IS '备注'; +COMMENT ON TABLE "public"."admin_sys_api" IS '接口管理'; + +-- ---------------------------- +-- Records of admin_sys_api +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (1, 'admin-获取字典类型分页列表', '/admin-api/v1/admin/sys/sys-dict/type', '1', 'GET', '2024-12-13 20:37:31', '2024-12-14 14:30:12', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (2, 'admin-获取字典类型全部列表', '/admin-api/v1/admin/sys/sys-dict/type/option-select', '1', 'GET', '2024-12-13 20:37:31', '2024-12-14 14:58:06', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (3, 'admin-导出字典类型', '/admin-api/v1/admin/sys/sys-dict/type/export', '1', 'GET', '2024-12-13 20:37:32', '2024-12-14 14:32:48', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (4, 'admin-获取字典类型详情', '/admin-api/v1/admin/sys/sys-dict/type/:id', '1', 'GET', '2024-12-13 20:37:32', '2024-12-14 14:32:25', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (5, 'admin-获取字典数据分页列表', '/admin-api/v1/admin/sys/sys-dict/data', '1', 'GET', '2024-12-13 20:37:32', '2024-12-14 14:36:52', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (6, 'admin-获取字典数据全部列表', '/admin-api/v1/admin/sys/sys-dict/data/select', '1', 'GET', '2024-12-13 20:37:32', '2024-12-15 22:40:03', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (7, 'admin-获取字典数据详情', '/admin-api/v1/admin/sys/sys-dict/data/:id', '1', 'GET', '2024-12-13 20:37:32', '2024-12-14 14:38:35', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (9, 'admin-获取部门管理树', '/admin-api/v1/admin/sys/sys-dept/dept-tree', '1', 'GET', '2024-12-13 20:37:33', '2024-12-14 14:18:07', 0, 1, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (10, 'admin-根据角色获取部门', '/admin-api/v1/admin/sys/sys-dept/role-dept-tree-select/:roleId', '1', 'GET', '2024-12-13 20:37:33', '2024-12-14 14:05:10', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (11, 'admin-获取部门管理详情', '/admin-api/v1/admin/sys/sys-dept/:id', '1', 'GET', '2024-12-13 20:37:33', '2024-12-14 14:18:07', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (12, 'admin-获取菜单管理树', '/admin-api/v1/admin/sys/sys-menu', '1', 'GET', '2024-12-13 20:37:33', '2024-12-14 14:13:21', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (13, 'admin-根据角色获取菜单', '/admin-api/v1/admin/sys/sys-menu/menu-role', '1', 'GET', '2024-12-13 20:37:33', '2024-12-15 22:39:47', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (14, 'admin-获取全部菜单以及选中的菜单编号', '/admin-api/v1/admin/sys/sys-menu/role-menu-tree-select/:roleId', '1', 'GET', '2024-12-13 20:37:33', '2024-12-14 14:00:05', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (15, 'admin-获取菜单管理详情', '/admin-api/v1/admin/sys/sys-menu/:id', '1', 'GET', '2024-12-13 20:37:34', '2024-12-14 14:12:33', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (16, 'admin-获取服务器信息', '/admin-api/v1/admin/sys/sys-monitor', '1', 'GET', '2024-12-13 20:37:34', '2024-12-14 15:12:52', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (17, 'admin-普罗米监控', '/admin-api/v1/admin/sys/sys-monitor/prom', '1', 'GET', '2024-12-13 20:37:34', '2024-12-15 22:38:58', 0, 1, '未使用'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (18, 'admin-ping', '/admin-api/v1/admin/sys/sys-monitor/ping', '1', 'GET', '2024-12-13 20:37:34', '2024-12-15 22:39:10', 0, 1, '未使用'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (20, 'admin-获取表管理分页列表', '/admin-api/v1/admin/sys/sys-table', '1', 'GET', '2024-12-13 20:37:35', '2024-12-13 21:45:39', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (21, 'admin-表管理下载代码', '/admin-api/v1/admin/sys/sys-table/gen/download/:id', '1', 'GET', '2024-12-13 20:37:35', '2024-12-14 14:52:44', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (22, 'admin-表管理中生成菜单数据', '/admin-api/v1/admin/sys/sys-table/gen/db/:id', '1', 'GET', '2024-12-13 20:37:35', '2024-12-14 14:53:37', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (23, 'admin-生成表管理的代码', '/admin-api/v1/admin/sys/sys-table/gen/:id', '1', 'GET', '2024-12-13 20:37:35', '2024-12-14 14:52:39', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (24, 'admin-获取表管理的DB表分页列表', '/admin-api/v1/admin/sys/sys-table/db-tables', '1', 'GET', '2024-12-13 20:37:35', '2024-12-15 22:16:01', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (25, 'admin-预览表管理的代码页面', '/admin-api/v1/admin/sys/sys-table/preview/:id', '1', 'GET', '2024-12-13 20:37:35', '2024-12-14 14:47:12', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (26, 'admin-获取表管理详情', '/admin-api/v1/admin/sys/sys-table/:id', '1', 'GET', '2024-12-13 20:37:36', '2024-12-14 14:58:06', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (27, 'admin-获取接口管理分页列表', '/admin-api/v1/admin/sys/sys-api', '1', 'GET', '2024-12-13 20:37:36', '2024-12-14 13:06:50', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (28, 'admin-同步接口数据', '/admin-api/v1/admin/sys/sys-api/sync', '1', 'GET', '2024-12-13 20:37:36', '2024-12-14 13:10:41', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (30, 'admin-获取接口管理全部列表', '/admin-api/v1/admin/sys/sys-api/list', '1', 'GET', '2024-12-13 20:37:36', '2024-12-14 14:13:21', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (31, 'admin-导出接口管理', '/admin-api/v1/admin/sys/sys-api/export', '1', 'GET', '2024-12-13 20:37:36', '2024-12-14 14:22:31', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (32, 'admin-获取接口管理详情', '/admin-api/v1/admin/sys/sys-api/:id', '1', 'GET', '2024-12-13 20:37:37', '2024-12-14 13:07:22', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (33, 'admin-获取配置管理分页列表', '/admin-api/v1/admin/sys/sys-config', '1', 'GET', '2024-12-13 20:37:37', '2024-12-14 14:33:31', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (34, 'admin-导出配置管理', '/admin-api/v1/admin/sys/sys-config/export', '1', 'GET', '2024-12-13 20:37:37', '2024-12-14 14:34:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (36, 'admin-根据Key获取配置值', '/admin-api/v1/admin/sys/sys-config/key/:configKey', '1', 'GET', '2024-12-13 20:37:37', '2024-12-15 22:38:41', 0, 1, '未使用'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (37, 'admin-获取配置管理详情', '/admin-api/v1/admin/sys/sys-config/:id', '1', 'GET', '2024-12-13 20:37:37', '2024-12-14 14:34:00', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (38, 'admin-获取岗位管理分页列表', '/admin-api/v1/admin/sys/sys-post', '1', 'GET', '2024-12-13 20:37:38', '2024-12-14 14:24:08', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (39, 'admin-获取岗位管理全部列表', '/admin-api/v1/admin/sys/sys-post/list', '1', 'GET', '2024-12-13 20:37:38', '2024-12-14 13:50:46', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (40, 'admin-导出岗位管理', '/admin-api/v1/admin/sys/sys-post/export', '1', 'GET', '2024-12-13 20:37:38', '2024-12-13 20:37:38', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (41, 'admin-获取岗位管理详情', '/admin-api/v1/admin/sys/sys-post/:id', '1', 'GET', '2024-12-13 20:37:38', '2024-12-14 14:28:12', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (42, 'admin-获取系统用户管理分页列表', '/admin-api/v1/admin/sys/sys-user', '1', 'GET', '2024-12-13 20:37:38', '2024-12-14 13:14:41', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (43, 'admin-退出系统', '/admin-api/v1/admin/sys/sys-user/logout', '1', 'GET', '2024-12-13 20:37:38', '2024-12-15 22:38:26', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (44, 'admin-获取系统登录用户信息', '/admin-api/v1/admin/sys/sys-user/profile', '1', 'GET', '2024-12-13 20:37:39', '2024-12-15 22:37:54', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (45, 'admin-获取系统用户管理详情', '/admin-api/v1/admin/sys/sys-user/:id', '1', 'GET', '2024-12-13 20:37:39', '2024-12-14 13:50:46', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (46, 'admin-获取登录日志分页列表', '/admin-api/v1/admin/sys/sys-login-log', '1', 'GET', '2024-12-13 20:37:39', '2024-12-14 14:35:28', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (47, 'admin-导出登录日志', '/admin-api/v1/admin/sys/sys-login-log/export', '1', 'GET', '2024-12-13 20:37:39', '2024-12-14 14:36:01', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (48, 'admin-获取登录日志详情', '/admin-api/v1/admin/sys/sys-login-log/:id', '1', 'GET', '2024-12-13 20:37:39', '2024-12-15 22:38:15', 0, 1, '未使用'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (49, 'admin-获取操作日志分页列表', '/admin-api/v1/admin/sys/sys-oper-log', '1', 'GET', '2024-12-13 20:37:40', '2024-12-14 14:39:13', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (50, 'admin-导出操作日志', '/admin-api/v1/admin/sys/sys-oper-log/export', '1', 'GET', '2024-12-13 20:37:40', '2024-12-13 21:41:12', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (51, 'admin-获取操作日志详情', '/admin-api/v1/admin/sys/sys-oper-log/:id', '1', 'GET', '2024-12-13 20:37:40', '2024-12-15 22:37:36', 0, 1, '未使用'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (52, 'admin-获取角色管理分页列表', '/admin-api/v1/admin/sys/sys-role', '1', 'GET', '2024-12-13 20:37:40', '2024-12-14 13:52:04', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (53, 'admin-获取角色管理全部列表', '/admin-api/v1/admin/sys/sys-role/list', '1', 'GET', '2024-12-13 20:37:40', '2024-12-14 13:50:46', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (54, 'admin-获取角色管理详情', '/admin-api/v1/admin/sys/sys-role/:id', '1', 'GET', '2024-12-13 20:37:40', '2024-12-14 14:05:10', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (55, 'app-获取用户管理分页列表', '/admin-api/v1/app/user/user', '3', 'GET', '2024-12-13 20:37:41', '2024-12-14 15:16:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (56, 'app-获取国家区号管理分页列表', '/admin-api/v1/app/user/user-country-code', '3', 'GET', '2024-12-13 20:37:41', '2024-12-14 15:16:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (57, 'app-导出国家区号管理', '/admin-api/v1/app/user/user-country-code/export', '3', 'GET', '2024-12-13 20:37:41', '2024-12-14 12:51:44', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (58, 'app-获取国家区号管理详情', '/admin-api/v1/app/user/user-country-code/:id', '3', 'GET', '2024-12-13 20:37:41', '2024-12-14 12:51:23', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (59, 'app-获取用户配置管理分页列表', '/admin-api/v1/app/user/user-conf', '3', 'GET', '2024-12-13 20:37:41', '2024-12-14 15:16:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (60, 'app-获取用户配置管理详情', '/admin-api/v1/app/user/user-conf/:id', '3', 'GET', '2024-12-13 20:37:41', '2024-12-14 15:16:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (61, 'app-获取账变记录分页列表', '/admin-api/v1/app/user/user-account-log', '3', 'GET', '2024-12-13 20:37:42', '2024-12-14 12:52:00', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (62, 'app-导出账变记录', '/admin-api/v1/app/user/user-account-log/export', '3', 'GET', '2024-12-13 20:37:42', '2024-12-14 12:52:11', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (63, 'app-获取账变记录详情', '/admin-api/v1/app/user/user-account-log/:id', '3', 'GET', '2024-12-13 20:37:42', '2024-12-15 22:37:25', 0, 1, '未使用'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (64, 'app-获取用户等级管理分页列表', '/admin-api/v1/app/user/user-level', '3', 'GET', '2024-12-13 20:37:42', '2024-12-14 15:16:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (65, 'app-导出用户等级管理', '/admin-api/v1/app/user/user-level/export', '3', 'GET', '2024-12-13 20:37:42', '2024-12-14 15:16:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (66, 'app-获取用户等级管理详情', '/admin-api/v1/app/user/user-level/:id', '3', 'GET', '2024-12-13 20:37:42', '2024-12-14 12:49:29', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (67, 'app-获取用户操作日志分页列表', '/admin-api/v1/app/user/user-oper-log', '3', 'GET', '2024-12-13 20:37:43', '2024-12-14 12:50:33', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (68, 'app-导出用户操作日志', '/admin-api/v1/app/user/user-oper-log/export', '3', 'GET', '2024-12-13 20:37:43', '2024-12-14 12:50:48', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (69, 'app-获取用户操作日志详情', '/admin-api/v1/app/user/user-oper-log/:id', '3', 'GET', '2024-12-13 20:37:43', '2024-12-15 22:37:16', 0, 1, '未使用'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (70, 'app-导出用户管理', '/admin-api/v1/app/user/user/export', '3', 'GET', '2024-12-13 20:37:43', '2024-12-13 20:56:34', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (71, 'app-获取用户管理详情', '/admin-api/v1/app/user/user/:id', '3', 'GET', '2024-12-13 20:37:43', '2024-12-14 12:48:02', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (72, 'plugins-获取公告管理分页列表', '/admin-api/v1/plugins/content/content-announcement', '2', 'GET', '2024-12-13 20:37:44', '2024-12-14 13:03:46', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (73, 'plugins-导出公告管理', '/admin-api/v1/plugins/content/content-announcement/export', '2', 'GET', '2024-12-13 20:37:44', '2024-12-13 21:06:33', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (74, 'plugins-获取公告管理详情', '/admin-api/v1/plugins/content/content-announcement/:id', '2', 'GET', '2024-12-13 20:37:44', '2024-12-14 13:04:08', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (75, 'plugins-获取文章管理分页列表', '/admin-api/v1/plugins/content/content-article', '2', 'GET', '2024-12-13 20:37:44', '2024-12-14 13:02:56', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (76, 'plugins-导出文章管理', '/admin-api/v1/plugins/content/content-article/export', '2', 'GET', '2024-12-13 20:37:44', '2024-12-13 21:04:27', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (77, 'plugins-获取文章管理详情', '/admin-api/v1/plugins/content/content-article/:id', '2', 'GET', '2024-12-13 20:37:44', '2024-12-14 13:03:18', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (78, 'plugins-获取内容分类管理分页列表', '/admin-api/v1/plugins/content/content-category', '2', 'GET', '2024-12-13 20:37:45', '2024-12-14 13:01:47', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (79, 'plugins-导出内容分类管理', '/admin-api/v1/plugins/content/content-category/export', '2', 'GET', '2024-12-13 20:37:45', '2024-12-14 13:02:34', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (80, 'plugins-获取内容分类管理详情', '/admin-api/v1/plugins/content/content-category/:id', '2', 'GET', '2024-12-13 20:37:45', '2024-12-14 13:02:14', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (81, 'plugins-获取APP管理分页列表', '/admin-api/v1/plugins/filemgr/filemgr-app', '2', 'GET', '2024-12-13 20:37:45', '2024-12-14 13:04:41', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (82, 'plugins-导出APP管理', '/admin-api/v1/plugins/filemgr/filemgr-app/export', '2', 'GET', '2024-12-13 20:37:45', '2024-12-13 21:08:56', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (83, 'plugins-获取APP管理详情', '/admin-api/v1/plugins/filemgr/filemgr-app/:id', '2', 'GET', '2024-12-13 20:37:45', '2024-12-15 22:15:04', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (84, 'plugins-获取验证码管理分页列表', '/admin-api/v1/plugins/msg/msg-code', '2', 'GET', '2024-12-13 20:37:46', '2024-12-14 13:05:37', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (85, 'plugins-获取验证码管理详情', '/admin-api/v1/plugins/msg/msg-code/:id', '2', 'GET', '2024-12-13 20:37:46', '2024-12-15 22:36:18', 0, 1, '未使用'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (86, 'admin-获取图形验证码', '/admin-api/v1/captcha', '1', 'GET', '2024-12-13 20:37:46', '2024-12-15 22:36:26', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (87, '静态文件', '/admin-api/files/*filepath', '1', 'GET', '2024-12-13 20:37:46', '2024-12-15 22:36:57', 0, 1, '静态路由,该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (88, '静态文件2', '/static/*filepath', '1', 'GET', '2024-12-13 20:37:46', '2024-12-15 22:37:05', 0, 1, '静态路由,该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (89, 'admin-新增字典数据', '/admin-api/v1/admin/sys/sys-dict/data', '1', 'POST', '2024-12-13 20:37:46', '2024-12-14 14:38:04', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (90, 'admin-新增字典类型', '/admin-api/v1/admin/sys/sys-dict/type', '1', 'POST', '2024-12-13 20:37:47', '2024-12-14 14:31:05', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (91, 'admin-添加部门管理', '/admin-api/v1/admin/sys/sys-dept', '1', 'POST', '2024-12-13 20:37:47', '2024-12-14 14:17:17', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (92, 'admin-新增系统用户管理', '/admin-api/v1/admin/sys/sys-user', '1', 'POST', '2024-12-13 20:37:47', '2024-12-14 13:43:52', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (93, 'admin-更新系统登录用户头像', '/admin-api/v1/admin/sys/sys-user/profile/avatar', '1', 'POST', '2024-12-13 20:37:47', '2024-12-15 22:35:54', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (94, 'admin-新增配置管理', '/admin-api/v1/admin/sys/sys-config', '1', 'POST', '2024-12-13 20:37:47', '2024-12-14 14:33:44', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (95, 'admin-新增表管理', '/admin-api/v1/admin/sys/sys-table', '1', 'POST', '2024-12-13 20:37:48', '2024-12-15 22:16:01', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (96, 'admin-新增菜单管理', '/admin-api/v1/admin/sys/sys-menu', '1', 'POST', '2024-12-13 20:37:48', '2024-12-14 14:13:21', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (97, 'admin-新增岗位管理', '/admin-api/v1/admin/sys/sys-post', '1', 'POST', '2024-12-13 20:37:48', '2024-12-14 14:27:41', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (98, 'admin-新增角色管理', '/admin-api/v1/admin/sys/sys-role', '1', 'POST', '2024-12-13 20:37:48', '2024-12-14 13:56:24', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (99, 'app-新增用户管理', '/admin-api/v1/app/user/user', '3', 'POST', '2024-12-13 20:37:48', '2024-12-14 12:47:50', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (100, 'app-新增国家区号管理', '/admin-api/v1/app/user/user-country-code', '3', 'POST', '2024-12-13 20:37:48', '2024-12-14 12:51:13', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (101, 'app-新增用户等级管理', '/admin-api/v1/app/user/user-level', '3', 'POST', '2024-12-13 20:37:49', '2024-12-14 12:49:18', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (102, 'plugins-新增公告管理', '/admin-api/v1/plugins/content/content-announcement', '2', 'POST', '2024-12-13 20:37:49', '2024-12-14 13:03:58', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (103, 'plugins-新增文章管理', '/admin-api/v1/plugins/content/content-article', '2', 'POST', '2024-12-13 20:37:49', '2024-12-14 13:03:09', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (104, 'plugins-新增内容分类管理详情', '/admin-api/v1/plugins/content/content-category', '2', 'POST', '2024-12-13 20:37:49', '2024-12-14 13:02:03', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (105, 'plugins-新增APP管理', '/admin-api/v1/plugins/filemgr/filemgr-app', '2', 'POST', '2024-12-13 20:37:49', '2024-12-15 22:14:53', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (106, 'plugins-上传APP', '/admin-api/v1/plugins/filemgr/filemgr-app/upload', '2', 'POST', '2024-12-13 20:37:49', '2024-12-15 22:15:04', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (107, 'admin-登录系统', '/admin-api/v1/login', '1', 'POST', '2024-12-13 20:37:50', '2024-12-15 22:35:12', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (108, 'admin-更新系统登录用户信息', '/admin-api/v1/admin/sys/sys-user/profile', '1', 'PUT', '2024-12-13 20:37:50', '2024-12-15 22:35:35', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (109, 'admin-更新系统登录用户密码', '/admin-api/v1/admin/sys/sys-user/profile/pwd', '1', 'PUT', '2024-12-13 20:37:50', '2024-12-15 22:35:39', 0, 1, '该接口无需角色校验'); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (110, 'admin-重置系统用户密码', '/admin-api/v1/admin/sys/sys-user/pwd-reset', '1', 'PUT', '2024-12-13 20:37:50', '2024-12-14 13:46:43', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (111, 'admin-更新系统用户状态', '/admin-api/v1/admin/sys/sys-user/update-status', '1', 'PUT', '2024-12-13 20:37:50', '2024-12-14 13:50:46', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (112, 'admin-更新系统用户管理', '/admin-api/v1/admin/sys/sys-user/:id', '1', 'PUT', '2024-12-13 20:37:50', '2024-12-14 13:50:46', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (113, 'admin-更新字典数据', '/admin-api/v1/admin/sys/sys-dict/data/:id', '1', 'PUT', '2024-12-13 20:37:51', '2024-12-14 14:38:35', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (114, 'admin-更新字典类型', '/admin-api/v1/admin/sys/sys-dict/type/:id', '1', 'PUT', '2024-12-13 20:37:51', '2024-12-14 14:32:25', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (115, 'admin-更新部门管理', '/admin-api/v1/admin/sys/sys-dept/:id', '1', 'PUT', '2024-12-13 20:37:51', '2024-12-14 14:18:07', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (116, 'admin-更新角色管理状态', '/admin-api/v1/admin/sys/sys-role/role-status', '1', 'PUT', '2024-12-13 20:37:51', '2024-12-14 14:00:05', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (117, 'admin-更新角色管理数据权限', '/admin-api/v1/admin/sys/sys-role/role-data-scope', '1', 'PUT', '2024-12-13 20:37:51', '2024-12-14 14:05:10', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (118, 'admin-更新角色管理', '/admin-api/v1/admin/sys/sys-role/:id', '1', 'PUT', '2024-12-13 20:37:51', '2024-12-14 14:00:05', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (119, 'admin-更新接口管理', '/admin-api/v1/admin/sys/sys-api/:id', '1', 'PUT', '2024-12-13 20:37:52', '2024-12-14 13:07:22', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (120, 'admin-更新配置管理', '/admin-api/v1/admin/sys/sys-config/:id', '1', 'PUT', '2024-12-13 20:37:52', '2024-12-14 14:34:00', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (121, 'admin-更新表管理', '/admin-api/v1/admin/sys/sys-table/:id', '1', 'PUT', '2024-12-13 20:37:52', '2024-12-14 14:58:06', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (122, 'admin-更新菜单管理', '/admin-api/v1/admin/sys/sys-menu/:id', '1', 'PUT', '2024-12-13 20:37:52', '2024-12-14 14:12:33', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (123, 'admin-更新岗位管理', '/admin-api/v1/admin/sys/sys-post/:id', '1', 'PUT', '2024-12-13 20:37:52', '2024-12-14 14:28:12', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (124, 'app-更新用户配置管理', '/admin-api/v1/app/user/user-conf/:id', '3', 'PUT', '2024-12-13 20:37:52', '2024-12-14 15:16:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (125, 'app-更新国家区号管理', '/admin-api/v1/app/user/user-country-code/:id', '3', 'PUT', '2024-12-13 20:37:53', '2024-12-14 12:51:23', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (126, 'app-更新用户等级管理', '/admin-api/v1/app/user/user-level/:id', '3', 'PUT', '2024-12-13 20:37:53', '2024-12-14 12:49:29', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (127, 'app-更新用户管理', '/admin-api/v1/app/user/user/:id', '3', 'PUT', '2024-12-13 20:37:53', '2024-12-14 12:48:02', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (128, 'plugins-更新公告管理', '/admin-api/v1/plugins/content/content-announcement/:id', '2', 'PUT', '2024-12-13 20:37:53', '2024-12-14 13:04:08', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (129, 'plugins-更新文章管理', '/admin-api/v1/plugins/content/content-article/:id', '2', 'PUT', '2024-12-13 20:37:53', '2024-12-14 13:03:18', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (130, 'plugins-更新内容分类管理', '/admin-api/v1/plugins/content/content-category/:id', '2', 'PUT', '2024-12-13 20:37:54', '2024-12-14 13:02:14', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (131, 'plugins-更新APP管理', '/admin-api/v1/plugins/filemgr/filemgr-app/:id', '2', 'PUT', '2024-12-13 20:37:54', '2024-12-15 22:15:04', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (132, 'admin-删除字典数据', '/admin-api/v1/admin/sys/sys-dict/data', '1', 'DELETE', '2024-12-13 20:37:54', '2024-12-14 14:38:51', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (133, 'admin-删除字典类型', '/admin-api/v1/admin/sys/sys-dict/type', '1', 'DELETE', '2024-12-13 20:37:54', '2024-12-14 14:32:36', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (134, 'admin-删除部门管理', '/admin-api/v1/admin/sys/sys-dept', '1', 'DELETE', '2024-12-13 20:37:54', '2024-12-14 14:18:35', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (135, 'admin-删除接口管理', '/admin-api/v1/admin/sys/sys-api', '1', 'DELETE', '2024-12-13 20:37:54', '2024-12-14 13:07:36', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (136, 'admin-删除配置管理', '/admin-api/v1/admin/sys/sys-config', '1', 'DELETE', '2024-12-13 20:37:55', '2024-12-14 14:34:11', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (137, 'admin-删除表管理', '/admin-api/v1/admin/sys/sys-table', '1', 'DELETE', '2024-12-13 20:37:55', '2024-12-14 14:53:10', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (138, 'admin-删除登录日志', '/admin-api/v1/admin/sys/sys-login-log', '1', 'DELETE', '2024-12-13 20:37:55', '2024-12-13 21:38:09', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (139, 'admin-删除菜单管理', '/admin-api/v1/admin/sys/sys-menu', '1', 'DELETE', '2024-12-13 20:37:55', '2024-12-14 14:12:48', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (140, 'admin-删除操作日志', '/admin-api/v1/admin/sys/sys-oper-log', '1', 'DELETE', '2024-12-13 20:37:55', '2024-12-14 14:40:07', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (141, 'admin-删除岗位管理', '/admin-api/v1/admin/sys/sys-post', '1', 'DELETE', '2024-12-13 20:37:55', '2024-12-13 21:32:47', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (142, 'admin-删除角色管理', '/admin-api/v1/admin/sys/sys-role', '1', 'DELETE', '2024-12-13 20:37:56', '2024-12-14 14:00:31', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (143, 'admin-删除系统用户管理', '/admin-api/v1/admin/sys/sys-user', '1', 'DELETE', '2024-12-13 20:37:56', '2024-12-14 13:50:52', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (144, 'app-删除国家区号管理', '/admin-api/v1/app/user/user-country-code', '3', 'DELETE', '2024-12-13 20:37:56', '2024-12-14 15:16:20', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (145, 'app-删除用户等级管理', '/admin-api/v1/app/user/user-level', '3', 'DELETE', '2024-12-13 20:37:56', '2024-12-14 12:49:38', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (146, 'plugins-删除公告管理', '/admin-api/v1/plugins/content/content-announcement', '2', 'DELETE', '2024-12-13 20:37:56', '2024-12-13 21:06:13', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (147, 'plugins-删除文章管理', '/admin-api/v1/plugins/content/content-article', '2', 'DELETE', '2024-12-13 20:37:56', '2024-12-14 13:03:29', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (148, 'plugins-删除内容分类管理', '/admin-api/v1/plugins/content/content-category', '2', 'DELETE', '2024-12-13 20:37:57', '2024-12-14 13:02:24', 0, 0, NULL); +INSERT INTO "public"."admin_sys_api" ("id", "description", "path", "api_type", "method", "created_at", "updated_at", "create_by", "update_by", "remark") VALUES (149, 'plugins-删除APP管理', '/admin-api/v1/plugins/filemgr/filemgr-app', '2', 'DELETE', '2024-12-13 20:37:57', '2024-12-13 21:08:39', 0, 0, NULL); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_api', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_api),false); + +-- ---------------------------- +-- Table structure for admin_sys_casbin_rule +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_casbin_rule"; +CREATE TABLE "public"."admin_sys_casbin_rule" ( + "p_type" varchar(100) DEFAULT NULL::character varying, + "v0" varchar(100) DEFAULT NULL::character varying, + "v1" varchar(100) DEFAULT NULL::character varying, + "v2" varchar(100) DEFAULT NULL::character varying, + "v3" varchar(100) DEFAULT NULL::character varying, + "v4" varchar(100) DEFAULT NULL::character varying, + "v5" varchar(100) DEFAULT NULL::character varying +) +; +ALTER TABLE "public"."admin_sys_casbin_rule" OWNER TO "postgres"; + +-- ---------------------------- +-- Records of admin_sys_casbin_rule +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_casbin_rule" ("p_type", "v0", "v1", "v2", "v3", "v4", "v5") VALUES ('p', 'test', '/admin-api/v1/app/user/user', 'GET', '', '', ''); +INSERT INTO "public"."admin_sys_casbin_rule" ("p_type", "v0", "v1", "v2", "v3", "v4", "v5") VALUES ('p', 'test', '/admin-api/v1/app/user/user-conf', 'GET', '', '', ''); +INSERT INTO "public"."admin_sys_casbin_rule" ("p_type", "v0", "v1", "v2", "v3", "v4", "v5") VALUES ('p', 'test', '/admin-api/v1/app/user/user-conf/:id', 'GET', '', '', ''); +INSERT INTO "public"."admin_sys_casbin_rule" ("p_type", "v0", "v1", "v2", "v3", "v4", "v5") VALUES ('p', 'test', '/admin-api/v1/app/user/user-conf/:id', 'PUT', '', '', ''); +INSERT INTO "public"."admin_sys_casbin_rule" ("p_type", "v0", "v1", "v2", "v3", "v4", "v5") VALUES ('p', 'test', '/admin-api/v1/app/user/user-country-code', 'DELETE', '', '', ''); +INSERT INTO "public"."admin_sys_casbin_rule" ("p_type", "v0", "v1", "v2", "v3", "v4", "v5") VALUES ('p', 'test', '/admin-api/v1/app/user/user-country-code', 'GET', '', '', ''); +INSERT INTO "public"."admin_sys_casbin_rule" ("p_type", "v0", "v1", "v2", "v3", "v4", "v5") VALUES ('p', 'test', '/admin-api/v1/app/user/user-level', 'GET', '', '', ''); +INSERT INTO "public"."admin_sys_casbin_rule" ("p_type", "v0", "v1", "v2", "v3", "v4", "v5") VALUES ('p', 'test', '/admin-api/v1/app/user/user-level/export', 'GET', '', '', ''); +COMMIT; + +-- ---------------------------- +-- Uniques structure for table admin_sys_casbin_rule +-- ---------------------------- +ALTER TABLE "public"."admin_sys_casbin_rule" ADD CONSTRAINT "idx_admin_sys_casbin_rule" UNIQUE ("p_type", "v0", "v1", "v2", "v3", "v4", "v5"); + +-- ---------------------------- +-- Table structure for admin_sys_config +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_config"; +CREATE TABLE "public"."admin_sys_config" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "config_name" varchar(128) DEFAULT NULL::character varying, + "config_key" varchar(128) DEFAULT NULL::character varying, + "config_value" varchar(255) DEFAULT NULL::character varying, + "config_type" varchar(64) DEFAULT NULL::character varying, + "is_frontend" VARCHAR(1) DEFAULT NULL::bpchar, + "remark" varchar(255) DEFAULT NULL::character varying, + "create_by" BIGINT, + "update_by" BIGINT, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."admin_sys_config" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_config"."id" IS '主键编码'; +COMMENT ON COLUMN "public"."admin_sys_config"."config_name" IS 'ConfigName'; +COMMENT ON COLUMN "public"."admin_sys_config"."config_key" IS 'ConfigKey'; +COMMENT ON COLUMN "public"."admin_sys_config"."config_value" IS 'ConfigValue'; +COMMENT ON COLUMN "public"."admin_sys_config"."config_type" IS 'ConfigType'; +COMMENT ON COLUMN "public"."admin_sys_config"."is_frontend" IS '是否前台'; +COMMENT ON COLUMN "public"."admin_sys_config"."remark" IS 'Remark'; +COMMENT ON COLUMN "public"."admin_sys_config"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_config"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_config"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_config"."updated_at" IS '最后更新时间'; +COMMENT ON TABLE "public"."admin_sys_config" IS '配置管理'; + +-- ---------------------------- +-- Records of admin_sys_config +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (1, '管理-皮肤样式', 'admin_sys_index_skinName', 'skin-green', '1', '1', '主框架页-默认皮肤样式名称:蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:16:02'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (3, '管理-侧栏主题', 'admin_sys_index_sideTheme', 'theme-dark', '1', '1', '主框架页-侧边栏主题:深色主题theme-dark,浅色主题theme-light', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:16:06'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (4, '管理-系统名称', 'admin_sys_app_name', 'go-admin后台管理系统', '1', '1', '', 1, 1, '2021-03-17 08:52:06', '2023-03-11 23:16:19'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (5, '管理-系统logo', 'admin_sys_app_logo', 'http://www.bitxx.top/images/my_head-touch-icon-next.png', '1', '1', '', 1, 1, '2021-03-17 08:53:19', '2023-03-11 23:16:15'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (6, '管理-单次excel导出数据量', 'admin_sys_max_export_size', '10000', '1', '1', '', 0, 1, '2021-07-28 16:53:48', '2023-03-11 23:15:56'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (7, '插件-文件管理-App OSS Bucket', 'plugin_filemgr_app_oss_bucket', '请自行配置', '2', '2', '', 0, 1, '2021-08-13 14:36:23', '2023-03-11 23:14:45'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (8, '插件-文件管理-App OSS AccessKeyId', 'plugin_filemgr_app_oss_access_key_id', '请自行配置', '2', '2', '', 0, 1, '2021-08-13 14:37:15', '2023-03-11 23:14:41'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (9, '插件-文件管理-App OSS AccessKeySecret', 'plugin_filemgr_app_oss_access_key_secret', '请自行配置', '2', '2', '', 0, 1, '2021-08-13 14:38:00', '2023-03-11 23:14:33'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (10, '插件-文件管理-App OSS Endpoint', 'plugin_filemgr_app_oss_endpoint', '请自行配置', '2', '2', '', 0, 1, '2021-08-13 14:38:50', '2023-03-11 23:14:28'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (11, '插件-文件管理-App OSS 根目录', 'plugin_filemgr_app_oss_root_path', 'testfile/', '2', '2', '', 0, 1, '2021-08-13 14:39:31', '2023-03-11 23:14:22'); +INSERT INTO "public"."admin_sys_config" ("id", "config_name", "config_key", "config_value", "config_type", "is_frontend", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (12, '管理-用户-默认头像', 'admin_sys_user_default_avatar', 'http://www.bitxx.top/images/my_head-touch-icon-next.png', '3', '2', '', 1, 1, '2023-03-10 18:07:03', '2023-03-10 18:07:03'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_config', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_config),false); + +-- ---------------------------- +-- Table structure for admin_sys_dept +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_dept"; +CREATE TABLE "public"."admin_sys_dept" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "parent_id" BIGINT, + "parent_ids" varchar(255) DEFAULT NULL::character varying, + "dept_name" varchar(128) DEFAULT NULL::character varying, + "sort" int4, + "leader" varchar(128) DEFAULT NULL::character varying, + "phone" varchar(20) DEFAULT NULL::character varying, + "email" varchar(80) DEFAULT NULL::character varying, + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT, + "update_by" BIGINT, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."admin_sys_dept" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_dept"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_dept"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_dept"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_dept"."updated_at" IS '最后更新时间'; +COMMENT ON COLUMN "public"."admin_sys_dept"."status" IS '状态 1-正常 2-异常'; +COMMENT ON TABLE "public"."admin_sys_dept" IS '部门管理'; + +-- ---------------------------- +-- Records of admin_sys_dept +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_dept" ("id", "parent_id", "parent_ids", "dept_name", "sort", "leader", "phone", "email", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (1, 0, '0,', 'Admin', 0, 'admin', '', '', 1, 1, 1, '2021-05-13 19:56:38', '2022-05-14 11:20:25'); +INSERT INTO "public"."admin_sys_dept" ("id", "parent_id", "parent_ids", "dept_name", "sort", "leader", "phone", "email", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (2, 1, '0,1,', '研发部', 1, 'admin', '', '', 1, 1, 1, '2021-05-13 19:56:38', '2023-03-04 13:17:45'); +INSERT INTO "public"."admin_sys_dept" ("id", "parent_id", "parent_ids", "dept_name", "sort", "leader", "phone", "email", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (3, 1, '0,1,', '运维部', 1, 'admin', '', '', 1, 1, 1, '2021-05-13 19:56:38', '2024-12-13 20:17:47'); +INSERT INTO "public"."admin_sys_dept" ("id", "parent_id", "parent_ids", "dept_name", "sort", "leader", "phone", "email", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (4, 1, '0,1,', '客服部', 0, 'admin', '', '', 1, 1, 1, '2021-05-13 19:56:38', '2024-12-13 20:17:47'); +INSERT INTO "public"."admin_sys_dept" ("id", "parent_id", "parent_ids", "dept_name", "sort", "leader", "phone", "email", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (5, 1, '0,1,', '人力资源', 3, 'admin', '', '', 1, 1, 1, '2021-05-13 19:56:38', '2022-05-14 11:20:53'); +INSERT INTO "public"."admin_sys_dept" ("id", "parent_id", "parent_ids", "dept_name", "sort", "leader", "phone", "email", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (6, 1, '0,1,', '市场', 10, 'admin', '', '', 1, 1, 1, '2021-12-02 10:13:38', '2021-12-02 10:13:38'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_dept', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_dept),false); + +-- ---------------------------- +-- Table structure for admin_sys_dict_data +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_dict_data"; +CREATE TABLE "public"."admin_sys_dict_data" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "dict_sort" BIGINT, + "dict_label" varchar(128) DEFAULT NULL::character varying, + "dict_value" varchar(255) DEFAULT NULL::character varying, + "dict_type" varchar(64) DEFAULT NULL::character varying, + "css_class" varchar(128) DEFAULT NULL::character varying, + "list_class" varchar(128) DEFAULT NULL::character varying, + "is_default" varchar(8) DEFAULT NULL::character varying, + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "default" varchar(8) DEFAULT NULL::character varying, + "remark" varchar(255) DEFAULT NULL::character varying, + "create_by" BIGINT, + "update_by" BIGINT, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."admin_sys_dict_data" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_dict_data"."status" IS '状态 1-正常 2-异常'; +COMMENT ON COLUMN "public"."admin_sys_dict_data"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_dict_data"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_dict_data"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_dict_data"."updated_at" IS '最后更新时间'; +COMMENT ON TABLE "public"."admin_sys_dict_data" IS '字典数据管理'; + +-- ---------------------------- +-- Records of admin_sys_dict_data +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (1, 0, '正常', '2', 'admin_sys_normal_disable', '', '', '', '0', '', '系统正常', 1, 1, '2021-05-13 19:56:38', '2022-04-25 00:42:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (2, 0, '停用', '1', 'admin_sys_normal_disable', '', '', '', '0', '', '系统停用', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (3, 0, '男', '1', 'admin_sys_user_sex', '', '', '', '0', '', '性别男', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (4, 0, '女', '2', 'admin_sys_user_sex', '', '', '', '0', '', '性别女', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (5, 0, '未知', '3', 'admin_sys_user_sex', '', '', '', '0', '', '性别未知', 1, 1, '2021-05-13 19:56:38', '2023-03-05 12:03:33'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (6, 0, '显示', '2', 'admin_sys_menu_show_hide', '', '', '', '0', '', '显示菜单', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (7, 0, '隐藏', '1', 'admin_sys_menu_show_hide', '', '', '', '0', '', '隐藏菜单', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (8, 0, '是', '1', 'admin_sys_yes_no', '', '', '', '0', '', '系统默认是', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (9, 0, '否', '2', 'admin_sys_yes_no', '', '', '', '0', '', '系统默认否', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (10, 0, '通知', '1', 'admin_sys_notice_type', '', '', '', '0', '', '通知', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (11, 0, '公告', '2', 'admin_sys_notice_type', '', '', '', '0', '', '公告', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (12, 0, '正常', '2', 'admin_sys_common_status', '', '', '', '0', '', '正常状态', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (13, 0, '关闭', '1', 'admin_sys_common_status', '', '', '', '0', '', '关闭状态', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (14, 0, '新增', '1', 'admin_sys_oper_type', '', '', '', '0', '', '新增操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (15, 0, '修改', '2', 'admin_sys_oper_type', '', '', '', '0', '', '修改操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (16, 0, '删除', '3', 'admin_sys_oper_type', '', '', '', '0', '', '删除操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (17, 0, '授权', '4', 'admin_sys_oper_type', '', '', '', '0', '', '授权操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (18, 0, '导出', '5', 'admin_sys_oper_type', '', '', '', '0', '', '导出操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (19, 0, '导入', '6', 'admin_sys_oper_type', '', '', '', '0', '', '导入操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (20, 0, '强退', '7', 'admin_sys_oper_type', '', '', '', '0', '', '强退操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (21, 0, '生成代码', '8', 'admin_sys_oper_type', '', '', '', '0', '', '生成操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (22, 0, '清空数据', '9', 'admin_sys_oper_type', '', '', '', '0', '', '清空操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (23, 0, '成功', '1', 'admin_sys_notice_status', '', '', '', '0', '', '成功状态', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (24, 0, '失败', '2', 'admin_sys_notice_status', '', '', '', '0', '', '失败状态', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (25, 0, '登录', '10', 'admin_sys_oper_type', '', '', '', '0', '', '登录操作', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (26, 0, '退出', '11', 'admin_sys_oper_type', '', '', '', '0', '', '', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (27, 0, '获取验证码', '12', 'admin_sys_oper_type', '', '', '', '0', '', '获取验证码', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (28, 0, '正常', '1', 'admin_sys_status', '', '', '', '0', '', '', 0, 0, '2021-07-09 11:40:01', '2021-07-09 11:40:01'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (29, 0, '停用', '2', 'admin_sys_status', '', '', '', '0', '', '', 0, 0, '2021-07-09 11:40:14', '2021-07-09 11:40:14'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (30, 0, '安卓', '1', 'plugin_filemgr_app_platform', '', '', '', '2', '', '', 0, 0, '2021-08-13 13:35:39', '2021-08-13 13:35:39'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (31, 0, 'IOS', '2', 'plugin_filemgr_app_platform', '', '', '', '2', '', '', 0, 0, '2021-08-13 13:35:51', '2021-08-13 13:35:51'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (32, 0, '类型1', '1', 'plugin_filemgr_app_type', '', '', '', '2', '', '', 0, 0, '2021-08-13 13:37:07', '2021-08-13 13:37:07'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (33, 0, '类型2', '2', 'plugin_filemgr_app_type', '', '', '', '2', '', '', 0, 0, '2021-08-13 13:37:19', '2021-08-13 13:37:19'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (34, 0, '类型3', '3', 'plugin_filemgr_app_type', '', '', '', '2', '', '', 0, 0, '2021-08-13 13:37:39', '2021-08-13 13:37:39'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (35, 0, '本地', '1', 'plugin_filemgr_app_download_type', '', '', '', '2', '', '', 0, 0, '2021-08-13 14:02:44', '2021-08-13 14:02:44'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (36, 0, '外链', '2', 'plugin_filemgr_app_download_type', '', '', '', '2', '', '', 0, 0, '2021-08-13 14:02:44', '2021-08-13 14:02:44'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (37, 0, 'OSS', '3', 'plugin_filemgr_app_download_type', '', '', '', '2', '', '', 0, 0, '2021-08-13 14:02:33', '2021-08-13 14:02:33'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (38, 0, '已发布', '2', 'plugin_filemgr_app_publish_status', '', '', '', '2', '', '', 0, 0, '2021-12-09 12:42:47', '2021-12-09 12:42:47'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (39, 0, '待发布', '1', 'plugin_filemgr_app_publish_status', '', '', '', '2', '', '', 0, 0, '2021-12-09 12:42:54', '2021-12-09 12:42:54'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (42, 0, 'GET', 'GET', 'admin_sys_api_method', '', '', '', '0', '', '', 1, 1, '2022-04-26 00:03:26', '2022-04-26 00:03:26'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (43, 0, 'POST', 'POST', 'admin_sys_api_method', '', '', '', '0', '', '', 1, 1, '2022-04-26 00:03:40', '2022-04-26 00:03:40'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (44, 0, 'DELETE', 'DELETE', 'admin_sys_api_method', '', '', '', '0', '', '', 1, 1, '2022-04-26 00:03:49', '2022-04-26 00:03:49'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (45, 0, 'PUT', 'PUT', 'admin_sys_api_method', '', '', '', '0', '', '', 1, 1, '2022-04-26 00:04:06', '2022-04-26 00:04:06'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (46, 0, 'HEAD', 'HEAD', 'admin_sys_api_method', '', '', '', '0', '', '', 1, 1, '2022-04-26 00:07:02', '2022-04-26 00:07:02'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (47, 0, '管理', '1', 'admin_sys_config_type', '', '', '', '1', '', '', 1, 1, '2023-03-01 11:05:23', '2024-12-13 20:11:07'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (48, 0, '插件', '2', 'admin_sys_config_type', '', '', '', '1', '', '', 1, 1, '2023-03-01 11:05:32', '2023-03-01 11:05:32'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (49, 0, '应用', '3', 'admin_sys_config_type', '', '', '', '1', '', '', 1, 1, '2023-03-01 11:05:42', '2023-03-01 11:05:42'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (50, 0, '展示', '1', 'admin_sys_config_is_frontend', '', '', '', '1', '', '', 1, 1, '2023-03-01 11:07:49', '2023-03-01 11:07:49'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (51, 0, '隐藏', '2', 'admin_sys_config_is_frontend', '', '', '', '1', '', '', 1, 1, '2023-03-01 11:07:56', '2023-03-01 11:07:56'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (52, 0, '登录', '1', 'admin_sys_loginlog_status', '', '', '', '1', '', '', 1, 1, '2023-03-01 14:43:04', '2023-03-01 14:43:04'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (53, 0, '退出', '2', 'admin_sys_loginlog_status', '', '', '', '1', '', '', 1, 1, '2023-03-01 14:43:10', '2023-03-01 14:43:10'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (55, 0, '全部数据权限', '1', 'admin_sys_role_data_scope', '', '', '', '1', '', '', 1, 1, '2023-03-04 13:29:36', '2023-03-04 13:29:36'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (56, 0, '自定数据权限', '2', 'admin_sys_role_data_scope', '', '', '', '1', '', '', 1, 1, '2023-03-04 13:29:43', '2023-03-04 13:29:43'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (57, 0, '本部门数据权限', '3', 'admin_sys_role_data_scope', '', '', '', '1', '', '', 1, 1, '2023-03-04 13:29:49', '2023-03-04 13:29:49'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (58, 0, '本部门及以下数据权限', '4', 'admin_sys_role_data_scope', '', '', '', '1', '', '', 1, 1, '2023-03-04 13:29:56', '2023-03-04 13:29:56'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (59, 0, '仅本人数据权限', '5', 'admin_sys_role_data_scope', '', '', '', '1', '', '', 1, 1, '2023-03-04 13:30:04', '2023-03-04 13:30:04'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (60, 0, 'int64', 'int64', 'admin_sys_gen_go_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:08:26', '2023-03-07 10:08:26'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (61, 0, 'int', 'int', 'admin_sys_gen_go_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:12:42', '2023-03-07 10:12:42'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (62, 0, 'string', 'string', 'admin_sys_gen_go_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:13:05', '2023-03-07 10:13:05'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (63, 0, 'decimal', 'decimal.Decimal', 'admin_sys_gen_go_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:13:16', '2023-03-07 10:13:29'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (64, 0, 'time', '*time.Time', 'admin_sys_gen_go_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:13:43', '2023-03-07 10:13:43'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (65, 0, '=', 'EQ', 'admin_sys_gen_query_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:20:53', '2023-03-07 10:20:53'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (66, 0, '!=', 'NE', 'admin_sys_gen_query_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:21:06', '2023-03-07 10:21:06'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (67, 0, '>', 'GT', 'admin_sys_gen_query_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:21:20', '2023-03-07 10:21:20'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (68, 0, '>=', 'GTE', 'admin_sys_gen_query_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:21:33', '2023-03-07 10:21:33'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (69, 0, '<', 'LT', 'admin_sys_gen_query_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:21:45', '2023-03-07 10:21:45'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (70, 0, '<=', 'LTE', 'admin_sys_gen_query_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:21:57', '2023-03-07 10:21:57'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (71, 0, 'LIKE', 'LIKE', 'admin_sys_gen_query_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:22:08', '2023-03-07 10:22:08'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (72, 0, '文本框', 'input', 'admin_sys_gen_html_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:23:39', '2023-03-07 10:23:39'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (73, 0, '下拉框', 'select', 'admin_sys_gen_html_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:23:49', '2023-03-07 10:23:49'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (74, 0, '单选框', 'radio', 'admin_sys_gen_html_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:23:59', '2023-03-07 10:23:59'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (75, 0, '文本域', 'textarea', 'admin_sys_gen_html_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:24:08', '2023-03-07 10:24:08'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (76, 0, '目录', '1', 'admin_sys_menu_type', '', '', '', '1', '', '', 1, 1, '2023-03-08 10:42:00', '2023-03-08 10:42:14'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (77, 0, '菜单', '2', 'admin_sys_menu_type', '', '', '', '1', '', '', 1, 1, '2023-03-08 10:42:10', '2023-03-08 10:42:10'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (78, 0, '按钮', '3', 'admin_sys_menu_type', '', '', '', '1', '', '', 1, 1, '2023-03-08 10:42:22', '2023-03-08 10:42:22'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (79, 0, '类型1', '1', 'app_user_level_type', '', '', '', '1', '', '', 1, 1, '2023-03-08 11:55:57', '2023-03-08 11:55:57'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (80, 0, '类型2', '2', 'app_user_level_type', '', '', '', '1', '', '', 1, 1, '2023-03-08 11:56:02', '2023-03-08 11:56:02'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (81, 0, '数字文本框', 'numInput', 'admin_sys_gen_html_type', '', '', '', '1', '', '', 1, 1, '2023-03-09 20:12:33', '2023-03-09 20:12:33'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (82, 0, 'CNY', '1', 'app_money_type', '', '', '', '1', '', '', 1, 1, '2023-03-09 20:24:26', '2023-03-09 20:24:26'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (83, 0, '类型1', '1', 'app_account_change_type', '', '', '', '1', '', '', 1, 1, '2023-03-09 20:27:45', '2023-03-09 20:27:45'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (84, 0, '允许用户登录', '1', 'app_user_action_type', '', '', '', '1', '', '', 1, 1, '2023-03-11 14:08:01', '2023-03-11 14:08:01'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (85, 0, '禁止用户登录', '2', 'app_user_action_type', '', '', '', '1', '', '', 1, 1, '2023-03-11 14:08:10', '2023-03-11 14:08:10'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (86, 0, '后台用户', '1', 'app_user_by_type', '', '', '', '1', '', '', 1, 1, '2023-03-11 14:14:41', '2023-03-11 14:14:41'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (87, 0, '前台用户', '2', 'app_user_by_type', '', '', '', '1', '', '', 1, 1, '2023-03-11 14:14:59', '2023-03-11 14:14:59'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (88, 0, '发送成功', '1', 'plugin_msg_sendstatus', '', '', '', '1', '', '', 1, 1, '2023-09-26 10:42:22', '2023-09-26 10:42:22'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (89, 0, '发送失败', '2', 'plugin_msg_sendstatus', '', '', '', '1', '', '', 1, 1, '2023-09-26 10:42:31', '2023-09-26 10:42:31'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (90, 0, '邮箱', '1', 'plugin_msg_code_type', '', '', '', '1', '', '', 1, 1, '2023-09-26 10:42:58', '2023-09-26 10:42:58'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (91, 0, '短信', '2', 'plugin_msg_code_type', '', '', '', '1', '', '', 1, 1, '2023-09-26 10:43:04', '2023-09-26 10:43:04'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (92, 0, '待发布', '1', 'plugin_filemgr_publish_status', '', '', '', '1', '', '', 1, 1, '2024-12-01 23:20:36', '2024-12-01 23:20:36'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (93, 0, '已发布', '2', 'plugin_filemgr_publish_status', '', '', '', '1', '', '', 1, 1, '2024-12-01 23:20:45', '2024-12-01 23:20:45'); +INSERT INTO "public"."admin_sys_dict_data" ("id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "status", "default", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (94, 0, '数字文本框', 'numInput', 'admin_sys_gen_html_type', '', '', '', '1', '', '', 1, 1, '2023-03-07 10:23:39', '2023-03-07 10:23:39'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_dict_data', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_dict_data),false); + +-- ---------------------------- +-- Table structure for admin_sys_dict_type +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_dict_type"; +CREATE TABLE "public"."admin_sys_dict_type" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "dict_name" varchar(128), + "dict_type" varchar(128), + "status" VARCHAR(1), + "remark" varchar(255), + "create_by" BIGINT, + "update_by" BIGINT, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."admin_sys_dict_type" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_dict_type"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_dict_type"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_dict_type"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_dict_type"."updated_at" IS '最后更新时间'; +COMMENT ON TABLE "public"."admin_sys_dict_type" IS '字典类型管理'; + +-- ---------------------------- +-- Records of admin_sys_dict_type +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (1, '管理-开关', 'admin_sys_normal_disable', '0', '系统开关列表', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:20:35'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (2, '管理-用户性别', 'admin_sys_user_sex', '0', '用户性别列表', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:21:06'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (3, '管理-菜单状态', 'admin_sys_menu_show_hide', '0', '菜单状态列表', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:21:02'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (4, '管理-是否', 'admin_sys_yes_no', '0', '系统是否列表', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:20:58'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (7, '管理-通知类型', 'admin_sys_notice_type', '0', '通知类型列表', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:20:53'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (8, '管理-状态', 'admin_sys_common_status', '0', '登录状态列表', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:20:49'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (9, '管理-操作类型', 'admin_sys_oper_type', '0', '操作类型列表', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:20:42'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (10, '管理-通知状态', 'admin_sys_notice_status', '0', '通知状态列表', 1, 1, '2021-05-13 19:56:38', '2023-03-11 23:20:39'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (11, '管理-基本状态', 'admin_sys_status', '0', '基本通用状态', 1, 1, '2021-07-09 11:39:21', '2023-03-11 23:21:23'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (12, '插件-文件管理-App发布状态', 'plugin_filemgr_publish_status', '2', '', 1, 1, '2021-12-09 12:42:31', '2023-03-11 23:20:01'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (13, '插件-文件管理-App系统平台', 'plugin_filemgr_app_platform', '0', 'App系统平台', 1, 1, '2021-08-13 13:36:40', '2023-03-11 23:20:17'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (14, '插件-文件管理-App类型', 'plugin_filemgr_app_type', '0', 'app属性', 1, 1, '2021-08-13 13:36:40', '2023-03-11 23:20:13'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (15, '插件-文件管理-App下载类型', 'plugin_filemgr_app_download_type', '0', '', 1, 1, '2021-08-13 14:02:03', '2023-03-11 23:20:06'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (17, '管理-接口-请求方法', 'admin_sys_api_method', '0', '', 1, 1, '2022-04-26 00:03:11', '2023-03-01 21:56:41'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (18, '管理-配置-类型', 'admin_sys_config_type', '1', '1-管理 2-插件 3-应用', 1, 1, '2023-03-01 11:04:56', '2024-12-13 20:10:17'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (19, '管理-配置-是否前台展示', 'admin_sys_config_is_frontend', '1', '1-展示 2-隐藏', 1, 1, '2023-03-01 11:06:28', '2023-03-01 11:08:07'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (20, '管理-登录日志-日志状态', 'admin_sys_loginlog_status', '1', '1-登录 2-退出', 1, 1, '2023-03-01 14:42:56', '2023-03-01 14:42:56'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (21, '管理-角色-数据范围', 'admin_sys_role_data_scope', '1', '1-全部数据权限 2- 自定义数据权限 3-本部门数据权限 4-本部门及以下数据权限 5-仅本人数据权限', 1, 1, '2023-03-04 13:29:21', '2023-03-04 13:29:21'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (22, '管理-模板-go类型', 'admin_sys_gen_go_type', '1', '', 1, 1, '2023-03-07 10:08:07', '2023-03-07 10:08:07'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (23, '管理-模板-查询类型', 'admin_sys_gen_query_type', '1', '', 1, 1, '2023-03-07 10:20:19', '2023-03-07 10:20:19'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (24, '管理-模板-显示类型', 'admin_sys_gen_html_type', '1', '', 1, 1, '2023-03-07 10:23:23', '2023-03-07 10:23:23'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (25, '管理-菜单-类型', 'admin_sys_menu_type', '1', '', 1, 1, '2023-03-08 10:33:32', '2023-03-08 10:33:32'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (26, '应用-用户-等级', 'app_user_level_type', '1', '', 1, 1, '2023-03-08 11:44:48', '2023-03-08 11:44:48'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (27, '应用-用户-资产-资金类型', 'app_money_type', '1', '1-CNY', 1, 1, '2023-03-09 20:24:17', '2023-03-11 14:06:46'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (28, '应用-用户-资产-账变类型', 'app_account_change_type', '1', '1-类型1', 1, 1, '2023-03-09 20:27:33', '2023-03-11 14:06:38'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (29, '应用-用户-行为类型', 'app_user_action_type', '1', '', 1, 1, '2023-03-11 14:06:29', '2023-03-11 14:06:29'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (30, '应用-用户-用户更新类型', 'app_user_by_type', '1', '', 1, 1, '2023-03-11 14:14:06', '2023-03-11 14:14:27'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (31, '插件-消息-验证码类型', 'plugin_msg_code_type', '1', '1-邮箱 2-短信', 1, 1, '2023-03-12 12:12:30', '2023-03-12 12:15:20'); +INSERT INTO "public"."admin_sys_dict_type" ("id", "dict_name", "dict_type", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (32, '插件-消息-验证码发送状态', 'plugin_msg_sendstatus', '1', '', 1, 1, '2023-03-12 12:14:56', '2023-03-12 13:23:37'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_dict_type', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_dict_type),false); + +-- ---------------------------- +-- Table structure for admin_sys_gen_column +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_gen_column"; +CREATE TABLE "public"."admin_sys_gen_column" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "table_id" BIGINT, + "column_name" varchar(128), + "column_comment" varchar(128), + "column_type" varchar(128), + "go_type" varchar(128), + "go_field" varchar(128), + "json_field" varchar(128), + "is_pk" VARCHAR(1), + "is_required" VARCHAR(1), + "is_list" VARCHAR(1), + "is_query" VARCHAR(1), + "query_type" varchar(128), + "html_type" varchar(128), + "dict_type" varchar(128), + "sort" BIGINT, + "remark" varchar(255), + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "create_by" BIGINT, + "update_by" BIGINT +) +; +ALTER TABLE "public"."admin_sys_gen_column" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_gen_column"."is_required" IS '该值是否参与新增或者编辑'; +COMMENT ON COLUMN "public"."admin_sys_gen_column"."is_list" IS '列表'; +COMMENT ON COLUMN "public"."admin_sys_gen_column"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_gen_column"."updated_at" IS '最后更新时间'; +COMMENT ON COLUMN "public"."admin_sys_gen_column"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_gen_column"."update_by" IS '更新者'; +COMMENT ON TABLE "public"."admin_sys_gen_column" IS 'db字段管理'; + +-- ---------------------------- +-- Records of admin_sys_gen_column +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (1, 1, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (2, 1, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (3, 1, 'id', '主键编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (4, 1, 'json_result', '返回数据', 'varchar(255)', 'string', 'JsonResult', 'jsonResult', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (5, 1, 'latency_time', '耗时', 'varchar(128)', 'string', 'LatencyTime', 'latencyTime', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (6, 1, 'oper_ip', '客户端ip', 'varchar(128)', 'string', 'OperIp', 'operIp', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (7, 1, 'oper_location', '访问位置', 'varchar(128)', 'string', 'OperLocation', 'operLocation', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (8, 1, 'oper_time', '操作时间', 'timestamp', '*time.Time', 'OperTime', 'operTime', '2', '1', '2', '2', 'EQ', 'datetime', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (9, 1, 'oper_url', '访问地址', 'varchar(255)', 'string', 'OperUrl', 'operUrl', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (10, 1, 'remark', '备注', 'varchar(255)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (11, 1, 'request_method', '请求方式', 'varchar(128)', 'string', 'RequestMethod', 'requestMethod', '2', '2', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (12, 1, 'status', '操作状态', 'varchar(4)', 'string', 'Status', 'status', '2', '2', '2', '2', 'EQ', 'input', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (13, 1, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (14, 1, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 14, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (15, 1, 'user_agent', 'ua', 'varchar(255)', 'string', 'UserAgent', 'userAgent', '2', '2', '2', '2', 'EQ', 'input', '', 15, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (16, 1, 'user_id', '操作者', 'int', 'int64', 'UserId', 'userId', '2', '2', '2', '2', 'EQ', 'input', '', 16, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (17, 2, 'avatar', '头像路径', 'varchar(1000)', 'string', 'Avatar', 'avatar', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (18, 2, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (19, 2, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (20, 2, 'email', '电子邮箱', 'varchar(300)', 'string', 'Email', 'email', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (21, 2, 'id', '用户编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (22, 2, 'level_id', '用户等级编号', 'int', 'int64', 'LevelId', 'levelId', '2', '1', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (23, 2, 'mobile', '手机号码', 'varchar(100)', 'string', 'Mobile', 'mobile', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (24, 2, 'mobile_title', '用户手机号国家前缀', 'varchar(255)', 'string', 'MobileTitle', 'mobileTitle', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (25, 2, 'money', '余额', 'decimal(30,18)', 'decimal.Decimal', 'Money', 'money', '2', '1', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (26, 2, 'parent_id', '父级编号', 'int', 'int64', 'ParentId', 'parentId', '2', '1', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (27, 2, 'parent_ids', '所有父级编号', 'varchar(1000)', 'string', 'ParentIds', 'parentIds', '2', '1', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (28, 2, 'pay_pwd', '提现密码', 'varchar(100)', 'string', 'PayPwd', 'payPwd', '2', '1', '2', '2', 'EQ', 'input', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (29, 2, 'pwd', '登录密码', 'varchar(100)', 'string', 'Pwd', 'pwd', '2', '1', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (30, 2, 'ref_code', '推荐码', 'varchar(255)', 'string', 'RefCode', 'refCode', '2', '2', '2', '2', 'EQ', 'input', '', 14, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (31, 2, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 15, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (32, 2, 'status', '状态(1-正常 2-异常)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 16, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (33, 2, 'tree_leaf', '是否最末级', 'char(1)', 'string', 'TreeLeaf', 'treeLeaf', '2', '1', '2', '2', 'EQ', 'input', '', 17, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (34, 2, 'tree_level', '层次级别', 'int', 'int64', 'TreeLevel', 'treeLevel', '2', '1', '2', '2', 'EQ', 'input', '', 18, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (35, 2, 'tree_sort', '本级排序号(升序)', 'int', 'int64', 'TreeSort', 'treeSort', '2', '1', '2', '2', 'EQ', 'input', '', 19, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (36, 2, 'tree_sorts', '所有级别排序号', 'varchar(1000)', 'string', 'TreeSorts', 'treeSorts', '2', '1', '2', '2', 'EQ', 'input', '', 20, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (37, 2, 'true_name', '真实姓名', 'varchar(100)', 'string', 'TrueName', 'trueName', '2', '1', '2', '2', 'EQ', 'input', '', 21, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (38, 2, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 22, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (39, 2, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 23, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (40, 2, 'user_name', '用户昵称', 'varchar(100)', 'string', 'UserName', 'userName', '2', '1', '2', '2', 'EQ', 'input', '', 24, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (41, 3, 'after_money', '账变后金额', 'decimal(30,18)', 'decimal.Decimal', 'AfterMoney', 'afterMoney', '2', '1', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (42, 3, 'before_money', '账变前金额', 'decimal(30,18)', 'decimal.Decimal', 'BeforeMoney', 'beforeMoney', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (43, 3, 'change_money', '账变金额', 'decimal(10,2)', 'decimal.Decimal', 'ChangeMoney', 'changeMoney', '2', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (44, 3, 'change_type', '帐变类型(1-类型1)', 'varchar(30)', 'string', 'ChangeType', 'changeType', '2', '1', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (45, 3, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (46, 3, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (47, 3, 'id', '账变编号', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (48, 3, 'money_type', '金额类型 1:余额 ', 'char(10)', 'string', 'MoneyType', 'moneyType', '2', '1', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (49, 3, 'remarks', '备注信息', 'varchar(500)', 'string', 'Remarks', 'remarks', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (50, 3, 'status', '状态(1正常 2-异常)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (51, 3, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (52, 3, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedDate', 'updatedDate', '2', '1', '2', '2', 'EQ', 'datetime', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (53, 3, 'user_id', '用户编号', 'int', 'int64', 'UserId', 'userId', '2', '1', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (54, 4, 'can_login', '1-允许登陆;2-不允许登陆', 'char(1)', 'string', 'CanLogin', 'canLogin', '2', '1', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (55, 4, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (56, 4, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (57, 4, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (58, 4, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (59, 4, 'status', '状态(1-正常 2-异常)n', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (60, 4, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (61, 4, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (62, 4, 'user_id', '用户id', 'int', 'int64', 'UserId', 'userId', '2', '1', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (63, 5, 'code', '区号', 'varchar(12)', 'string', 'Code', 'code', '2', '1', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (64, 5, 'country', '国家或地区', 'varchar(64)', 'string', 'Country', 'country', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (65, 5, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (66, 5, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (67, 5, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (68, 5, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (69, 5, 'status', '状态(1-可用 2-停用)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (70, 5, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (71, 5, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (72, 6, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (73, 6, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (74, 6, 'id', '主键', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (75, 6, 'level', '等级', 'int', 'int64', 'Level', 'level', '2', '1', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (76, 6, 'level_type', '等级类型', 'varchar(10)', 'string', 'LevelType', 'levelType', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (77, 6, 'name', '等级名称', 'varchar(255)', 'string', 'Name', 'name', '2', '1', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (78, 6, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (79, 6, 'status', '状态(1-正常 2-异常)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (80, 6, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (81, 6, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (82, 7, 'action_type', '用户行为类型', 'char(2)', 'string', 'ActionType', 'actionType', '2', '1', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (83, 7, 'by_type', '更新用户类型 1-app用户 2-后台用户', 'char(2)', 'string', 'ByType', 'byType', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (84, 7, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (85, 7, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (86, 7, 'id', '日志编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (87, 7, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (88, 7, 'status', '状态(1-正常 2-异常)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (89, 7, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (90, 7, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (91, 7, 'user_id', '用户编号', 'int', 'int64', 'UserId', 'userId', '2', '1', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (92, 8, 'content', '内容', 'text', 'string', 'Content', 'content', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (93, 8, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (94, 8, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (95, 8, 'id', '主键编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (96, 8, 'num', '阅读次数', 'int', 'int64', 'Num', 'num', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (97, 8, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (98, 8, 'status', '状态(0正常 1删除 2停用 3冻结)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (99, 8, 'title', '标题', 'varchar(255)', 'string', 'Title', 'title', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (100, 8, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (101, 8, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (102, 9, 'cate_id', '分类编号', 'int', 'int64', 'CateId', 'cateId', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (103, 9, 'content', '内容', 'text', 'string', 'Content', 'content', '2', '2', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (104, 9, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (105, 9, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (106, 9, 'id', '主键编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (107, 9, 'name', '名称', 'varchar(255)', 'string', 'Name', 'name', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (108, 9, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (109, 9, 'status', '状态(1-正常 2-异常)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (110, 9, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (111, 9, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (112, 10, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (113, 10, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (114, 10, 'id', '主键编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (115, 10, 'name', '名称', 'varchar(255)', 'string', 'Name', 'name', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (116, 10, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (117, 10, 'status', '状态(1-正常 2-异常)', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (118, 10, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (119, 10, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (120, 11, 'app_type', '版本(1-默认)', 'char(1)', 'string', 'AppType', 'appType', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (121, 11, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (122, 11, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (123, 11, 'download_type', '下载类型(1-本地 2-外链 3-oss )', 'char(1)', 'string', 'DownloadType', 'downloadType', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (124, 11, 'download_url', '下载地址(download_type=1使用)', 'varchar(255)', 'string', 'DownloadUrl', 'downloadUrl', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (125, 11, 'id', '主键', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (126, 11, 'local_address', '本地地址', 'varchar(255)', 'string', 'LocalAddress', 'localAddress', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (127, 11, 'platform', '平台 (1-安卓 2-苹果)', 'char(1)', 'string', 'Platform', 'platform', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (128, 11, 'remark', '备注信息', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (129, 11, 'status', '状态(1-已发布 2-待发布)n', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (130, 11, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (131, 11, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (132, 11, 'version', '版本号', 'varchar(100)', 'string', 'Version', 'version', '2', '2', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (133, 12, 'code', '验证码', 'varchar(12)', 'string', 'Code', 'code', '2', '1', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (134, 12, 'code_type', '验证码类型 1-邮箱;2-短信', 'char(1)', 'string', 'CodeType', 'codeType', '2', '1', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (135, 12, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (136, 12, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (137, 12, 'id', '验证码编号', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (138, 12, 'remark', '备注异常', 'varchar(500)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (139, 12, 'status', '验证码状态 1-发送成功 2-发送失败', 'char(1)', 'string', 'Status', 'status', '2', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (140, 12, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '1', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (141, 12, 'updated_at', '更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '1', '2', '2', 'EQ', 'datetime', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (142, 12, 'user_id', '用户编号', 'int', 'int64', 'UserId', 'userId', '2', '1', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (143, 13, 'api_type', '接口类型', 'varchar(16)', 'string', 'ApiType', 'apiType', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (144, 13, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (145, 13, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (146, 13, 'description', '功能描述', 'varchar(256)', 'string', 'Description', 'description', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (147, 13, 'id', '主键编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (148, 13, 'method', '请求类型', 'varchar(32)', 'string', 'Method', 'method', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (149, 13, 'path', '地址', 'varchar(128)', 'string', 'Path', 'path', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (150, 13, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (151, 13, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (152, 14, 'config_key', 'ConfigKey', 'varchar(128)', 'string', 'ConfigKey', 'configKey', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (153, 14, 'config_name', 'ConfigName', 'varchar(128)', 'string', 'ConfigName', 'configName', '2', '2', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (154, 14, 'config_type', 'ConfigType', 'varchar(64)', 'string', 'ConfigType', 'configType', '2', '2', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (155, 14, 'config_value', 'ConfigValue', 'varchar(255)', 'string', 'ConfigValue', 'configValue', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (156, 14, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (157, 14, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (158, 14, 'id', '主键编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (159, 14, 'is_frontend', '是否前台', 'char(1)', 'string', 'IsFrontend', 'isFrontend', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (160, 14, 'remark', 'Remark', 'varchar(128)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (161, 14, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (162, 14, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (163, 15, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (164, 15, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (165, 15, 'dept_name', '', 'varchar(128)', 'string', 'DeptName', 'deptName', '2', '2', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (166, 15, 'email', '', 'varchar(80)', 'string', 'Email', 'email', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (167, 15, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (168, 15, 'leader', '', 'varchar(128)', 'string', 'Leader', 'leader', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (169, 15, 'parent_id', '', 'int', 'int64', 'ParentId', 'parentId', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (170, 15, 'parent_ids', '', 'varchar(255)', 'string', 'ParentIds', 'parentIds', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (171, 15, 'phone', '', 'varchar(20)', 'string', 'Phone', 'phone', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (172, 15, 'sort', '', 'int', 'int64', 'Sort', 'sort', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (173, 15, 'status', '', 'tinyint', 'int64', 'Status', 'status', '2', '2', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (174, 15, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (175, 15, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (176, 16, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (177, 16, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (178, 16, 'css_class', '', 'varchar(128)', 'string', 'CssClass', 'cssClass', '2', '2', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (179, 16, 'default', '', 'varchar(8)', 'string', 'Default', 'default', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (180, 16, 'dict_label', '', 'varchar(128)', 'string', 'DictLabel', 'dictLabel', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (181, 16, 'dict_sort', '', 'int', 'int64', 'DictSort', 'dictSort', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (182, 16, 'dict_type', '', 'varchar(64)', 'string', 'DictType', 'dictType', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (183, 16, 'dict_value', '', 'varchar(255)', 'string', 'DictValue', 'dictValue', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (184, 16, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (185, 16, 'is_default', '', 'varchar(8)', 'string', 'IsDefault', 'isDefault', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (186, 16, 'list_class', '', 'varchar(128)', 'string', 'ListClass', 'listClass', '2', '2', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (187, 16, 'remark', '', 'varchar(255)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (188, 16, 'status', '', 'char(1)', 'string', 'Status', 'status', '2', '2', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (189, 16, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 14, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (190, 16, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 15, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (191, 17, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (192, 17, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (193, 17, 'dict_name', '', 'varchar(128)', 'string', 'DictName', 'dictName', '2', '2', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (194, 17, 'dict_type', '', 'varchar(128)', 'string', 'DictType', 'dictType', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (195, 17, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (196, 17, 'remark', '', 'varchar(255)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (197, 17, 'status', '', 'char(1)', 'string', 'Status', 'status', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (198, 17, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (199, 17, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (200, 18, 'business_name', '业务名', 'varchar(255)', 'string', 'BusinessName', 'businessName', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (201, 18, 'class_name', '类名', 'varchar(255)', 'string', 'ClassName', 'className', '2', '2', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (202, 18, 'create_by', '创建者', 'bigint', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (203, 18, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (204, 18, 'function_author', '作者', 'varchar(255)', 'string', 'FunctionAuthor', 'functionAuthor', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (205, 18, 'function_name', '功能描述', 'varchar(255)', 'string', 'FunctionName', 'functionName', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (206, 18, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (207, 18, 'is_plugin', '是否插件 1-是 2-否', 'char(1)', 'string', 'IsPlugin', 'isPlugin', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (208, 18, 'module_name', '接口名', 'varchar(255)', 'string', 'ModuleName', 'moduleName', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (209, 18, 'package_name', '应用名', 'varchar(255)', 'string', 'PackageName', 'packageName', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (210, 18, 'remark', '', 'varchar(255)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (211, 18, 'table_comment', '表描述', 'varchar(255)', 'string', 'TableComment', 'tableComment', '2', '2', '2', '2', 'EQ', 'input', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (212, 18, 'table_name', '表名', 'varchar(255)', 'string', 'TableName', 'tableName', '2', '2', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (213, 18, 'update_by', '更新者', 'bigint', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 14, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (214, 18, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 15, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (215, 19, 'agent', '代理', 'varchar(255)', 'string', 'Agent', 'agent', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (216, 19, 'browser', '浏览器', 'varchar(255)', 'string', 'Browser', 'browser', '2', '2', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (217, 19, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (218, 19, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (219, 19, 'id', '主键编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (220, 19, 'ipaddr', 'ip地址', 'varchar(255)', 'string', 'Ipaddr', 'ipaddr', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (221, 19, 'login_location', '归属地', 'varchar(255)', 'string', 'LoginLocation', 'loginLocation', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (222, 19, 'login_time', '登录时间', 'timestamp', '*time.Time', 'LoginTime', 'loginTime', '2', '1', '2', '2', 'EQ', 'datetime', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (223, 19, 'os', '系统', 'varchar(255)', 'string', 'Os', 'os', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (224, 19, 'platform', '固件', 'varchar(255)', 'string', 'Platform', 'platform', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (225, 19, 'remark', '备注', 'varchar(255)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (226, 19, 'status', '状态 1-登录 2-退出', 'char(1)', 'string', 'Status', 'status', '2', '2', '2', '2', 'EQ', 'input', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (227, 19, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (228, 19, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 14, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (229, 19, 'user_id', '用户编号', 'int', 'int64', 'UserId', 'userId', '2', '2', '2', '2', 'EQ', 'input', '', 15, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (230, 20, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (231, 20, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (232, 20, 'element', '', 'varchar(255)', 'string', 'Element', 'element', '2', '2', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (233, 20, 'icon', '', 'varchar(128)', 'string', 'Icon', 'icon', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (234, 20, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (235, 20, 'is_affix', '是否固定 1-是 2-否', 'char(1)', 'string', 'IsAffix', 'isAffix', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (236, 20, 'is_frame', '是否内嵌 1-是 2-否', 'char(1)', 'string', 'IsFrame', 'isFrame', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (237, 20, 'is_hidden', '是否隐藏 1-是 2-否', 'char(1)', 'string', 'IsHidden', 'isHidden', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (238, 20, 'is_keep_alive', '是否缓存 1-是 2-否', 'char(1)', 'string', 'IsKeepAlive', 'isKeepAlive', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (239, 20, 'menu_type', '', 'char(1)', 'string', 'MenuType', 'menuType', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (240, 20, 'parent_id', '上级菜单id', 'int', 'int64', 'ParentId', 'parentId', '2', '2', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (241, 20, 'parent_ids', '上级菜单id集合', 'varchar(255)', 'string', 'ParentIds', 'parentIds', '2', '2', '2', '2', 'EQ', 'input', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (242, 20, 'path', '', 'varchar(255)', 'string', 'Path', 'path', '2', '2', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (243, 20, 'permission', '', 'varchar(255)', 'string', 'Permission', 'permission', '2', '2', '2', '2', 'EQ', 'input', '', 14, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (244, 20, 'redirect', '', 'varchar(255)', 'string', 'Redirect', 'redirect', '2', '2', '2', '2', 'EQ', 'input', '', 15, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (245, 20, 'sort', '', 'int', 'int64', 'Sort', 'sort', '2', '2', '2', '2', 'EQ', 'input', '', 16, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (246, 20, 'title', '', 'varchar(128)', 'string', 'Title', 'title', '2', '2', '2', '2', 'EQ', 'input', '', 17, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (247, 20, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 18, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (248, 20, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 19, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (249, 21, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (250, 21, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (251, 21, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (252, 21, 'post_code', '', 'varchar(128)', 'string', 'PostCode', 'postCode', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (253, 21, 'post_name', '', 'varchar(128)', 'string', 'PostName', 'postName', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (254, 21, 'remark', '', 'varchar(255)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (255, 21, 'sort', '', 'tinyint', 'int64', 'Sort', 'sort', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (256, 21, 'status', '', 'char(1)', 'string', 'Status', 'status', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (257, 21, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (258, 21, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (259, 22, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (260, 22, 'created_at', '创建时间', 'datetime(3)', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (261, 22, 'data_scope', '', 'varchar(128)', 'string', 'DataScope', 'dataScope', '2', '2', '2', '2', 'EQ', 'input', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (262, 22, 'id', '', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (263, 22, 'remark', '', 'varchar(255)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (264, 22, 'role_key', '', 'varchar(128)', 'string', 'RoleKey', 'roleKey', '2', '2', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (265, 22, 'role_name', '', 'varchar(128)', 'string', 'RoleName', 'roleName', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (266, 22, 'role_sort', '', 'bigint', 'int64', 'RoleSort', 'roleSort', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (267, 22, 'status', '状态 1-正常 2-停用', 'char(1)', 'string', 'Status', 'status', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (268, 22, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (269, 22, 'updated_at', '最后更新时间', 'datetime(3)', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (270, 23, 'avatar', '头像', 'varchar(255)', 'string', 'Avatar', 'avatar', '2', '2', '2', '2', 'EQ', 'input', '', 1, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (271, 23, 'create_by', '创建者', 'int', 'int64', 'CreateBy', 'createBy', '2', '2', '2', '2', 'EQ', 'input', '', 2, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (272, 23, 'created_at', '创建时间', 'datetime', '*time.Time', 'CreatedAt', 'createdAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 3, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (273, 23, 'dept_id', '部门', 'int', 'int64', 'DeptId', 'deptId', '2', '2', '2', '2', 'EQ', 'input', '', 4, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (274, 23, 'email', '邮箱', 'varchar(128)', 'string', 'Email', 'email', '2', '2', '2', '2', 'EQ', 'input', '', 5, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (275, 23, 'id', '编码', 'int', 'int64', 'Id', 'id', '1', '1', '2', '2', 'EQ', 'input', '', 6, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (276, 23, 'nick_name', '昵称', 'varchar(128)', 'string', 'NickName', 'nickName', '2', '2', '2', '2', 'EQ', 'input', '', 7, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (277, 23, 'password', '密码', 'varchar(128)', 'string', 'Password', 'password', '2', '2', '2', '2', 'EQ', 'input', '', 8, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (278, 23, 'phone', '手机号', 'varchar(11)', 'string', 'Phone', 'phone', '2', '2', '2', '2', 'EQ', 'input', '', 9, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (279, 23, 'post_id', '岗位', 'int', 'int64', 'PostId', 'postId', '2', '2', '2', '2', 'EQ', 'input', '', 10, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (280, 23, 'remark', '备注', 'varchar(255)', 'string', 'Remark', 'remark', '2', '2', '2', '2', 'EQ', 'input', '', 11, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (281, 23, 'role_id', '角色ID', 'int', 'int64', 'RoleId', 'roleId', '2', '2', '2', '2', 'EQ', 'input', '', 12, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (282, 23, 'salt', '加盐', 'varchar(255)', 'string', 'Salt', 'salt', '2', '2', '2', '2', 'EQ', 'input', '', 13, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (283, 23, 'sex', '性别', 'char(1)', 'string', 'Sex', 'sex', '2', '2', '2', '2', 'EQ', 'input', '', 14, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (284, 23, 'status', '状态', 'varchar(4)', 'string', 'Status', 'status', '2', '2', '2', '2', 'EQ', 'input', '', 15, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (285, 23, 'update_by', '更新者', 'int', 'int64', 'UpdateBy', 'updateBy', '2', '2', '2', '2', 'EQ', 'input', '', 16, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (286, 23, 'updated_at', '最后更新时间', 'datetime', '*time.Time', 'UpdatedAt', 'updatedAt', '2', '2', '2', '2', 'EQ', 'datetime', '', 17, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_column" ("id", "table_id", "column_name", "column_comment", "column_type", "go_type", "go_field", "json_field", "is_pk", "is_required", "is_list", "is_query", "query_type", "html_type", "dict_type", "sort", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (287, 23, 'username', '用户名', 'varchar(64)', 'string', 'Username', 'username', '2', '2', '2', '2', 'EQ', 'input', '', 18, '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_gen_column', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_gen_column),false); + +-- ---------------------------- +-- Table structure for admin_sys_gen_table +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_gen_table"; +CREATE TABLE "public"."admin_sys_gen_table" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "table_name" varchar(255), + "table_comment" varchar(255), + "class_name" varchar(255), + "package_name" varchar(255), + "module_name" varchar(255), + "function_name" varchar(255), + "function_author" varchar(255), + "business_name" varchar(255), + "is_plugin" VARCHAR(1) DEFAULT '1'::bpchar, + "remark" varchar(255), + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "create_by" BIGINT, + "update_by" BIGINT +) +; +ALTER TABLE "public"."admin_sys_gen_table" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."table_name" IS '表名'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."table_comment" IS '表描述'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."class_name" IS '类名'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."package_name" IS '应用名'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."module_name" IS '接口名'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."function_name" IS '功能描述'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."function_author" IS '作者'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."business_name" IS '业务名'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."is_plugin" IS '是否插件 1-是 2-否'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."updated_at" IS '最后更新时间'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_gen_table"."update_by" IS '更新者'; +COMMENT ON TABLE "public"."admin_sys_gen_table" IS '表管理'; + +-- ---------------------------- +-- Records of admin_sys_gen_table +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (1, 'admin_sys_oper_log', '操作日志', 'SysOperLog', 'admin', 'sys-oper-log', '操作日志', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (2, 'app_user', '用户管理', 'User', 'app', 'user', '用户管理', 'Jason', 'user', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (3, 'app_user_account_log', '账变记录', 'UserAccountLog', 'app', 'user-account-log', '账变记录', 'Jason', 'user', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (4, 'app_user_conf', '用户配置', 'UserConf', 'app', 'user-conf', '用户配置', 'Jason', 'user', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (5, 'app_user_country_code', '国家区号', 'UserCountryCode', 'app', 'user-country-code', '国家区号', 'Jason', 'user', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (6, 'app_user_level', '用户等级', 'UserLevel', 'app', 'user-level', '用户等级', 'Jason', 'user', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (7, 'app_user_oper_log', '用户关键行为日志表', 'UserOperLog', 'app', 'user-oper-log', '用户关键行为日志表', 'Jason', 'user', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (8, 'plugins_content_announcement', '公告管理', 'ContentAnnouncement', 'plugins', 'content-announcement', '公告管理', 'Jason', 'content', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (9, 'plugins_content_article', '文章管理', 'ContentArticle', 'plugins', 'content-article', '文章管理', 'Jason', 'content', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (10, 'plugins_content_category', '文章分类管理', 'ContentCategory', 'plugins', 'content-category', '文章分类管理', 'Jason', 'content', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (11, 'plugins_filemgr_app', 'app升级管理', 'FilemgrApp', 'plugins', 'filemgr-app', 'app升级管理', 'Jason', 'filemgr', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (12, 'plugins_msg_code', '验证码记录', 'MsgCode', 'plugins', 'msg-code', '验证码记录', 'Jason', 'msg', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (13, 'admin_sys_api', '接口管理', 'SysApi', 'admin', 'sys-api', '接口管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (14, 'admin_sys_config', '配置管理', 'SysConfig', 'admin', 'sys-config', '配置管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (15, 'admin_sys_dept', '部门管理', 'SysDept', 'admin', 'sys-dept', '部门管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (16, 'admin_sys_dict_data', '字典数据管理', 'SysDictData', 'admin', 'sys-dict-data', '字典数据管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (17, 'admin_sys_dict_type', '字典类型管理', 'SysDictType', 'admin', 'sys-dict-type', '字典类型管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (18, 'admin_sys_gen_table', '表管理', 'SysGenTable', 'admin', 'sys-gen-table', '表管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (19, 'admin_sys_login_log', '登录日志', 'SysLoginLog', 'admin', 'sys-login-log', '登录日志', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (20, 'admin_sys_menu', '菜单管理', 'SysMenu', 'admin', 'sys-menu', '菜单管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (21, 'admin_sys_post', '岗位管理', 'SysPost', 'admin', 'sys-post', '岗位管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (22, 'admin_sys_role', '角色管理', 'SysRole', 'admin', 'sys-role', '角色管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +INSERT INTO "public"."admin_sys_gen_table" ("id", "table_name", "table_comment", "class_name", "package_name", "module_name", "function_name", "function_author", "business_name", "is_plugin", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (23, 'admin_sys_user', '系统用户管理', 'SysUser', 'admin', 'sys-user', '系统用户管理', 'Jason', 'sys', '1', '', '2024-12-13 19:56:40', '2024-12-13 19:56:40', 0, 0); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_gen_table', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_gen_table),false); + + +-- ---------------------------- +-- Table structure for admin_sys_login_log +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_login_log"; +CREATE TABLE "public"."admin_sys_login_log" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "user_id" BIGINT, + "ipaddr" varchar(255), + "login_location" varchar(255), + "browser" varchar(255), + "os" varchar(255), + "agent" varchar(255), + "platform" varchar(255), + "login_time" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "status" VARCHAR(1), + "remark" varchar(255), + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "create_by" BIGINT, + "update_by" BIGINT +) +; +ALTER TABLE "public"."admin_sys_login_log" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_login_log"."id" IS '主键编码'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."user_id" IS '用户编号'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."ipaddr" IS 'ip地址'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."login_location" IS '归属地'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."browser" IS '浏览器'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."os" IS '系统'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."agent" IS '代理'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."platform" IS '固件'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."login_time" IS '登录时间'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."status" IS '状态 1-登录 2-退出'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."remark" IS '备注'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."updated_at" IS '最后更新时间'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_login_log"."update_by" IS '更新者'; +COMMENT ON TABLE "public"."admin_sys_login_log" IS '登录日志'; + +-- ---------------------------- +-- Records of admin_sys_login_log +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_login_log" ("id", "user_id", "ipaddr", "login_location", "browser", "os", "agent", "platform", "login_time", "status", "remark", "created_at", "updated_at", "create_by", "update_by") VALUES (1, 1, '::1', '----', 'Edge 131.0.0.0', 'Intel Mac OS X 10_15_7', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', 'Macintosh', '2024-12-13 19:58:24', '1', '登录操作', '2024-12-13 19:58:24', '2024-12-13 19:58:24', 0, 0); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_login_log', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_login_log),false); + +-- ---------------------------- +-- Table structure for admin_sys_menu +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_menu"; +CREATE TABLE "public"."admin_sys_menu" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "title" varchar(128), + "icon" varchar(128), + "path" varchar(255), + "element" varchar(255), + "redirect" varchar(255), + "permission" varchar(255), + "sort" int4, + "parent_id" BIGINT, + "parent_ids" varchar(255), + "menu_type" VARCHAR(1), + "is_keep_alive" VARCHAR(1), + "is_affix" VARCHAR(1), + "is_hidden" VARCHAR(1), + "is_frame" VARCHAR(1), + "create_by" BIGINT, + "update_by" BIGINT, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."admin_sys_menu" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_menu"."parent_id" IS '上级菜单id'; +COMMENT ON COLUMN "public"."admin_sys_menu"."parent_ids" IS '上级菜单id集合'; +COMMENT ON COLUMN "public"."admin_sys_menu"."is_keep_alive" IS '是否缓存 1-是 2-否'; +COMMENT ON COLUMN "public"."admin_sys_menu"."is_affix" IS '是否固定 1-是 2-否'; +COMMENT ON COLUMN "public"."admin_sys_menu"."is_hidden" IS '是否隐藏 1-是 2-否'; +COMMENT ON COLUMN "public"."admin_sys_menu"."is_frame" IS '是否内嵌 1-是 2-否'; +COMMENT ON COLUMN "public"."admin_sys_menu"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_menu"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_menu"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_menu"."updated_at" IS '最后更新时间'; +COMMENT ON TABLE "public"."admin_sys_menu" IS '菜单管理'; + +-- ---------------------------- +-- Records of admin_sys_menu +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (1, '系统管理', 'SettingFilled', '/admin/sys', '', '/admin/sys/sys-api', '', 300, 0, '0,', '1', ' ', ' ', '2', ' ', 1, 1, '2021-05-20 21:58:46', '2024-12-14 15:04:42'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (2, '用户管理', 'HeartFilled', '/admin/sys/sys-user', '/admin/sys/sys-user/index', '', '', 10, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:10:12'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (3, '新增系统用户管理', 'AppstoreOutlined', '', '', '', 'admin:sys-user:add', 1, 2, '0,22,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 13:43:52'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (4, '获取系统用户管理分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-user:query', 0, 2, '0,22,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 13:14:41'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (5, '更新系统用户管理', 'AppstoreOutlined', '', '', '', 'admin:sys-user:edit', 2, 2, '0,22,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 13:50:46'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (6, '删除系统用户管理', 'AppstoreOutlined', '', '', '', 'admin:sys-user:del', 3, 2, '0,22,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 13:50:52'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (7, '菜单管理', 'BookFilled', '/admin/sys/sys-menu', '/admin/sys/sys-menu/index', '', '', 30, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:10:42'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (8, '角色管理', 'FlagFilled', '/admin/sys/sys-role', '/admin/sys/sys-role/index', '', '', 20, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:10:26'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (9, '部门管理', 'BuildFilled', '/admin/sys/sys-dept', '/admin/sys/sys-dept/index', '', '', 40, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:10:54'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (10, '岗位管理', 'DribbbleCircleFilled', '/admin/sys/sys-post', '/admin/sys/sys-post/index', '', '', 50, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:11:12'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (11, '字典管理', 'ContainerFilled', '/admin/sys/sys-dicttype', '/admin/sys/sys-dicttype/index', '', '', 60, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:11:27'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (12, '字典数据', 'ControlFilled', '/admin/sys/sys-dictdata', '/admin/sys/sys-dictdata/index', '', '', 100, 1, '0,1,', '2', '2', '2', '1', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:12:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (13, '参数管理', 'GoldenFilled', '/admin/sys/sys-config', '/admin/sys/sys-config/index', '', '', 70, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:11:54'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (14, '登录日志', 'FileTextFilled', '/admin/sys/sys-loginlog', '/admin/sys/sys-loginlog/index', '', '', 90, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:12:07'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (15, '操作日志', 'BugFilled', '/admin/sys/sys-operalog', '/admin/sys/sys-operlog/index', '', '', 120, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:12:31'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (16, '新增菜单管理', 'AppstoreOutlined', '', '', '', 'admin:sys-menu:add', 1, 7, '0,1,7,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:13:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (17, '更新菜单管理', 'AppstoreOutlined', '', '', '', 'admin:sys-menu:edit', 1, 7, '0,1,7,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:12:33'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (18, '查询菜单管理列表', 'AppstoreOutlined', '', '', '', 'admin:sys-menu:query', 0, 7, '0,1,7,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:02:45'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (19, '删除菜单管理', 'AppstoreOutlined', '', '', '', 'admin:sys-menu:del', 1, 7, '0,1,7,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:12:48'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (20, '新增角色管理', 'AppstoreOutlined', '', '', '', 'admin:sys-role:add', 1, 8, '0,1,8,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 13:56:24'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (21, '获取角色管理全部列表', 'AppstoreOutlined', '', '', '', 'admin:sys-role:query', 0, 8, '0,1,8,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 13:52:04'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (22, '更新角色管理', 'AppstoreOutlined', '', '', '', 'admin:sys-role:edit', 1, 8, '0,1,8,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:00:05'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (23, '删除角色管理', 'AppstoreOutlined', '', '', '', 'admin:sys-role:del', 1, 8, '0,1,8,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:00:31'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (24, '获取部门管理列表', 'AppstoreOutlined', '', '', '', 'admin:sys-dept:query', 0, 9, '0,1,9,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 14:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (25, '新增部门管理', 'AppstoreOutlined', '', '', '', 'admin:sys-dept:add', 1, 9, '0,1,9,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 14:17:17'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (26, '更新部门管理', 'AppstoreOutlined', '', '', '', 'admin:sys-dept:edit', 2, 9, '0,1,9,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 14:18:07'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (27, '删除部门管理', 'AppstoreOutlined', '', '', '', 'admin:sys-dept:del', 3, 9, '0,1,9,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 14:18:35'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (28, '获取岗位管理分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-post:query', 0, 10, '0,1,10,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:24:08'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (29, '新增岗位管理', 'AppstoreOutlined', '', '', '', 'admin:sys-post:add', 0, 10, '0,1,10,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:27:41'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (30, '修改岗位管理', 'AppstoreOutlined', '', '', '', 'admin:sys-post:edit', 0, 10, '0,1,10,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:28:12'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (31, '删除岗位', 'AppstoreOutlined', '', '', '', 'admin:sys-post:del', 0, 10, '0,1,10,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-13 21:32:47'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (32, '获取字典类型分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-type:query', 0, 11, '0,1,11,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:30:12'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (33, '新增字典类型', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-type:add', 0, 11, '0,1,11,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:31:05'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (34, '更新字典类型', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-type:edit', 0, 11, '0,1,11,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:32:25'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (35, '删除字典类型', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-type:del', 0, 11, '0,1,11,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:32:36'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (36, '获取字典数据分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-data:query', 0, 12, '0,1,12,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:36:52'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (37, '新增字典数据', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-data:add', 0, 12, '0,1,12,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:38:04'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (38, '更新字典数据', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-data:edit', 0, 12, '0,1,12,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:38:35'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (39, '删除字典数据', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-data:del', 0, 12, '0,1,12,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:38:50'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (40, '获取配置管理分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-config:query', 0, 13, '0,1,13,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:33:31'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (41, '新增配置管理', 'AppstoreOutlined', '', '', '', 'admin:sys-config:add', 0, 13, '0,1,13,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:33:44'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (42, '更新配置管理', 'AppstoreOutlined', '', '', '', 'admin:sys-config:edit', 0, 13, '0,1,13,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:34:00'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (43, '删除配置管理', 'AppstoreOutlined', '', '', '', 'admin:sys-config:del', 0, 13, '0,1,13,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:34:11'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (44, '获取登录日志分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-login-log:query', 0, 14, '0,1,14,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:35:28'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (45, '删除登录日志', 'AppstoreOutlined', '', '', '', 'admin:sys-login-log:del', 0, 14, '0,1,14,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-13 21:38:09'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (46, '获取操作日志分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-oper-log:query', 0, 15, '0,1,15,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:39:13'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (47, '删除操作日志', 'AppstoreOutlined', '', '', '', 'admin:sys-oper-log:del', 0, 15, '0,1,15,', '3', ' ', ' ', ' ', ' ', 1, 1, '2020-04-11 15:52:48', '2024-12-14 14:40:07'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (48, '代码生成', 'BugFilled', '/admin/sys/sys-tools/sys-gen', '/admin/sys/sys-tools/sys-gen/index', '', '', 20, 54, '0,1,54,', '2', '2', '2', '2', '1', 1, 1, '2020-04-11 15:52:48', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (49, '代码生成修改', 'ClockCircleFilled', '/admin/sys/sys-tools/sys-gen/edit', '/admin/sys/sys-tools/sys-gen/edit/index', '', '', 100, 54, '0,1,54,', '2', '2', '2', '1', '1', 1, 1, '2020-04-11 15:52:48', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (50, '服务监控', 'ExclamationCircleFilled', '/admin/sys/sys-tools/sys-monitor', '/admin/sys/sys-tools/sys-monitor/index', '', '', 0, 54, '0,1,54,', '2', '2', '2', '2', '1', 1, 1, '2020-04-14 00:28:19', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (51, '接口管理', 'ThunderboltFilled', '/admin/sys/sys-api', '/admin/sys/sys-api/index', '', '', 0, 1, '0,1,', '2', '2', '2', '2', '1', 1, 1, '2021-05-20 22:08:45', '2024-12-14 15:09:44'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (52, '获取接口管理分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-api:query', 0, 51, '0,1,51,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 13:06:50'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (53, '更新接口管理', 'AppstoreOutlined', '', '', '', 'admin:sys-api:edit', 0, 51, '0,1,51,', '3', ' ', ' ', ' ', ' ', 1, 1, '2021-05-20 22:08:45', '2024-12-14 13:07:22'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (54, '系统工具', 'ToolFilled', '/admin/sys/sys-tools', '', '/admin/sys/sys-tools/sys-monitor', '', 330, 1, '0,1,', '1', ' ', ' ', '2', ' ', 1, 1, '2021-05-21 11:13:32', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (55, '文件管理', 'FolderFilled', '/plugins/filemgr', '', '/plugins/filemgr/filemgr-app', '', 90, 57, '0,57,', '1', ' ', ' ', '2', ' ', 1, 1, '2021-08-13 14:19:11', '2024-12-14 15:08:17'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (56, '内容管理', 'FileWordFilled', '/plugins/content', '', '/plugins/content/content-category', '', 60, 57, '0,57,', '1', ' ', ' ', '2', ' ', 1, 1, '2021-08-16 18:01:20', '2024-12-14 15:07:28'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (57, '插件管理', 'ApiFilled', '/plugins', '', '/plugins/content/content-category', '', 270, 0, '0,', '1', ' ', ' ', '2', ' ', 1, 1, '2023-03-07 10:37:37', '2024-12-14 15:03:16'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (58, 'App应用', 'FolderOpenFilled', '/app', '', '/app/user/user', '', 30, 0, '0,', '1', ' ', ' ', '2', ' ', 1, 1, '2023-03-08 09:27:36', '2024-12-14 15:01:02'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (59, '用户列表', 'MehFilled', '/app/user', '', '/app/user/user', '', 30, 58, '0,58,', '1', ' ', ' ', '2', ' ', 1, 1, '2023-03-09 14:24:25', '2024-12-14 15:06:26'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (61, '用户等级', 'LayoutFilled', '/app/user/user-level', '/app/user/user-level/index', NULL, '', 60, 59, '0,58,59,', '2', '1', '2', '2', '1', 1, 1, '2023-03-09 21:33:49', '2023-03-09 23:05:34'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (62, '获取用户等级管理分页列表', 'AppstoreOutlined', '', '', '', 'app:user-level:query', 0, 61, '0,58,59,61,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 21:33:49', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (63, '新增用户等级管理', 'AppstoreOutlined', '', '', '', 'app:user-level:add', 0, 61, '0,58,59,61,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 21:33:49', '2024-12-14 12:49:18'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (64, '更新用户等级管理', 'AppstoreOutlined', '', '', '', 'app:user-level:edit', 0, 61, '0,58,59,61,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 21:33:49', '2024-12-14 12:49:28'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (65, '删除用户等级管理', 'AppstoreOutlined', '', '', '', 'app:user-level:del', 0, 61, '0,58,59,61,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 21:33:49', '2024-12-14 12:49:38'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (66, '导出用户等级管理', 'AppstoreOutlined', '', '', '', 'app:user-level:export', 0, 61, '0,58,59,61,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 21:33:49', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (67, '账变记录', 'LayoutFilled', '/app/user/user-account-log', '/app/user/user-account-log/index', NULL, '', 150, 59, '0,58,59,', '2', '1', '2', '2', '1', 1, 1, '2023-03-09 21:33:51', '2024-12-23 22:05:53'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (68, '获取账变记录分页列表', 'AppstoreOutlined', '', '', '', 'app:user-account-log:query', 0, 67, '0,58,59,67,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 21:33:51', '2024-12-23 22:02:18'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (69, '导出账变记录', 'AppstoreOutlined', '', '', '', 'app:user-account-log:export', 0, 67, '0,58,59,67,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 21:33:51', '2024-12-23 22:02:18'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (70, '用户配置', 'LayoutFilled', '/app/user/user-conf', '/app/user/user-conf/index', '', '', 90, 59, '0,58,59,', '2', '1', '2', '2', '1', 1, 1, '2023-03-09 23:04:40', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (71, '获取用户配置管理分页列表', 'AppstoreOutlined', '', '', '', 'app:user-conf:query', 0, 70, '0,58,59,70,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 23:04:40', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (72, '更新用户配置管理', 'AppstoreOutlined', '', '', '', 'app:user-conf:edit', 0, 70, '0,58,59,70,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 23:04:40', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (73, '用户管理', 'LayoutFilled', '/app/user/user', '/app/user/user/index', '', '', 30, 59, '0,58,59,', '2', '1', '2', '2', '1', 1, 1, '2023-03-09 23:18:49', '2024-12-13 20:14:34'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (74, '获取用户管理分页列表', 'AppstoreOutlined', '', '', '', 'app:user:query', 0, 73, '0,58,59,73,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 23:18:49', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (75, '新增用户管理', 'AppstoreOutlined', '', '', '', 'app:user:add', 0, 73, '0,58,59,73,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 23:18:49', '2024-12-14 12:47:50'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (76, '更新用户管理', 'AppstoreOutlined', '', '', '', 'app:user:edit', 0, 73, '0,58,59,73,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 23:18:49', '2024-12-14 12:48:01'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (77, '导出用户管理', 'AppstoreOutlined', '', '', '', 'app:user:export', 0, 73, '0,58,59,73,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-09 23:18:49', '2024-12-13 20:56:34'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (78, '用户行为记录', 'LayoutFilled', '/app/user/user-oper-log', '/app/user/user-oper-log/index', NULL, '', 120, 59, '0,58,59,', '2', '1', '2', '2', '1', 1, 1, '2023-03-11 15:00:06', '2023-03-11 15:02:42'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (79, '获取用户操作日志分页列表', 'AppstoreOutlined', '', '', '', 'app:user-oper-log:query', 0, 78, '0,58,59,78,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-11 15:00:06', '2024-12-14 12:50:33'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (80, '导出用户操作日志', 'AppstoreOutlined', '', '', '', 'app:user-oper-log:export', 0, 78, '0,58,59,78,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-11 15:00:06', '2024-12-14 12:50:48'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (81, '消息管理', 'BellFilled', '/plugins/msg', '', '/plugins/msg/msg-code', '', 120, 57, '0,57,', '1', ' ', ' ', '2', ' ', 1, 1, '2023-03-12 13:27:59', '2024-12-14 15:13:49'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (82, '验证码记录', 'LayoutFilled', '/plugins/msg/msg-code', '/plugins/msg/msg-code/index', NULL, '', 0, 81, '0,57,81,', '2', '1', '2', '2', '1', 1, 1, '2023-03-12 21:54:02', '2023-03-12 21:54:32'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (83, '获取验证码管理分页列表', 'AppstoreOutlined', '', '', '', 'plugins:msg-code:query', 0, 82, '0,57,81,82,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 21:54:02', '2024-12-14 13:05:37'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (84, '公告管理', 'LayoutFilled', '/plugins/content/content-announcement', '/plugins/content/content-announcement/index', NULL, '', 90, 56, '0,57,56,', '2', '1', '2', '2', '1', 1, 1, '2023-03-12 22:47:11', '2023-03-12 22:48:08'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (85, '获取公告管理分页列表', 'AppstoreOutlined', '', '', '', 'plugins:content-announcement:query', 0, 84, '0,57,56,84,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 22:47:11', '2024-12-14 13:03:46'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (86, '新增公告管理', 'AppstoreOutlined', '', '', '', 'plugins:content-announcement:add', 0, 84, '0,57,56,84,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 22:47:11', '2024-12-14 13:03:58'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (87, '更新公告管理', 'AppstoreOutlined', '', '', '', 'plugins:content-announcement:edit', 0, 84, '0,57,56,84,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 22:47:11', '2024-12-14 13:04:08'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (88, '删除公告管理', 'AppstoreOutlined', '', '', '', 'plugins:content-announcement:del', 0, 84, '0,57,56,84,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 22:47:11', '2024-12-13 21:06:13'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (89, '导出公告管理', 'AppstoreOutlined', '', '', '', 'plugins:content-announcement:export', 0, 84, '0,57,56,84,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 22:47:11', '2024-12-13 21:06:33'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (90, '内容分类', 'LayoutFilled', '/plugins/content/content-category', '/plugins/content/content-category/index', NULL, '', 0, 56, '0,57,56,', '2', '1', '2', '2', '1', 1, 1, '2023-03-12 23:17:44', '2023-03-12 23:20:35'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (91, '获取内容分类管理分页列表', 'AppstoreOutlined', '', '', '', 'plugins:content-category:query', 0, 90, '0,57,56,90,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:17:44', '2024-12-14 13:01:47'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (92, '新增内容分类管理详情', 'AppstoreOutlined', '', '', '', 'plugins:content-category:add', 0, 90, '0,57,56,90,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:17:44', '2024-12-14 13:02:02'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (93, '更新内容分类管理', 'AppstoreOutlined', '', '', '', 'plugins:content-category:edit', 0, 90, '0,57,56,90,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:17:44', '2024-12-14 13:02:14'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (94, '删除内容分类管理', 'AppstoreOutlined', '', '', '', 'plugins:content-category:del', 0, 90, '0,57,56,90,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:17:45', '2024-12-14 13:02:24'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (95, '导出内容分类管理', 'AppstoreOutlined', '', '', '', 'plugins:content-category:export', 0, 90, '0,57,56,90,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:17:45', '2024-12-14 13:02:34'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (96, '文章管理', 'LayoutFilled', '/plugins/content/content-article', '/plugins/content/content-article/index', NULL, '', 60, 56, '0,57,56,', '2', '1', '2', '2', '1', 1, 1, '2023-03-12 23:52:45', '2023-03-12 23:53:12'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (97, '获取文章管理分页列表', 'AppstoreOutlined', '', '', '', 'plugins:content-article:query', 0, 96, '0,57,56,96,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:52:45', '2024-12-14 13:02:56'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (98, '新增文章管理', 'AppstoreOutlined', '', '', '', 'plugins:content-article:add', 0, 96, '0,57,56,96,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:52:45', '2024-12-14 13:03:09'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (99, '更新文章管理', 'AppstoreOutlined', '', '', '', 'plugins:content-article:edit', 0, 96, '0,57,56,96,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:52:45', '2024-12-14 13:03:18'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (100, '删除文章管理', 'AppstoreOutlined', '', '', '', 'plugins:content-article:del', 0, 96, '0,57,56,96,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:52:45', '2024-12-14 13:03:28'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (101, '导出文章管理', 'AppstoreOutlined', '', '', '', 'plugins:content-article:export', 0, 96, '0,57,56,96,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-12 23:52:46', '2024-12-13 21:04:27'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (102, 'App管理', 'LayoutFilled', '/plugins/filemgr/filemgr-app', '/plugins/filemgr/filemgr-app/index', NULL, '', 0, 55, '0,57,55,', '2', '1', '2', '2', '1', 1, 1, '2023-03-13 00:55:02', '2023-03-13 00:55:52'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (103, '获取APP管理分页列表', 'AppstoreOutlined', '', '', '', 'plugins:filemgr-app:query', 0, 102, '0,57,55,102,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-13 00:55:02', '2024-12-14 13:04:41'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (104, '新增APP管理', 'AppstoreOutlined', '', '', '', 'plugins:filemgr-app:add', 0, 102, '0,57,55,102,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-13 00:55:02', '2024-12-15 22:14:53'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (105, '更新APP管理', 'AppstoreOutlined', '', '', '', 'plugins:filemgr-app:edit', 0, 102, '0,57,55,102,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-13 00:55:02', '2024-12-15 22:15:04'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (106, '删除App管理', 'AppstoreOutlined', '', '', '', 'plugins:filemgr-app:del', 0, 102, '0,57,55,102,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-13 00:55:02', '2024-12-13 21:08:39'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (107, '导出App管理', 'AppstoreOutlined', '', '', '', 'plugins:filemgr-app:export', 0, 102, '0,57,55,102,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-13 00:55:02', '2024-12-13 21:08:56'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (108, '国家区号', 'LayoutFilled', '/app/user/user-country-code', '/app/user/user-country-code/index', NULL, '', 180, 59, '0,58,59,', '2', '1', '2', '2', '1', 1, 1, '2023-03-14 17:47:44', '2024-12-23 22:02:47'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (109, '获取国家区号管理分页列表', 'AppstoreOutlined', '', '', '', 'app:user-country-code:query', 0, 108, '0,58,59,108,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-14 17:47:44', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (110, '新增国家区号管理', 'AppstoreOutlined', '', '', '', 'app:user-country-code:add', 0, 108, '0,58,59,108,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-14 17:47:44', '2024-12-14 12:51:13'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (111, '更新国家区号管理', 'AppstoreOutlined', '', '', '', 'app:user-country-code:edit', 0, 108, '0,58,59,108,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-14 17:47:44', '2024-12-14 12:51:23'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (112, '删除国家区号管理', 'AppstoreOutlined', '', '', '', 'app:user-country-code:del', 0, 108, '0,58,59,108,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-14 17:47:45', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (113, '导出国家区号管理', 'AppstoreOutlined', '', '', '', 'app:user-country-code:export', 0, 108, '0,58,59,108,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-03-14 17:47:45', '2024-12-14 12:51:44'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (114, '导出操作日志', 'AppstoreOutlined', '', '', '', 'admin:sys-oper-log:export', 0, 15, '0,1,15,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-05-09 11:02:50', '2024-12-13 21:41:12'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (115, '导出登录日志', 'AppstoreOutlined', '', '', '', 'admin:sys-login-log:export', 0, 14, '0,1,14,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-05-09 11:04:20', '2024-12-14 14:36:00'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (117, '导出字典类型', 'AppstoreOutlined', '', '', '', 'admin:sys-dict-type:export', 0, 11, '0,1,11,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-05-09 11:16:13', '2024-12-14 14:32:48'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (118, '导出配置管理', 'AppstoreOutlined', '', '', '', 'content:sys-config:export', 0, 13, '0,1,13,', '3', ' ', ' ', ' ', ' ', 1, 1, '2023-05-09 11:34:20', '2024-12-14 14:34:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (119, '首页', 'HomeFilled', '/home', '/admin/sys/home/index', '', '', 0, 0, '0,', '2', '2', '1', '2', '1', 1, 1, '2024-11-22 11:34:20', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (120, '个人中心', 'ProfileFilled', '/profile', '/admin/sys/profile/index', '', '', 0, 0, '0,', '2', '2', '2', '1', '1', 1, 1, '2024-11-23 08:20:24', '2024-12-14 15:16:20'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (121, '导出接口管理', 'AppstoreOutlined', '', '', '', 'admin:sys-api:export', 0, 51, '0,1,51,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-09 14:59:51', '2024-12-14 14:22:31'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (122, '重置系统用户密码', 'AppstoreOutlined', '', '', '', 'admin:sys-user:edit-pwd', 0, 2, '0,22,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-09 15:15:05', '2024-12-14 13:46:43'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (123, '更新角色管理数据权限', 'AppstoreOutlined', '', '', '', 'admin:sys-role:datascope', 0, 8, '0,1,8,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-09 15:19:53', '2024-12-14 14:05:10'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (124, '删除接口管理', 'AppstoreOutlined', '', '', '', 'admin:sys-api:del', 0, 51, '0,1,51,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-09 15:37:48', '2024-12-14 13:07:36'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (125, '同步接口管理', 'AppstoreOutlined', '', '', '', 'admin:sys-api:sync', 0, 51, '0,1,51,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-13 21:12:34', '2024-12-14 13:10:41'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (126, '更新表管理', 'AppstoreOutlined', '', '', '', 'admin:sys-gen:edit', 2, 48, '0,1,54,48,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-13 22:04:00', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (127, '预览', 'AppstoreOutlined', '', '', '', 'admin:sys-gen:preview', 3, 48, '0,1,54,48,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-14 03:36:14', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (128, '获取表管理分页列表', 'AppstoreOutlined', '', '', '', 'admin:sys-gen:query', 0, 48, '0,1,54,48,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-14 03:39:04', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (129, '生成代码', 'AppstoreOutlined', '', '', '', 'admin:sys-gen:gen-code', 4, 48, '0,1,54,48,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-14 03:40:26', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (130, '下载代码', 'AppstoreOutlined', '', '', '', 'admin:sys-gen:download-code', 5, 48, '0,1,54,48,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-14 03:41:22', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (131, '配置导入', 'AppstoreOutlined', '', '', '', 'admin:sys-gen:import-config', 6, 48, '0,1,54,48,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-14 03:43:36', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (132, '表管理删除', 'AppstoreOutlined', '', '', '', 'admin:sys-gen:del', 7, 48, '0,1,54,48,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-14 03:44:46', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (133, '新增表管理', 'AppstoreOutlined', '', '', '', 'admin:sys-gen:import-table', 1, 48, '0,1,54,48,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-14 14:50:46', '2024-12-23 22:07:21'); +INSERT INTO "public"."admin_sys_menu" ("id", "title", "icon", "path", "element", "redirect", "permission", "sort", "parent_id", "parent_ids", "menu_type", "is_keep_alive", "is_affix", "is_hidden", "is_frame", "create_by", "update_by", "created_at", "updated_at") VALUES (134, '导出岗位管理', 'AppstoreOutlined', '', '', '', 'admin:sys-post:export', 0, 10, '0,1,10,', '3', ' ', ' ', ' ', ' ', 1, 1, '2024-12-15 22:23:26', '2024-12-15 22:23:26'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_menu', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_menu),false); + +-- ---------------------------- +-- Table structure for admin_sys_menu_api_rule +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_menu_api_rule"; +CREATE TABLE "public"."admin_sys_menu_api_rule" ( + "admin_sys_menu_menu_id" BIGINT NOT NULL, + "admin_sys_api_id" BIGINT NOT NULL +) +; +ALTER TABLE "public"."admin_sys_menu_api_rule" OWNER TO "postgres"; +COMMENT ON TABLE "public"."admin_sys_menu_api_rule" IS '菜单和角色关联'; + +-- ---------------------------- +-- Records of admin_sys_menu_api_rule +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (32, 1); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (126, 2); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (117, 3); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (34, 4); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (36, 5); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (38, 7); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (3, 9); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (4, 9); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (5, 9); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (24, 9); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (25, 9); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (26, 9); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (123, 10); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (26, 11); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (16, 12); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (17, 12); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (18, 12); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (20, 14); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (22, 14); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (17, 15); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (50, 16); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (128, 20); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (130, 21); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (131, 22); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (129, 23); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (133, 24); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (127, 25); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (126, 26); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (52, 27); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (125, 28); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (16, 30); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (17, 30); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (121, 31); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (53, 32); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (40, 33); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (118, 34); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (42, 37); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (28, 38); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (3, 39); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (5, 39); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (134, 40); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (30, 41); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (4, 42); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (5, 45); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (44, 46); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (115, 47); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (46, 49); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (114, 50); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (21, 52); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (3, 53); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (5, 53); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (22, 54); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (123, 54); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (74, 55); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (109, 56); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (113, 57); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (111, 58); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (71, 59); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (72, 60); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (68, 61); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (69, 62); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (62, 64); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (66, 65); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (64, 66); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (79, 67); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (80, 68); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (77, 70); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (76, 71); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (85, 72); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (89, 73); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (87, 74); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (97, 75); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (101, 76); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (99, 77); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (91, 78); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (95, 79); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (93, 80); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (103, 81); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (107, 82); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (105, 83); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (83, 84); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (37, 89); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (33, 90); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (25, 91); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (3, 92); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (41, 94); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (133, 95); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (16, 96); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (29, 97); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (20, 98); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (75, 99); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (110, 100); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (63, 101); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (86, 102); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (98, 103); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (92, 104); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (104, 105); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (104, 106); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (105, 106); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (122, 110); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (5, 111); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (5, 112); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (38, 113); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (34, 114); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (26, 115); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (22, 116); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (123, 117); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (22, 118); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (53, 119); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (42, 120); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (126, 121); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (17, 122); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (30, 123); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (72, 124); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (111, 125); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (64, 126); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (76, 127); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (87, 128); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (99, 129); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (93, 130); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (105, 131); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (39, 132); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (35, 133); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (27, 134); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (124, 135); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (43, 136); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (132, 137); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (45, 138); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (19, 139); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (47, 140); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (31, 141); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (23, 142); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (6, 143); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (112, 144); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (65, 145); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (88, 146); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (100, 147); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (94, 148); +INSERT INTO "public"."admin_sys_menu_api_rule" ("admin_sys_menu_menu_id", "admin_sys_api_id") VALUES (106, 149); +COMMIT; + +-- ---------------------------- +-- Foreign Keys structure for table admin_sys_menu_api_rule +-- ---------------------------- +ALTER TABLE "public"."admin_sys_menu_api_rule" ADD CONSTRAINT "fk_admin_sys_menu_api_rule_admin_sys_api" FOREIGN KEY ("admin_sys_api_id") REFERENCES "public"."admin_sys_api" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION; +ALTER TABLE "public"."admin_sys_menu_api_rule" ADD CONSTRAINT "fk_admin_sys_menu_api_rule_admin_sys_menu" FOREIGN KEY ("admin_sys_menu_menu_id") REFERENCES "public"."admin_sys_menu" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- ---------------------------- +-- Table structure for admin_sys_oper_log +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_oper_log"; +CREATE TABLE "public"."admin_sys_oper_log" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "request_method" varchar(128), + "user_id" BIGINT, + "oper_url" varchar(255), + "oper_ip" varchar(128), + "oper_location" varchar(128), + "status" varchar(10) NOT NULL DEFAULT '1'::bpchar, + "oper_time" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "json_result" varchar(255), + "remark" varchar(255), + "latency_time" varchar(128), + "user_agent" varchar(255), + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "create_by" BIGINT, + "update_by" BIGINT +) +; +ALTER TABLE "public"."admin_sys_oper_log" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."id" IS '主键编码'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."request_method" IS '请求方式'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."user_id" IS '操作者'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."oper_url" IS '访问地址'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."oper_ip" IS '客户端ip'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."oper_location" IS '访问位置'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."status" IS '状态码'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."oper_time" IS '操作时间'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."json_result" IS '返回数据'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."remark" IS '备注'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."latency_time" IS '耗时'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."user_agent" IS 'ua'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."updated_at" IS '最后更新时间'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_oper_log"."update_by" IS '更新者'; +COMMENT ON TABLE "public"."admin_sys_oper_log" IS '操作日志'; + +-- ---------------------------- +-- Records of admin_sys_oper_log +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (1, 'GET', 0, '/admin-api/v1/admin/sys/sys-dict/data/select?dictType=sys_loginlog_status', '::1', '----', '0', '2024-12-13 19:58:21', '', '', '103.691µs', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:21', '2024-12-13 19:58:21', 0, 0); +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (2, 'GET', 0, '/admin-api/v1/admin/sys/sys-login-log?current=1&pageSize=10&pageIndex=1', '::1', '----', '0', '2024-12-13 19:58:21', '', '', '77.727µs', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:21', '2024-12-13 19:58:21', 0, 0); +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (3, 'GET', 0, '/admin-api/v1/captcha', '::1', '----', '200', '2024-12-13 19:58:21', '{"requestId":"0c3c60bf-821d-4319-b2d0-12b73820f7c8","code":200,"msg":"操作成功","data":{"data":"', '', '6.544784ms', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:22', '2024-12-13 19:58:22', 0, 0); +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (4, 'POST', 0, '/admin-api/v1/login', '::1', '----', '0', '2024-12-13 19:58:24', '', '', '542.303289ms', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:24', '2024-12-13 19:58:24', 0, 0); +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (5, 'GET', 1, '/admin-api/v1/admin/sys/sys-menu/menu-role', '::1', '----', '200', '2024-12-13 19:58:25', '{"requestId":"26faed14-3368-4659-ae32-ef52b4c147bb","code":200,"msg":"操作成功","data":[{"id":12', '', '258.360931ms', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:25', '2024-12-13 19:58:25', 0, 0); +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (6, 'GET', 1, '/admin-api/v1/admin/sys/sys-user/profile', '::1', '----', '200', '2024-12-13 19:58:25', '{"requestId":"be0a364a-29ef-4b3d-92e4-7fb273c14b22","code":200,"msg":"操作成功","data":{"id":1,"', '', '335.553575ms', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:25', '2024-12-13 19:58:25', 0, 0); +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (7, 'GET', 1, '/admin-api/v1/admin/sys/sys-dict/data/select?dictType=sys_loginlog_status', '::1', '----', '200', '2024-12-13 19:58:29', '{"requestId":"8bc97d55-3a07-4090-9c8f-beeccf652221","code":200,"msg":"操作成功","data":[{"id":52', '', '91.293486ms', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:29', '2024-12-13 19:58:29', 0, 0); +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (8, 'GET', 1, '/admin-api/v1/admin/sys/sys-login-log?current=1&pageSize=10&pageIndex=1', '::1', '----', '200', '2024-12-13 19:58:29', '{"requestId":"0b118004-4e96-40c9-b85a-9f33eaf224bd","code":200,"msg":"操作成功","data":{"count":', '', '83.075227ms', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:30', '2024-12-13 19:58:30', 0, 0); +INSERT INTO "public"."admin_sys_oper_log" ("id", "request_method", "user_id", "oper_url", "oper_ip", "oper_location", "status", "oper_time", "json_result", "remark", "latency_time", "user_agent", "created_at", "updated_at", "create_by", "update_by") VALUES (9, 'GET', 1, '/admin-api/v1/admin/sys/sys-oper-log?current=1&pageSize=10&pageIndex=1', '::1', '----', '200', '2024-12-13 19:58:31', '{"requestId":"238ac974-ddda-4e48-acb8-3c51ebc960a0","code":200,"msg":"操作成功","data":{"count":', '', '84.911552ms', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', '2024-12-13 19:58:31', '2024-12-13 19:58:31', 0, 0); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_oper_log', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_oper_log),false); + +-- ---------------------------- +-- Table structure for admin_sys_post +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_post"; +CREATE TABLE "public"."admin_sys_post" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "post_name" varchar(128), + "post_code" varchar(128), + "sort" int2, + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "remark" varchar(255), + "create_by" BIGINT, + "update_by" BIGINT, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."admin_sys_post" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_post"."id" IS '主键编码'; +COMMENT ON COLUMN "public"."admin_sys_post"."post_name" IS '岗位名称'; +COMMENT ON COLUMN "public"."admin_sys_post"."post_code" IS '岗位编码'; +COMMENT ON COLUMN "public"."admin_sys_post"."sort" IS '排序'; +COMMENT ON COLUMN "public"."admin_sys_post"."status" IS '状态 1-正常 2-异常'; +COMMENT ON COLUMN "public"."admin_sys_post"."remark" IS '备注'; +COMMENT ON COLUMN "public"."admin_sys_post"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_post"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_post"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_post"."updated_at" IS '最后更新时间'; +COMMENT ON TABLE "public"."admin_sys_post" IS '岗位管理'; + +-- ---------------------------- +-- Records of admin_sys_post +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_post" ("id", "post_name", "post_code", "sort", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (1, '首席执行官', 'CEO', 0, '1', '首席执行官', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_post" ("id", "post_name", "post_code", "sort", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (2, '首席技术执行官', 'CTO', 2, '1', '首席技术执行官', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +INSERT INTO "public"."admin_sys_post" ("id", "post_name", "post_code", "sort", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (3, '首席运营官', 'COO', 3, '1', '测试工程师', 1, 1, '2021-05-13 19:56:38', '2021-05-13 19:56:38'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_post', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_post),false); + +-- ---------------------------- +-- Table structure for admin_sys_role +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_role"; +CREATE TABLE "public"."admin_sys_role" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "role_name" varchar(128), + "role_key" varchar(128), + "role_sort" int2, + "remark" varchar(255), + "data_scope" varchar(128), + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT, + "update_by" BIGINT, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."admin_sys_role" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_role"."status" IS '状态 1-正常 2-停用'; +COMMENT ON COLUMN "public"."admin_sys_role"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_role"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_role"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_role"."updated_at" IS '最后更新时间'; +COMMENT ON TABLE "public"."admin_sys_role" IS '角色管理'; + +-- ---------------------------- +-- Records of admin_sys_role +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_role" ("id", "role_name", "role_key", "role_sort", "remark", "data_scope", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (1, '系统管理员', 'admin', 1, '', '', '1', 1, 1, '2021-05-13 19:56:38', '2023-03-03 01:04:04'); +INSERT INTO "public"."admin_sys_role" ("id", "role_name", "role_key", "role_sort", "remark", "data_scope", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (2, 'test', 'test', 0, '', '', '1', 1, 1, '2023-04-27 14:33:47', '2024-12-14 15:16:20'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_role', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_role),false); + +-- ---------------------------- +-- Table structure for admin_sys_role_dept +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_role_dept"; +CREATE TABLE "public"."admin_sys_role_dept" ( + "role_id" BIGINT NOT NULL, + "dept_id" BIGINT NOT NULL +) +; +ALTER TABLE "public"."admin_sys_role_dept" OWNER TO "postgres"; +COMMENT ON TABLE "public"."admin_sys_role_dept" IS '角色部门关联'; + +-- ---------------------------- +-- Records of admin_sys_role_dept +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_role_dept" ("role_id", "dept_id") VALUES (2, 3); +INSERT INTO "public"."admin_sys_role_dept" ("role_id", "dept_id") VALUES (2, 4); +COMMIT; + +-- ---------------------------- +-- Table structure for admin_sys_role_menu +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_role_menu"; +CREATE TABLE "public"."admin_sys_role_menu" ( + "role_id" BIGINT NOT NULL, + "menu_id" BIGINT NOT NULL +) +; +ALTER TABLE "public"."admin_sys_role_menu" OWNER TO "postgres"; +COMMENT ON TABLE "public"."admin_sys_role_menu" IS '角色菜单关联'; + +-- ---------------------------- +-- Records of admin_sys_role_menu +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 62); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 66); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 70); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 71); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 72); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 74); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 109); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 112); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 119); +INSERT INTO "public"."admin_sys_role_menu" ("role_id", "menu_id") VALUES (2, 120); +COMMIT; + +-- ---------------------------- +-- Foreign Keys structure for table admin_sys_role_menu +-- ---------------------------- +ALTER TABLE "public"."admin_sys_role_menu" ADD CONSTRAINT "fk_admin_sys_role_menu_admin_sys_menu" FOREIGN KEY ("menu_id") REFERENCES "public"."admin_sys_menu" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION; +ALTER TABLE "public"."admin_sys_role_menu" ADD CONSTRAINT "fk_admin_sys_role_menu_admin_sys_role" FOREIGN KEY ("role_id") REFERENCES "public"."admin_sys_role" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- ---------------------------- +-- Table structure for admin_sys_user +-- ---------------------------- +DROP TABLE IF EXISTS "public"."admin_sys_user"; +CREATE TABLE "public"."admin_sys_user" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "username" varchar(64) COLLATE "pg_catalog"."C", + "password" varchar(128) COLLATE "pg_catalog"."C", + "nick_name" varchar(128) COLLATE "pg_catalog"."C", + "phone" varchar(11) COLLATE "pg_catalog"."C", + "role_id" BIGINT, + "salt" varchar(255) COLLATE "pg_catalog"."C", + "avatar" varchar(255) COLLATE "pg_catalog"."C", + "sex" VARCHAR(1) COLLATE "pg_catalog"."C", + "email" varchar(128) COLLATE "pg_catalog"."C", + "dept_id" BIGINT, + "post_id" BIGINT, + "remark" varchar(255) COLLATE "pg_catalog"."C", + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT, + "update_by" BIGINT, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."admin_sys_user" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."admin_sys_user"."id" IS '编码'; +COMMENT ON COLUMN "public"."admin_sys_user"."username" IS '用户名'; +COMMENT ON COLUMN "public"."admin_sys_user"."password" IS '密码'; +COMMENT ON COLUMN "public"."admin_sys_user"."nick_name" IS '昵称'; +COMMENT ON COLUMN "public"."admin_sys_user"."phone" IS '手机号'; +COMMENT ON COLUMN "public"."admin_sys_user"."role_id" IS '角色ID'; +COMMENT ON COLUMN "public"."admin_sys_user"."salt" IS '加盐'; +COMMENT ON COLUMN "public"."admin_sys_user"."avatar" IS '头像'; +COMMENT ON COLUMN "public"."admin_sys_user"."sex" IS '性别'; +COMMENT ON COLUMN "public"."admin_sys_user"."email" IS '邮箱'; +COMMENT ON COLUMN "public"."admin_sys_user"."dept_id" IS '部门'; +COMMENT ON COLUMN "public"."admin_sys_user"."post_id" IS '岗位'; +COMMENT ON COLUMN "public"."admin_sys_user"."remark" IS '备注'; +COMMENT ON COLUMN "public"."admin_sys_user"."status" IS '状态 1-正常 2-异常'; +COMMENT ON COLUMN "public"."admin_sys_user"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."admin_sys_user"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."admin_sys_user"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."admin_sys_user"."updated_at" IS '最后更新时间'; +COMMENT ON TABLE "public"."admin_sys_user" IS '系统用户管理'; + +-- ---------------------------- +-- Records of admin_sys_user +-- ---------------------------- +BEGIN; +INSERT INTO "public"."admin_sys_user" ("id", "username", "password", "nick_name", "phone", "role_id", "salt", "avatar", "sex", "email", "dept_id", "post_id", "remark", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (1, 'admin', '$2a$10$40Xa1HapSFE0kJdHV46LPebz6itTy60qfnXc3kFwTPV.qELEJ9k5q', 'admin', '13700000000', 1, '', 'http://www.bitxx.top/images/my_head-touch-icon-next.png', '1', 'admin@admin.com', 1, 1, '', '1', 1, 1, '2021-05-13 19:56:38', '2023-03-14 09:27:36'); +INSERT INTO "public"."admin_sys_user" ("id", "username", "password", "nick_name", "phone", "role_id", "salt", "avatar", "sex", "email", "dept_id", "post_id", "remark", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (2, 'test', '$2a$10$7RrDlHPBnnIpmjFEk9l4BusOVxqPrzk3mcxOX2h9EzI.YAmkzHTB6', 'test', '13711111111', 2, '', 'http://www.bitxx.top/images/my_head-touch-icon-next.png', '1', '13711111111@qq.com', 2, 2, '', '1', 1, 1, '2023-04-27 14:34:57', '2024-12-13 20:15:25'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.admin_sys_user', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.admin_sys_user),false); + +-- ---------------------------- +-- Table structure for app_user +-- ---------------------------- +DROP TABLE IF EXISTS "public"."app_user"; +CREATE TABLE "public"."app_user" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "level_id" BIGINT NOT NULL DEFAULT 1, + "user_name" varchar(100) COLLATE "pg_catalog"."C" NOT NULL DEFAULT ''::character varying, + "true_name" varchar(100) COLLATE "pg_catalog"."C" NOT NULL DEFAULT ''::character varying, + "money" numeric(30,18) NOT NULL DEFAULT 0, + "email" varchar(300) COLLATE "pg_catalog"."C", + "mobile_title" varchar(255) COLLATE "pg_catalog"."C" NOT NULL DEFAULT '+86'::character varying, + "mobile" varchar(100) COLLATE "pg_catalog"."C", + "avatar" varchar(1000) COLLATE "pg_catalog"."C", + "pay_pwd" varchar(100) COLLATE "pg_catalog"."C" NOT NULL DEFAULT ''::character varying, + "pwd" varchar(100) COLLATE "pg_catalog"."C" NOT NULL DEFAULT ''::character varying, + "ref_code" varchar(255) COLLATE "pg_catalog"."C", + "parent_id" BIGINT NOT NULL DEFAULT 0, + "parent_ids" varchar(1000) COLLATE "pg_catalog"."C" NOT NULL DEFAULT ''::character varying, + "tree_sort" int2 NOT NULL DEFAULT 0, + "tree_sorts" varchar(1000) COLLATE "pg_catalog"."C" NOT NULL DEFAULT '0'::character varying, + "tree_leaf" VARCHAR(1) COLLATE "pg_catalog"."C" NOT NULL DEFAULT '0'::bpchar, + "tree_level" int2 NOT NULL DEFAULT 0, + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "remark" varchar(255) COLLATE "pg_catalog"."C", + "create_by" BIGINT NOT NULL DEFAULT 0, + "update_by" BIGINT NOT NULL DEFAULT 0, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."app_user" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."app_user"."id" IS '用户编码'; +COMMENT ON COLUMN "public"."app_user"."level_id" IS '用户等级编号'; +COMMENT ON COLUMN "public"."app_user"."user_name" IS '用户昵称'; +COMMENT ON COLUMN "public"."app_user"."true_name" IS '真实姓名'; +COMMENT ON COLUMN "public"."app_user"."money" IS '余额'; +COMMENT ON COLUMN "public"."app_user"."email" IS '电子邮箱'; +COMMENT ON COLUMN "public"."app_user"."mobile_title" IS '用户手机号国家前缀'; +COMMENT ON COLUMN "public"."app_user"."mobile" IS '手机号码'; +COMMENT ON COLUMN "public"."app_user"."avatar" IS '头像路径'; +COMMENT ON COLUMN "public"."app_user"."pay_pwd" IS '提现密码'; +COMMENT ON COLUMN "public"."app_user"."pwd" IS '登录密码'; +COMMENT ON COLUMN "public"."app_user"."ref_code" IS '推荐码'; +COMMENT ON COLUMN "public"."app_user"."parent_id" IS '父级编号'; +COMMENT ON COLUMN "public"."app_user"."parent_ids" IS '所有父级编号'; +COMMENT ON COLUMN "public"."app_user"."tree_sort" IS '本级排序号(升序)'; +COMMENT ON COLUMN "public"."app_user"."tree_sorts" IS '所有级别排序号'; +COMMENT ON COLUMN "public"."app_user"."tree_leaf" IS '是否最末级'; +COMMENT ON COLUMN "public"."app_user"."tree_level" IS '层次级别'; +COMMENT ON COLUMN "public"."app_user"."status" IS '状态(1-正常 2-异常)'; +COMMENT ON COLUMN "public"."app_user"."remark" IS '备注信息'; +COMMENT ON COLUMN "public"."app_user"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."app_user"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."app_user"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."app_user"."updated_at" IS '更新时间'; +COMMENT ON TABLE "public"."app_user" IS '用户管理'; + +-- ---------------------------- +-- Records of app_user +-- ---------------------------- +BEGIN; +INSERT INTO "public"."app_user" ("id", "level_id", "user_name", "true_name", "money", "email", "mobile_title", "mobile", "avatar", "pay_pwd", "pwd", "ref_code", "parent_id", "parent_ids", "tree_sort", "tree_sorts", "tree_leaf", "tree_level", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (1, 1, '- -', '- -', 1.000000000000000000, 'fb0cc809bbed1743bd7d2d8f444e2bae099e69819f4e072f7057bb1e4249bf3d', '86', '6d84b6afd68a5c7188779114f16c46e9', 'http://www.bitxx.top/images/my_head-touch-icon-next.png', '', '', 'akIiWm', 0, '0,', 1, '1,', '2', 1, '1', '', 0, 1, '2023-04-03 21:09:13', '2023-10-19 14:03:37'); +INSERT INTO "public"."app_user" ("id", "level_id", "user_name", "true_name", "money", "email", "mobile_title", "mobile", "avatar", "pay_pwd", "pwd", "ref_code", "parent_id", "parent_ids", "tree_sort", "tree_sorts", "tree_leaf", "tree_level", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (2, 2, '- -', '- -', 0.000000000000000000, 'dca887a13d1225ccd447dc52a712861c099e69819f4e072f7057bb1e4249bf3d', '86', '84ace68f39f53a315d8114c61413505d', 'http://www.bitxx.top/images/my_head-touch-icon-next.png', '', '', 'GQFz6v', 1, '0,1,', 1, '1,1,', '1', 2, '1', '', 0, 1, '2023-04-03 21:29:34', '2023-10-19 14:06:49'); +INSERT INTO "public"."app_user" ("id", "level_id", "user_name", "true_name", "money", "email", "mobile_title", "mobile", "avatar", "pay_pwd", "pwd", "ref_code", "parent_id", "parent_ids", "tree_sort", "tree_sorts", "tree_leaf", "tree_level", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (3, 1, '- -', '- -', 0.000000000000000000, '4884f3537b62e668d33c6af76ddf6670099e69819f4e072f7057bb1e4249bf3d', '86', 'ff4273c3b1372055923122f9881b651b', 'http://www.bitxx.top/images/my_head-touch-icon-next.png', '', '', 'tT1Fbk', 1, '0,1,', 2, '1,2,', '1', 2, '1', '', 0, 1, '2023-04-03 21:29:35', '2023-10-19 14:06:37'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.app_user', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.app_user),false); + +-- ---------------------------- +-- Table structure for app_user_account_log +-- ---------------------------- +DROP TABLE IF EXISTS "public"."app_user_account_log"; +CREATE TABLE "public"."app_user_account_log" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "user_id" BIGINT NOT NULL, + "change_money" numeric(10,2) NOT NULL DEFAULT 0.00, + "before_money" numeric(30,18) NOT NULL DEFAULT 0.000000000000000000, + "after_money" numeric(30,18) NOT NULL DEFAULT 0.000000000000000000, + "money_type" VARCHAR(10) COLLATE "pg_catalog"."C" NOT NULL DEFAULT '1'::bpchar, + "change_type" varchar(30) COLLATE "pg_catalog"."C" NOT NULL DEFAULT '1'::character varying, + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT NOT NULL, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "update_by" BIGINT NOT NULL, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "remarks" varchar(500) COLLATE "pg_catalog"."C" +) +; +ALTER TABLE "public"."app_user_account_log" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."app_user_account_log"."id" IS '账变编号'; +COMMENT ON COLUMN "public"."app_user_account_log"."user_id" IS '用户编号'; +COMMENT ON COLUMN "public"."app_user_account_log"."change_money" IS '账变金额'; +COMMENT ON COLUMN "public"."app_user_account_log"."before_money" IS '账变前金额'; +COMMENT ON COLUMN "public"."app_user_account_log"."after_money" IS '账变后金额'; +COMMENT ON COLUMN "public"."app_user_account_log"."money_type" IS '金额类型 1:余额'; +COMMENT ON COLUMN "public"."app_user_account_log"."change_type" IS '帐变类型(1-类型1)'; +COMMENT ON COLUMN "public"."app_user_account_log"."status" IS '状态(1正常 2-异常)'; +COMMENT ON COLUMN "public"."app_user_account_log"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."app_user_account_log"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."app_user_account_log"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."app_user_account_log"."updated_at" IS '更新时间'; +COMMENT ON COLUMN "public"."app_user_account_log"."remarks" IS '备注信息'; +COMMENT ON TABLE "public"."app_user_account_log" IS '账变记录'; + +-- ---------------------------- +-- Records of app_user_account_log +-- ---------------------------- +BEGIN; +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (1, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (2, 2, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (3, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (4, 3, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (5, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (6, 2, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (7, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (8, 3, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +INSERT INTO "public"."app_user_account_log" ("id", "user_id", "change_money", "before_money", "after_money", "money_type", "change_type", "status", "create_by", "created_at", "update_by", "updated_at", "remarks") VALUES (9, 1, 10.00, 0.000000000000010000, 20.000000000000000000, '1 ', '1', '1', 1, '2023-03-09 22:55:48', 1, '2023-03-09 22:55:51', NULL); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.app_user_account_log', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.app_user_account_log),false); + +-- ---------------------------- +-- Indexes structure for table app_user_account_log +-- ---------------------------- +CREATE INDEX "idx_qyc_user_status" ON "public"."app_user_account_log" USING btree ( + "status" COLLATE "pg_catalog"."C" "pg_catalog"."bpchar_ops" ASC NULLS LAST +); + +-- ---------------------------- +-- Table structure for app_user_conf +-- ---------------------------- +DROP TABLE IF EXISTS "public"."app_user_conf"; +CREATE TABLE "public"."app_user_conf" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "user_id" BIGINT NOT NULL, + "can_login" VARCHAR(1) COLLATE "pg_catalog"."C" NOT NULL DEFAULT '0'::bpchar, + "remark" varchar(255) COLLATE "pg_catalog"."C", + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT NOT NULL DEFAULT 0, + "update_by" BIGINT NOT NULL DEFAULT 0, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."app_user_conf" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."app_user_conf"."id" IS '主键'; +COMMENT ON COLUMN "public"."app_user_conf"."user_id" IS '用户id'; +COMMENT ON COLUMN "public"."app_user_conf"."can_login" IS '1-允许登陆;2-不允许登陆'; +COMMENT ON COLUMN "public"."app_user_conf"."remark" IS '备注信息'; +COMMENT ON COLUMN "public"."app_user_conf"."status" IS '状态(1-正常 2-异常)'; +COMMENT ON COLUMN "public"."app_user_conf"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."app_user_conf"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."app_user_conf"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."app_user_conf"."updated_at" IS '更新时间'; +COMMENT ON TABLE "public"."app_user_conf" IS '用户配置'; + +-- ---------------------------- +-- Records of app_user_conf +-- ---------------------------- +BEGIN; +INSERT INTO "public"."app_user_conf" ("id", "user_id", "can_login", "remark", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (1, 1, '1', '', '1', 198, 198, '2023-04-03 21:09:13', '2023-04-03 21:09:13'); +INSERT INTO "public"."app_user_conf" ("id", "user_id", "can_login", "remark", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (2, 2, '1', '', '1', 200, 200, '2023-04-03 21:29:34', '2023-04-03 21:29:34'); +INSERT INTO "public"."app_user_conf" ("id", "user_id", "can_login", "remark", "status", "create_by", "update_by", "created_at", "updated_at") VALUES (3, 3, '1', '', '1', 201, 201, '2023-04-03 21:29:35', '2023-04-03 21:29:35'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.app_user_conf', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.app_user_conf),false); + +-- ---------------------------- +-- Table structure for app_user_country_code +-- ---------------------------- +DROP TABLE IF EXISTS "public"."app_user_country_code"; +CREATE TABLE "public"."app_user_country_code" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "country" varchar(64) NOT NULL DEFAULT ''::character varying, + "code" varchar(12) NOT NULL DEFAULT ''::character varying, + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "remark" varchar(255) COLLATE "pg_catalog"."C", + "create_by" BIGINT NOT NULL DEFAULT 0, + "update_by" BIGINT NOT NULL DEFAULT 0, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."app_user_country_code" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."app_user_country_code"."country" IS '国家或地区'; +COMMENT ON COLUMN "public"."app_user_country_code"."code" IS '区号'; +COMMENT ON COLUMN "public"."app_user_country_code"."status" IS '状态(1-可用 2-停用)'; +COMMENT ON COLUMN "public"."app_user_country_code"."remark" IS '备注信息'; +COMMENT ON COLUMN "public"."app_user_country_code"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."app_user_country_code"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."app_user_country_code"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."app_user_country_code"."updated_at" IS '更新时间'; +COMMENT ON TABLE "public"."app_user_country_code" IS '国家区号'; + +-- ---------------------------- +-- Records of app_user_country_code +-- ---------------------------- +BEGIN; +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (1, '新加坡', '65', '2', '', 1, 1, '2021-06-29 14:10:00', '2021-06-29 14:10:00'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (2, '加拿大', '1', '2', '', 1, 1, '2021-06-29 14:10:21', '2021-06-29 14:10:21'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (3, '韩国', '82', '2', '', 1, 1, '2021-06-29 14:10:36', '2021-06-29 14:10:36'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (4, '日本', '81', '2', '', 1, 1, '2021-06-29 14:10:49', '2021-06-29 14:10:49'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (5, '中国香港', '852', '2', '', 1, 1, '2021-06-29 14:11:02', '2021-06-29 14:11:02'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (6, '中国澳门', '853', '2', '', 1, 1, '2021-06-29 14:11:15', '2021-06-29 14:11:15'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (7, '中国台湾', '886', '2', '', 1, 1, '2021-06-29 14:11:25', '2021-06-29 14:11:25'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (8, '泰国', '66', '2', '', 1, 1, '2021-06-29 14:11:36', '2021-06-29 14:11:36'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (9, '缅甸', '95', '2', '', 1, 1, '2021-06-29 14:11:45', '2021-06-29 14:11:45'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (10, '老挝', '856', '1', '', 1, 1, '2021-06-29 14:11:59', '2023-03-14 21:11:18'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (11, '澳大利亚', '61', '2', '', 1, 1, '2021-06-29 14:12:14', '2021-06-29 14:12:14'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (12, '俄罗斯', '7', '1', '', 1, 1, '2021-06-29 14:12:32', '2023-03-14 21:11:08'); +INSERT INTO "public"."app_user_country_code" ("id", "country", "code", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (13, '中国大陆', '86', '1', '', 1, 1, '2021-06-29 14:16:22', '2023-03-14 21:11:03'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.app_user_country_code', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.app_user_country_code),false); + +-- ---------------------------- +-- Table structure for app_user_level +-- ---------------------------- +DROP TABLE IF EXISTS "public"."app_user_level"; +CREATE TABLE "public"."app_user_level" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "name" varchar(255) NOT NULL, + "level_type" varchar(10), + "level" int4 NOT NULL, + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "remark" varchar(255) COLLATE "pg_catalog"."C", + "create_by" BIGINT NOT NULL DEFAULT 0, + "update_by" BIGINT NOT NULL DEFAULT 0, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."app_user_level" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."app_user_level"."id" IS '主键'; +COMMENT ON COLUMN "public"."app_user_level"."name" IS '等级名称'; +COMMENT ON COLUMN "public"."app_user_level"."level_type" IS '等级类型'; +COMMENT ON COLUMN "public"."app_user_level"."level" IS '等级'; +COMMENT ON COLUMN "public"."app_user_level"."status" IS '状态(1-正常 2-异常)'; +COMMENT ON COLUMN "public"."app_user_level"."remark" IS '备注信息'; +COMMENT ON COLUMN "public"."app_user_level"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."app_user_level"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."app_user_level"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."app_user_level"."updated_at" IS '更新时间'; +COMMENT ON TABLE "public"."app_user_level" IS '用户等级'; + +-- ---------------------------- +-- Records of app_user_level +-- ---------------------------- +BEGIN; +INSERT INTO "public"."app_user_level" ("id", "name", "level_type", "level", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (1, 'test3', '2', 2, '1', '', 1, 1, '2023-03-09 17:05:24', '2023-03-09 17:05:24'); +INSERT INTO "public"."app_user_level" ("id", "name", "level_type", "level", "status", "remark", "create_by", "update_by", "created_at", "updated_at") VALUES (2, 'test34', '1', 1, '1', '', 1, 1, '2023-03-09 17:05:37', '2023-03-09 20:19:19'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.app_user_level', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.app_user_level),false); + +-- ---------------------------- +-- Table structure for app_user_oper_log +-- ---------------------------- +DROP TABLE IF EXISTS "public"."app_user_oper_log"; +CREATE TABLE "public"."app_user_oper_log" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "user_id" BIGINT NOT NULL DEFAULT 1, + "action_type" VARCHAR(2) COLLATE "pg_catalog"."C" NOT NULL DEFAULT ''::bpchar, + "by_type" VARCHAR(2) COLLATE "pg_catalog"."C" NOT NULL DEFAULT ''::bpchar, + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT NOT NULL DEFAULT 0, + "update_by" BIGINT NOT NULL DEFAULT 0, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "remark" varchar(255) COLLATE "pg_catalog"."C" +) +; +ALTER TABLE "public"."app_user_oper_log" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."app_user_oper_log"."id" IS '日志编码'; +COMMENT ON COLUMN "public"."app_user_oper_log"."user_id" IS '用户编号'; +COMMENT ON COLUMN "public"."app_user_oper_log"."action_type" IS '用户行为类型'; +COMMENT ON COLUMN "public"."app_user_oper_log"."by_type" IS '更新用户类型 1-app用户 2-后台用户'; +COMMENT ON COLUMN "public"."app_user_oper_log"."status" IS '状态(1-正常 2-异常)'; +COMMENT ON COLUMN "public"."app_user_oper_log"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."app_user_oper_log"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."app_user_oper_log"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."app_user_oper_log"."updated_at" IS '更新时间'; +COMMENT ON COLUMN "public"."app_user_oper_log"."remark" IS '备注信息'; +COMMENT ON TABLE "public"."app_user_oper_log" IS '用户关键行为日志表'; + +-- ---------------------------- +-- Records of app_user_oper_log +-- ---------------------------- +BEGIN; +INSERT INTO "public"."app_user_oper_log" ("id", "user_id", "action_type", "by_type", "status", "create_by", "update_by", "created_at", "updated_at", "remark") VALUES (1, 1, ' ', '2', '1', 1, 1, '2023-03-11 15:39:31', '2023-03-11 15:39:31', ''); +INSERT INTO "public"."app_user_oper_log" ("id", "user_id", "action_type", "by_type", "status", "create_by", "update_by", "created_at", "updated_at", "remark") VALUES (2, 2, ' ', '2', '1', 1, 1, '2023-03-11 15:41:16', '2023-03-11 15:41:16', ''); +INSERT INTO "public"."app_user_oper_log" ("id", "user_id", "action_type", "by_type", "status", "create_by", "update_by", "created_at", "updated_at", "remark") VALUES (3, 3, ' ', '1', '1', 1, 1, '2023-03-11 15:45:44', '2023-03-11 15:45:44', ''); +INSERT INTO "public"."app_user_oper_log" ("id", "user_id", "action_type", "by_type", "status", "create_by", "update_by", "created_at", "updated_at", "remark") VALUES (4, 1, ' ', '1', '1', 1, 1, '2023-03-11 15:46:13', '2023-03-11 15:46:13', ''); +INSERT INTO "public"."app_user_oper_log" ("id", "user_id", "action_type", "by_type", "status", "create_by", "update_by", "created_at", "updated_at", "remark") VALUES (5, 3, '2 ', '1', '1', 1, 1, '2023-03-11 15:54:05', '2023-03-11 15:54:05', ''); +INSERT INTO "public"."app_user_oper_log" ("id", "user_id", "action_type", "by_type", "status", "create_by", "update_by", "created_at", "updated_at", "remark") VALUES (6, 2, '1 ', '1', '1', 1, 1, '2023-03-11 15:56:36', '2023-03-11 15:56:36', ''); +INSERT INTO "public"."app_user_oper_log" ("id", "user_id", "action_type", "by_type", "status", "create_by", "update_by", "created_at", "updated_at", "remark") VALUES (7, 1, '2 ', '1', '1', 1, 1, '2023-03-11 16:03:35', '2023-03-11 16:03:35', ''); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.app_user_oper_log', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.app_user_oper_log),false); + +-- ---------------------------- +-- Table structure for plugins_content_announcement +-- ---------------------------- +DROP TABLE IF EXISTS "public"."plugins_content_announcement"; +CREATE TABLE "public"."plugins_content_announcement" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "title" varchar(255) COLLATE "pg_catalog"."C", + "content" text COLLATE "pg_catalog"."C", + "num" BIGINT, + "remark" varchar(255) COLLATE "pg_catalog"."C", + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT NOT NULL, + "update_by" BIGINT NOT NULL, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."plugins_content_announcement" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."plugins_content_announcement"."id" IS '主键编码'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."title" IS '标题'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."content" IS '内容'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."num" IS '阅读次数'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."remark" IS '备注信息'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."status" IS '状态(0正常 1删除 2停用 3冻结)'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."updated_at" IS '更新时间'; +COMMENT ON COLUMN "public"."plugins_content_announcement"."created_at" IS '创建时间'; +COMMENT ON TABLE "public"."plugins_content_announcement" IS '公告管理'; + +-- ---------------------------- +-- Records of plugins_content_announcement +-- ---------------------------- +BEGIN; +INSERT INTO "public"."plugins_content_announcement" ("id", "title", "content", "num", "remark", "status", "create_by", "update_by", "updated_at", "created_at") VALUES (1, 'test', '

tes

', 4, 'test', '1', 1, 1, '2023-02-27 12:36:52', '2023-02-27 11:50:56'); +INSERT INTO "public"."plugins_content_announcement" ("id", "title", "content", "num", "remark", "status", "create_by", "update_by", "updated_at", "created_at") VALUES (2, 'test2', '

test

', 1, 'test', '1', 1, 1, '2023-02-27 23:49:05', '2023-02-27 23:49:05'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.plugins_content_announcement', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.plugins_content_announcement),false); + +-- ---------------------------- +-- Table structure for plugins_content_article +-- ---------------------------- +DROP TABLE IF EXISTS "public"."plugins_content_article"; +CREATE TABLE "public"."plugins_content_article" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "cate_id" BIGINT, + "name" varchar(255) COLLATE "pg_catalog"."C", + "content" text COLLATE "pg_catalog"."C", + "remark" varchar(255) COLLATE "pg_catalog"."C", + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT NOT NULL, + "update_by" BIGINT NOT NULL, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."plugins_content_article" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."plugins_content_article"."id" IS '主键编码'; +COMMENT ON COLUMN "public"."plugins_content_article"."cate_id" IS '分类编号'; +COMMENT ON COLUMN "public"."plugins_content_article"."name" IS '名称'; +COMMENT ON COLUMN "public"."plugins_content_article"."content" IS '内容'; +COMMENT ON COLUMN "public"."plugins_content_article"."remark" IS '备注信息'; +COMMENT ON COLUMN "public"."plugins_content_article"."status" IS '状态(1-正常 2-异常)'; +COMMENT ON COLUMN "public"."plugins_content_article"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."plugins_content_article"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."plugins_content_article"."updated_at" IS '更新时间'; +COMMENT ON COLUMN "public"."plugins_content_article"."created_at" IS '创建时间'; +COMMENT ON TABLE "public"."plugins_content_article" IS '文章管理'; + +-- ---------------------------- +-- Records of plugins_content_article +-- ---------------------------- +BEGIN; +INSERT INTO "public"."plugins_content_article" ("id", "cate_id", "name", "content", "remark", "status", "create_by", "update_by", "updated_at", "created_at") VALUES (1, 1, 'test', '

test

', '111', '1', 1, 1, '2023-03-13 00:04:40', '2023-03-13 00:04:40'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.plugins_content_article', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.plugins_content_article),false); + +-- ---------------------------- +-- Table structure for plugins_content_category +-- ---------------------------- +DROP TABLE IF EXISTS "public"."plugins_content_category"; +CREATE TABLE "public"."plugins_content_category" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "name" varchar(255) COLLATE "pg_catalog"."C", + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "remark" varchar(255) COLLATE "pg_catalog"."C", + "create_by" BIGINT NOT NULL, + "update_by" BIGINT NOT NULL, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."plugins_content_category" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."plugins_content_category"."id" IS '主键编码'; +COMMENT ON COLUMN "public"."plugins_content_category"."name" IS '名称'; +COMMENT ON COLUMN "public"."plugins_content_category"."status" IS '状态(1-正常 2-异常)'; +COMMENT ON COLUMN "public"."plugins_content_category"."remark" IS '备注信息'; +COMMENT ON COLUMN "public"."plugins_content_category"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."plugins_content_category"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."plugins_content_category"."updated_at" IS '更新时间'; +COMMENT ON COLUMN "public"."plugins_content_category"."created_at" IS '创建时间'; +COMMENT ON TABLE "public"."plugins_content_category" IS '文章分类管理'; + +-- ---------------------------- +-- Records of plugins_content_category +-- ---------------------------- +BEGIN; +INSERT INTO "public"."plugins_content_category" ("id", "name", "status", "remark", "create_by", "update_by", "updated_at", "created_at") VALUES (1, 'test', '1', '', 1, 1, '2023-02-27 23:21:29', '2023-02-27 23:21:29'); +INSERT INTO "public"."plugins_content_category" ("id", "name", "status", "remark", "create_by", "update_by", "updated_at", "created_at") VALUES (2, 'test2', '1', '', 1, 1, '2023-02-27 23:22:00', '2023-02-27 23:22:00'); +INSERT INTO "public"."plugins_content_category" ("id", "name", "status", "remark", "create_by", "update_by", "updated_at", "created_at") VALUES (3, 'test23', '1', '', 1, 1, '2023-02-27 23:42:01', '2023-02-27 23:42:01'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.plugins_content_category', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.plugins_content_category),false); + +-- ---------------------------- +-- Table structure for plugins_filemgr_app +-- ---------------------------- +DROP TABLE IF EXISTS "public"."plugins_filemgr_app"; +CREATE TABLE "public"."plugins_filemgr_app" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "version" varchar(100) COLLATE "pg_catalog"."C", + "platform" VARCHAR(1) COLLATE "pg_catalog"."C", + "app_type" VARCHAR(1) COLLATE "pg_catalog"."C", + "local_address" varchar(255) COLLATE "pg_catalog"."C", + "download_type" VARCHAR(1) COLLATE "pg_catalog"."C", + "download_url" varchar(255) COLLATE "pg_catalog"."C", + "remark" varchar(255) COLLATE "pg_catalog"."C", + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT NOT NULL, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "update_by" BIGINT NOT NULL, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."plugins_filemgr_app" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."id" IS '主键'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."version" IS '版本号'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."platform" IS '平台 (1-安卓 2-苹果)'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."app_type" IS '版本(1-默认)'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."local_address" IS '本地地址'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."download_type" IS '下载类型(1-本地 2-外链 3-oss )'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."download_url" IS '下载地址(download_type=1使用)'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."remark" IS '备注信息'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."status" IS '状态(1-已发布 2-待发布)'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."plugins_filemgr_app"."updated_at" IS '更新时间'; +COMMENT ON TABLE "public"."plugins_filemgr_app" IS 'app升级管理'; + +-- ---------------------------- +-- Records of plugins_filemgr_app +-- ---------------------------- +BEGIN; +INSERT INTO "public"."plugins_filemgr_app" ("id", "version", "platform", "app_type", "local_address", "download_type", "download_url", "remark", "status", "create_by", "created_at", "update_by", "updated_at") VALUES (1, '1.0.1', '1', '1', 'files/app/4b6ea3c0-d7fa-49f1-9d50-f9d73caad45f.apk', '3', '', 'test', '1', 1, '2023-03-12 11:34:54', 1, '2023-03-13 01:00:30'); +INSERT INTO "public"."plugins_filemgr_app" ("id", "version", "platform", "app_type", "local_address", "download_type", "download_url", "remark", "status", "create_by", "created_at", "update_by", "updated_at") VALUES (2, '1.0.0', '1', '1', 'files/app/ba7b81c0-e6d2-42ee-82e4-2dcbec720c23.apk', '1', 'http://localhost:9999/files/app/ba7b81c0-e6d2-42ee-82e4-2dcbec720c23.apk', 'test', '1', 1, '2023-03-13 01:06:21', 1, '2023-03-13 01:06:21'); +INSERT INTO "public"."plugins_filemgr_app" ("id", "version", "platform", "app_type", "local_address", "download_type", "download_url", "remark", "status", "create_by", "created_at", "update_by", "updated_at") VALUES (3, '1.0.2', '1', '1', '', '2', 'http://localhost:9999/test.apk', 'test2', '1', 1, '2023-03-13 01:07:00', 1, '2023-03-13 01:07:00'); +INSERT INTO "public"."plugins_filemgr_app" ("id", "version", "platform", "app_type", "local_address", "download_type", "download_url", "remark", "status", "create_by", "created_at", "update_by", "updated_at") VALUES (4, '1.0.3', '1', '1', 'files/app/962bebc9-fdb6-41b5-b62b-b184ee2fd1c0.apk', '3', '', 'test2', '1', 1, '2023-03-13 01:07:24', 1, '2023-03-13 01:07:24'); +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.plugins_filemgr_app', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.plugins_filemgr_app),false); + +-- ---------------------------- +-- Table structure for plugins_msg_code +-- ---------------------------- +DROP TABLE IF EXISTS "public"."plugins_msg_code"; +CREATE TABLE "public"."plugins_msg_code" ( + "id" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + "user_id" BIGINT NOT NULL, + "code" varchar(12) NOT NULL DEFAULT '0'::character varying, + "code_type" VARCHAR(1) NOT NULL DEFAULT '0'::bpchar, + "remark" varchar(255) COLLATE "pg_catalog"."C", + "status" VARCHAR(1) NOT NULL DEFAULT '1'::bpchar, + "create_by" BIGINT NOT NULL DEFAULT 0, + "update_by" BIGINT NOT NULL DEFAULT 0, + "created_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" timestamptz(0) NOT NULL DEFAULT CURRENT_TIMESTAMP +) +; +ALTER TABLE "public"."plugins_msg_code" OWNER TO "postgres"; +COMMENT ON COLUMN "public"."plugins_msg_code"."id" IS '验证码编号'; +COMMENT ON COLUMN "public"."plugins_msg_code"."user_id" IS '用户编号'; +COMMENT ON COLUMN "public"."plugins_msg_code"."code" IS '验证码'; +COMMENT ON COLUMN "public"."plugins_msg_code"."code_type" IS '验证码类型 1-邮箱;2-短信'; +COMMENT ON COLUMN "public"."plugins_msg_code"."remark" IS '备注异常'; +COMMENT ON COLUMN "public"."plugins_msg_code"."status" IS '验证码状态 1-发送成功 2-发送失败'; +COMMENT ON COLUMN "public"."plugins_msg_code"."create_by" IS '创建者'; +COMMENT ON COLUMN "public"."plugins_msg_code"."update_by" IS '更新者'; +COMMENT ON COLUMN "public"."plugins_msg_code"."created_at" IS '创建时间'; +COMMENT ON COLUMN "public"."plugins_msg_code"."updated_at" IS '更新时间'; +COMMENT ON TABLE "public"."plugins_msg_code" IS '验证码记录'; + +-- ---------------------------- +-- Records of plugins_msg_code +-- ---------------------------- +BEGIN; +COMMIT; + +-- ---------------------------- +-- Sequence structure +-- ---------------------------- +SELECT setval(pg_get_serial_sequence('public.plugins_msg_code', 'id'),(SELECT COALESCE(MAX(id), 0) + 1 FROM public.plugins_msg_code),false); diff --git a/config/settings.yml b/config/settings.yml index 91e14beb..59379f5b 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -41,10 +41,12 @@ settings: # token 密钥,包括aes密钥共用,生产环境需修改,为确保兼容,长度需要为16、24、32字节 secret: admin-api-20231019-jason database: - # 目前支持:mysql + # 目前支持:mysql postgres driver: mysql - # 数据库连接字符串 + # mysql 数据库连接dns source: 账号:密码@tcp(ip:端口号)/数据库名?charset=utf8&parseTime=True&loc=Local&timeout=1000ms + # postgres 数据库连接dns + # source: host=ip port=端口 user=账号 dbname=数据库名 password=密码 sslmode=disable TimeZone=Asia/Shanghai default_query_exec_mode=simple_protocol # 多db服务,下方配置未完善,待定,先占位 # databases: # 'locaohost:8888': diff --git a/core/dto/search/query.go b/core/dto/search/query.go index 70ba1167..13a18f4e 100644 --- a/core/dto/search/query.go +++ b/core/dto/search/query.go @@ -50,7 +50,7 @@ func ResolveSearchQuery(q interface{}, condition Condition) { case "left": //左关联 join := condition.SetJoinOn(t.Type, fmt.Sprintf( - "left join `%s` on `%s`.`%s` = `%s`.`%s`", + "left join %s on %s.%s = %s.%s", t.Join, t.Join, t.On[0], @@ -61,7 +61,7 @@ func ResolveSearchQuery(q interface{}, condition Condition) { case "inner": //左关联 join := condition.SetJoinOn(t.Type, fmt.Sprintf( - "inner join `%s` on `%s`.`%s` = `%s`.`%s`", + "inner join %s on %s.%s = %s.%s", t.Join, t.Join, t.On[0], @@ -70,35 +70,35 @@ func ResolveSearchQuery(q interface{}, condition Condition) { )) ResolveSearchQuery(qValue.Field(i).Interface(), join) case "exact", "iexact": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` = ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) + condition.SetWhere(fmt.Sprintf("%s.%s = ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) case "contains", "icontains": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` like ?", t.Table, t.Column), []interface{}{"%" + qValue.Field(i).String() + "%"}) + condition.SetWhere(fmt.Sprintf("%s.%s like ?", t.Table, t.Column), []interface{}{"%" + qValue.Field(i).String() + "%"}) case "leftcontains", "lefticontains": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` like ?", t.Table, t.Column), []interface{}{"%" + qValue.Field(i).String()}) + condition.SetWhere(fmt.Sprintf("%s.%s like ?", t.Table, t.Column), []interface{}{"%" + qValue.Field(i).String()}) case "rightcontains", "righticontains": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` like ?", t.Table, t.Column), []interface{}{qValue.Field(i).String() + "%"}) + condition.SetWhere(fmt.Sprintf("%s.%s like ?", t.Table, t.Column), []interface{}{qValue.Field(i).String() + "%"}) case "gt": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` > ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) + condition.SetWhere(fmt.Sprintf("%s.%s > ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) case "gte": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` >= ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) + condition.SetWhere(fmt.Sprintf("%s.%s >= ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) case "lt": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` < ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) + condition.SetWhere(fmt.Sprintf("%s.%s < ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) case "lte": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` <= ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) + condition.SetWhere(fmt.Sprintf("%s.%s <= ?", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) case "startswith", "istartswith": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` like ?", t.Table, t.Column), []interface{}{qValue.Field(i).String() + "%"}) + condition.SetWhere(fmt.Sprintf("%s.%s like ?", t.Table, t.Column), []interface{}{qValue.Field(i).String() + "%"}) case "endswith", "iendswith": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` like ?", t.Table, t.Column), []interface{}{"%" + qValue.Field(i).String()}) + condition.SetWhere(fmt.Sprintf("%s.%s like ?", t.Table, t.Column), []interface{}{"%" + qValue.Field(i).String()}) case "in": - condition.SetWhere(fmt.Sprintf("`%s`.`%s` in (?)", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) + condition.SetWhere(fmt.Sprintf("%s.%s in (?)", t.Table, t.Column), []interface{}{qValue.Field(i).Interface()}) case "isnull": if !(qValue.Field(i).IsZero() && qValue.Field(i).IsNil()) { - condition.SetWhere(fmt.Sprintf("`%s`.`%s` isnull", t.Table, t.Column), make([]interface{}, 0)) + condition.SetWhere(fmt.Sprintf("%s.%s isnull", t.Table, t.Column), make([]interface{}, 0)) } case "order": switch strings.ToLower(qValue.Field(i).String()) { case "desc", "asc": - condition.SetOrder(fmt.Sprintf("`%s`.`%s` %s", t.Table, t.Column, qValue.Field(i).String())) + condition.SetOrder(fmt.Sprintf("%s.%s %s", t.Table, t.Column, qValue.Field(i).String())) } } } diff --git a/core/global/constant.go b/core/global/constant.go index 62ebaec0..f4f62141 100644 --- a/core/global/constant.go +++ b/core/global/constant.go @@ -17,6 +17,11 @@ const ( SysStatusNotOk = "2" ) +const ( + DBDriverMysql = "mysql" + DBDriverPostgres = "postgres" +) + const ( ModeDev string = "dev" //开发模式 ModeTest string = "test" //测试模式 diff --git a/core/storage/database/open.go b/core/storage/database/open.go index bfb3ddfd..3ac1aab8 100644 --- a/core/storage/database/open.go +++ b/core/storage/database/open.go @@ -2,9 +2,11 @@ package database import ( "gorm.io/driver/mysql" + "gorm.io/driver/postgres" "gorm.io/gorm" ) var opens = map[string]func(string) gorm.Dialector{ - "mysql": mysql.Open, + "mysql": mysql.Open, + "postgres": postgres.Open, } diff --git a/core/utils/captchautils/captcha.go b/core/utils/captchautils/captcha.go index 17dee48b..e72ac8be 100644 --- a/core/utils/captchautils/captcha.go +++ b/core/utils/captchautils/captcha.go @@ -24,7 +24,7 @@ type configJsonBody struct { DriverDigit *base64Captcha.DriverDigit } -func DriverStringFunc() (id, b64s string, err error) { +func DriverStringFunc() (id, b64s, answer string, err error) { e := configJsonBody{} e.Id = idgen.UUID() e.DriverString = base64Captcha.NewDriverString(46, 140, 2, 2, 4, "234567890abcdefghjkmnpqrstuvwxyz", &color.RGBA{R: 240, G: 240, B: 246, A: 246}, nil, []string{"wqy-microhei.ttc"}) @@ -33,7 +33,7 @@ func DriverStringFunc() (id, b64s string, err error) { return cap.Generate() } -func DriverDigitFunc() (id, b64s string, err error) { +func DriverDigitFunc() (id, b64s, answer string, err error) { e := configJsonBody{} e.Id = idgen.UUID() e.DriverDigit = base64Captcha.NewDriverDigit(80, 240, 4, 0.7, 80) diff --git a/core/utils/fileutils/file.go b/core/utils/fileutils/file.go index c798f1ec..b724c0c7 100644 --- a/core/utils/fileutils/file.go +++ b/core/utils/fileutils/file.go @@ -27,11 +27,11 @@ func GetExt(fileName string) string { return path.Ext(fileName) } -// CheckExist 检查文件是否存在 -func CheckExist(src string) bool { +// IsFileExist 检查文件是否存在 +func IsFileExist(src string) bool { _, err := os.Stat(src) - return os.IsNotExist(err) + return os.IsExist(err) } // CheckPermission 检查文件权限 @@ -44,7 +44,7 @@ func CheckPermission(src string) bool { // IsNotExistMkDir 检查文件夹是否存在 // 如果不存在则新建文件夹 func IsNotExistMkDir(src string) error { - if exist := !CheckExist(src); exist == false { + if exist := IsFileExist(src); exist == false { if err := MkDir(src); err != nil { return err } diff --git a/go.mod b/go.mod index a2529346..382facf6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go-admin -go 1.23.2 +go 1.24.5 require ( github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible @@ -8,101 +8,107 @@ require ( github.com/bitxx/logger v1.6.2 github.com/bsm/redislock v0.9.4 github.com/bytedance/go-tagexpr/v2 v2.9.11 - github.com/casbin/casbin/v2 v2.77.2 + github.com/casbin/casbin/v2 v2.121.0 github.com/dgrijalva/jwt-go v3.2.0+incompatible - github.com/gin-gonic/gin v1.9.1 - github.com/google/uuid v1.4.0 - github.com/gorilla/websocket v1.5.0 + github.com/gin-gonic/gin v1.10.1 + github.com/google/uuid v1.6.0 + github.com/gorilla/websocket v1.5.3 github.com/json-iterator/go v1.1.12 github.com/microcosm-cc/bluemonday v1.0.27 - github.com/mojocn/base64Captcha v1.3.5 + github.com/mojocn/base64Captcha v1.3.8 github.com/mssola/user_agent v0.6.0 github.com/nsqio/go-nsq v1.1.0 github.com/opentracing/opentracing-go v1.2.0 - github.com/openzipkin/zipkin-go v0.4.2 - github.com/prometheus/client_golang v1.17.0 - github.com/redis/go-redis/v9 v9.3.0 - github.com/shirou/gopsutil/v4 v4.24.9 - github.com/shopspring/decimal v1.3.1 - github.com/spf13/cast v1.5.1 - github.com/spf13/cobra v1.7.0 - github.com/stretchr/testify v1.9.0 - github.com/xuri/excelize/v2 v2.8.0 - golang.org/x/crypto v0.24.0 - gorm.io/driver/mysql v1.5.2 - gorm.io/gorm v1.25.5 - gorm.io/plugin/dbresolver v1.4.7 + github.com/openzipkin/zipkin-go v0.4.3 + github.com/prometheus/client_golang v1.23.0 + github.com/redis/go-redis/v9 v9.12.1 + github.com/shirou/gopsutil/v4 v4.25.8 + github.com/shopspring/decimal v1.4.0 + github.com/spf13/cast v1.9.2 + github.com/spf13/cobra v1.10.1 + github.com/stretchr/testify v1.11.1 + github.com/xuri/excelize/v2 v2.9.1 + golang.org/x/crypto v0.41.0 + gorm.io/driver/mysql v1.6.0 + gorm.io/driver/postgres v1.6.0 + gorm.io/gorm v1.30.2 + gorm.io/plugin/dbresolver v1.6.2 ) require ( - github.com/BurntSushi/toml v1.3.2 // indirect - github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect + filippo.io/edwards25519 v1.1.0 // indirect + github.com/BurntSushi/toml v1.5.0 // indirect github.com/andeya/ameda v1.5.3 // indirect - github.com/andeya/goutil v1.0.1 // indirect + github.com/andeya/goutil v1.1.2 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bitly/go-simplejson v0.5.1 // indirect - github.com/bytedance/sonic v1.9.1 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect + github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect + github.com/bytedance/sonic v1.13.3 // indirect + github.com/bytedance/sonic/loader v0.3.0 // indirect + github.com/casbin/govaluate v1.8.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/cloudwego/base64x v0.1.5 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect - github.com/ebitengine/purego v0.8.0 // indirect - github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/gabriel-vasile/mimetype v1.4.2 // indirect - github.com/gin-contrib/sse v0.1.0 // indirect + github.com/ebitengine/purego v0.8.4 // indirect + github.com/fsnotify/fsnotify v1.9.0 // indirect + github.com/gabriel-vasile/mimetype v1.4.9 // indirect + github.com/gin-contrib/sse v1.1.0 // indirect github.com/go-ole/go-ole v1.2.6 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.14.0 // indirect - github.com/go-sql-driver/mysql v1.7.0 // indirect - github.com/goccy/go-json v0.10.2 // indirect + github.com/go-playground/validator/v10 v10.27.0 // indirect + github.com/go-sql-driver/mysql v1.9.3 // indirect + github.com/goccy/go-json v0.10.5 // indirect github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect github.com/golang/protobuf v1.5.3 // indirect - github.com/golang/snappy v0.0.4 // indirect + github.com/golang/snappy v1.0.0 // indirect github.com/gorilla/css v1.0.1 // indirect - github.com/imdario/mergo v0.3.13 // indirect + github.com/imdario/mergo v0.3.16 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/jackc/pgpassfile v1.0.0 // indirect + github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect + github.com/jackc/pgx/v5 v5.7.5 // indirect + github.com/jackc/puddle/v2 v2.2.2 // indirect github.com/jinzhu/inflection v1.0.0 // indirect github.com/jinzhu/now v1.1.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.4 // indirect - github.com/leodido/go-urn v1.2.4 // indirect + github.com/klauspost/cpuid/v2 v2.2.11 // indirect + github.com/leodido/go-urn v1.4.0 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect + github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/nyaruka/phonenumbers v1.0.55 // indirect - github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/pelletier/go-toml/v2 v2.2.4 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect - github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect - github.com/prometheus/common v0.44.0 // indirect - github.com/prometheus/procfs v0.11.1 // indirect + github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect + github.com/prometheus/client_model v0.6.2 // indirect + github.com/prometheus/common v0.65.0 // indirect + github.com/prometheus/procfs v0.16.1 // indirect github.com/richardlehane/mscfb v1.0.4 // indirect - github.com/richardlehane/msoleps v1.0.3 // indirect + github.com/richardlehane/msoleps v1.0.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sirupsen/logrus v1.9.3 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/tidwall/gjson v1.14.4 // indirect - github.com/tidwall/match v1.1.1 // indirect - github.com/tidwall/pretty v1.2.0 // indirect - github.com/tklauser/go-sysconf v0.3.12 // indirect - github.com/tklauser/numcpus v0.6.1 // indirect + github.com/spf13/pflag v1.0.9 // indirect + github.com/tiendc/go-deepcopy v1.6.1 // indirect + github.com/tklauser/go-sysconf v0.3.15 // indirect + github.com/tklauser/numcpus v0.10.0 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect - github.com/ugorji/go/codec v1.2.11 // indirect - github.com/xuri/efp v0.0.0-20230802181842-ad255f2331ca // indirect - github.com/xuri/nfp v0.0.0-20230819163627-dc951e3ffe1a // indirect + github.com/ugorji/go/codec v1.3.0 // indirect + github.com/xuri/efp v0.0.1 // indirect + github.com/xuri/nfp v0.0.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect - go.uber.org/multierr v1.10.0 // indirect - go.uber.org/zap v1.26.0 // indirect - golang.org/x/arch v0.3.0 // indirect - golang.org/x/image v0.11.0 // indirect - golang.org/x/net v0.26.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect - google.golang.org/protobuf v1.31.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.uber.org/zap v1.27.0 // indirect + golang.org/x/arch v0.18.0 // indirect + golang.org/x/image v0.28.0 // indirect + golang.org/x/net v0.42.0 // indirect + golang.org/x/sync v0.16.0 // indirect + golang.org/x/sys v0.35.0 // indirect + golang.org/x/text v0.28.0 // indirect + golang.org/x/time v0.12.0 // indirect + google.golang.org/protobuf v1.36.6 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/static/template/react.formmodal.tsx.template b/static/template/react.formmodal.tsx.template index e95df4ca..f5bdb61a 100644 --- a/static/template/react.formmodal.tsx.template +++ b/static/template/react.formmodal.tsx.template @@ -137,7 +137,7 @@ const FormModal = forwardRef(({ onConfirm }, ref) => { reset(); setIsModalOpen(false); }} - destroyOnClose + destroyOnHidden footer={[ { - const actionRef = React.useRef(); - const tableFormRef = React.useRef(); + const actionRef = React.useRef(undefined); + const tableFormRef = React.useRef(undefined); const formModalRef = useRef(null); {{- range .SysGenColumns }} diff --git a/static/template/service.go.template b/static/template/service.go.template index 739a8d64..c2a06201 100644 --- a/static/template/service.go.template +++ b/static/template/service.go.template @@ -1,6 +1,7 @@ package service import ( + "errors" "fmt" "github.com/xuri/excelize/v2" baseLang "go-admin/config/base/lang" @@ -62,10 +63,10 @@ func (e *{{.ClassName}}) Get(id int64, p *middleware.DataPermission) (*models.{{ err := e.Orm.Scopes( middleware.Permission(data.TableName(), p), ).First(data, id).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -78,10 +79,10 @@ func (e *{{.ClassName}}) QueryOne(queryCondition *dto.{{.ClassName}}QueryReq, p cDto.MakeCondition(queryCondition.GetNeedSearch()), middleware.Permission(data.TableName(), p), ).First(data).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return nil, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return data, baseLang.SuccessCode, nil @@ -95,10 +96,10 @@ func (e *{{.ClassName}}) Count(queryCondition *dto.{{.ClassName}}QueryReq) (int6 Scopes( cDto.MakeCondition(queryCondition.GetNeedSearch()), ).Limit(-1).Offset(-1).Count(&count).Error - if err != nil && err != gorm.ErrRecordNotFound { + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataQueryLogCode, lang.MsgLogErrf(e.Log, e.Lang, baseLang.DataQueryCode, baseLang.DataQueryLogCode, err) } - if err == gorm.ErrRecordNotFound { + if errors.Is(err, gorm.ErrRecordNotFound) { return 0, baseLang.DataNotFoundCode, lang.MsgErr(baseLang.DataNotFoundCode, e.Lang) } return count, baseLang.SuccessCode, nil diff --git a/web/src/api/app/user/user-account-log/index.ts b/web/src/api/app/user/user-account-log/index.ts index 44c8abcc..8b4b7f28 100644 --- a/web/src/api/app/user/user-account-log/index.ts +++ b/web/src/api/app/user/user-account-log/index.ts @@ -14,7 +14,7 @@ export interface UserAccountLogModel { createBy?: number; createdAt?: Date; updateBy?: number; - updatedDate?: Date; + updatedAt?: Date; remarks?: string; user?: UserModel; }