diff --git a/server/api/v1/example/exa_customer.go b/server/api/v1/example/exa_customer.go index 80066dbe..caca26b0 100644 --- a/server/api/v1/example/exa_customer.go +++ b/server/api/v1/example/exa_customer.go @@ -19,7 +19,7 @@ type CustomerApi struct { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.ExaCustomer true "客户用户名, 客户手机号码" +// @Param data body example.ExaCustomer true "客户用户名, 客户手机号码" // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" // @Router /customer/customer [post] func (e *CustomerApi) CreateExaCustomer(c *gin.Context) { @@ -44,7 +44,7 @@ func (e *CustomerApi) CreateExaCustomer(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.ExaCustomer true "客户ID" +// @Param data body example.ExaCustomer true "客户ID" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /customer/customer [delete] func (e *CustomerApi) DeleteExaCustomer(c *gin.Context) { @@ -67,7 +67,7 @@ func (e *CustomerApi) DeleteExaCustomer(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.ExaCustomer true "客户ID, 客户信息" +// @Param data body example.ExaCustomer true "客户ID, 客户信息" // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" // @Router /customer/customer [put] func (e *CustomerApi) UpdateExaCustomer(c *gin.Context) { @@ -94,7 +94,7 @@ func (e *CustomerApi) UpdateExaCustomer(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.ExaCustomer true "客户ID" +// @Param data body example.ExaCustomer true "客户ID" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Router /customer/customer [get] func (e *CustomerApi) GetExaCustomer(c *gin.Context) { diff --git a/server/api/v1/example/exa_excel.go b/server/api/v1/example/exa_excel.go index d71fed95..dc2a0c66 100644 --- a/server/api/v1/example/exa_excel.go +++ b/server/api/v1/example/exa_excel.go @@ -22,7 +22,7 @@ type ExcelApi struct { // @Security ApiKeyAuth // @accept application/json // @Produce application/octet-stream -// @Param data body model.ExcelInfo true "导出Excel文件信息" +// @Param data body example.ExcelInfo true "导出Excel文件信息" // @Success 200 // @Router /excel/exportExcel [post] func (e *ExcelApi) ExportExcel(c *gin.Context) { diff --git a/server/api/v1/example/exa_file_upload_download.go b/server/api/v1/example/exa_file_upload_download.go index 33310fbf..7c4dbe71 100644 --- a/server/api/v1/example/exa_file_upload_download.go +++ b/server/api/v1/example/exa_file_upload_download.go @@ -43,7 +43,7 @@ func (u *FileUploadAndDownloadApi) UploadFile(c *gin.Context) { // @Summary 删除文件 // @Security ApiKeyAuth // @Produce application/json -// @Param data body model.ExaFileUploadAndDownload true "传入文件里面id即可" +// @Param data body example.ExaFileUploadAndDownload true "传入文件里面id即可" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /fileUploadAndDownload/deleteFile [post] func (u *FileUploadAndDownloadApi) DeleteFile(c *gin.Context) { diff --git a/server/api/v1/system/sys_api.go b/server/api/v1/system/sys_api.go index 16907961..cae0eb55 100644 --- a/server/api/v1/system/sys_api.go +++ b/server/api/v1/system/sys_api.go @@ -21,7 +21,7 @@ type SystemApiApi struct { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysApi true "api路径, api中文描述, api组, 方法" +// @Param data body system.SysApi true "api路径, api中文描述, api组, 方法" // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" // @Router /api/createApi [post] func (s *SystemApiApi) CreateApi(c *gin.Context) { @@ -44,7 +44,7 @@ func (s *SystemApiApi) CreateApi(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysApi true "ID" +// @Param data body system.SysApi true "ID" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /api/deleteApi [post] func (s *SystemApiApi) DeleteApi(c *gin.Context) { @@ -119,7 +119,7 @@ func (s *SystemApiApi) GetApiById(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysApi true "api路径, api中文描述, api组, 方法" +// @Param data body system.SysApi true "api路径, api中文描述, api组, 方法" // @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}" // @Router /api/updateApi [post] func (s *SystemApiApi) UpdateApi(c *gin.Context) { diff --git a/server/api/v1/system/sys_authority.go b/server/api/v1/system/sys_authority.go index d1643c83..e8f28f22 100644 --- a/server/api/v1/system/sys_authority.go +++ b/server/api/v1/system/sys_authority.go @@ -73,7 +73,7 @@ func (a *AuthorityApi) CopyAuthority(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysAuthority true "删除角色" +// @Param data body system.SysAuthority true "删除角色" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /authority/deleteAuthority [post] func (a *AuthorityApi) DeleteAuthority(c *gin.Context) { @@ -96,7 +96,7 @@ func (a *AuthorityApi) DeleteAuthority(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysAuthority true "权限id, 权限名, 父角色id" +// @Param data body system.SysAuthority true "权限id, 权限名, 父角色id" // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" // @Router /authority/updateAuthority [post] func (a *AuthorityApi) UpdateAuthority(c *gin.Context) { @@ -147,7 +147,7 @@ func (a *AuthorityApi) GetAuthorityList(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysAuthority true "设置角色资源权限" +// @Param data body system.SysAuthority true "设置角色资源权限" // @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}" // @Router /authority/setDataAuthority [post] func (a *AuthorityApi) SetDataAuthority(c *gin.Context) { diff --git a/server/api/v1/system/sys_auto_code.go b/server/api/v1/system/sys_auto_code.go index f4c93e37..c7efd0ea 100644 --- a/server/api/v1/system/sys_auto_code.go +++ b/server/api/v1/system/sys_auto_code.go @@ -106,7 +106,7 @@ func (autoApi *AutoCodeApi) GetMeta(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.AutoCodeStruct true "预览创建代码" +// @Param data body system.AutoCodeStruct true "预览创建代码" // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" // @Router /autoCode/preview [post] func (autoApi *AutoCodeApi) PreviewTemp(c *gin.Context) { @@ -130,7 +130,7 @@ func (autoApi *AutoCodeApi) PreviewTemp(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.AutoCodeStruct true "创建自动代码" +// @Param data body system.AutoCodeStruct true "创建自动代码" // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" // @Router /autoCode/createTemp [post] func (autoApi *AutoCodeApi) CreateTemp(c *gin.Context) { diff --git a/server/api/v1/system/sys_dictionary.go b/server/api/v1/system/sys_dictionary.go index 325fff94..9cbaff28 100644 --- a/server/api/v1/system/sys_dictionary.go +++ b/server/api/v1/system/sys_dictionary.go @@ -18,7 +18,7 @@ type DictionaryApi struct { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysDictionary true "SysDictionary模型" +// @Param data body system.SysDictionary true "SysDictionary模型" // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" // @Router /sysDictionary/createSysDictionary [post] func (s *DictionaryApi) CreateSysDictionary(c *gin.Context) { @@ -37,7 +37,7 @@ func (s *DictionaryApi) CreateSysDictionary(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysDictionary true "SysDictionary模型" +// @Param data body system.SysDictionary true "SysDictionary模型" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /sysDictionary/deleteSysDictionary [delete] func (s *DictionaryApi) DeleteSysDictionary(c *gin.Context) { @@ -56,7 +56,7 @@ func (s *DictionaryApi) DeleteSysDictionary(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysDictionary true "SysDictionary模型" +// @Param data body system.SysDictionary true "SysDictionary模型" // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" // @Router /sysDictionary/updateSysDictionary [put] func (s *DictionaryApi) UpdateSysDictionary(c *gin.Context) { @@ -75,7 +75,7 @@ func (s *DictionaryApi) UpdateSysDictionary(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysDictionary true "ID或字典英名" +// @Param data body system.SysDictionary true "ID或字典英名" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Router /sysDictionary/findSysDictionary [get] func (s *DictionaryApi) FindSysDictionary(c *gin.Context) { diff --git a/server/api/v1/system/sys_dictionary_detail.go b/server/api/v1/system/sys_dictionary_detail.go index d141cc1b..49ab796d 100644 --- a/server/api/v1/system/sys_dictionary_detail.go +++ b/server/api/v1/system/sys_dictionary_detail.go @@ -18,7 +18,7 @@ type DictionaryDetailApi struct { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysDictionaryDetail true "SysDictionaryDetail模型" +// @Param data body system.SysDictionaryDetail true "SysDictionaryDetail模型" // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" // @Router /sysDictionaryDetail/createSysDictionaryDetail [post] func (s *DictionaryDetailApi) CreateSysDictionaryDetail(c *gin.Context) { @@ -37,7 +37,7 @@ func (s *DictionaryDetailApi) CreateSysDictionaryDetail(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysDictionaryDetail true "SysDictionaryDetail模型" +// @Param data body system.SysDictionaryDetail true "SysDictionaryDetail模型" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /sysDictionaryDetail/deleteSysDictionaryDetail [delete] func (s *DictionaryDetailApi) DeleteSysDictionaryDetail(c *gin.Context) { @@ -56,7 +56,7 @@ func (s *DictionaryDetailApi) DeleteSysDictionaryDetail(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysDictionaryDetail true "更新SysDictionaryDetail" +// @Param data body system.SysDictionaryDetail true "更新SysDictionaryDetail" // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" // @Router /sysDictionaryDetail/updateSysDictionaryDetail [put] func (s *DictionaryDetailApi) UpdateSysDictionaryDetail(c *gin.Context) { @@ -75,7 +75,7 @@ func (s *DictionaryDetailApi) UpdateSysDictionaryDetail(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysDictionaryDetail true "用id查询SysDictionaryDetail" +// @Param data body system.SysDictionaryDetail true "用id查询SysDictionaryDetail" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Router /sysDictionaryDetail/findSysDictionaryDetail [get] func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context) { diff --git a/server/api/v1/system/sys_menu.go b/server/api/v1/system/sys_menu.go index 37f2291c..0335d0b9 100644 --- a/server/api/v1/system/sys_menu.go +++ b/server/api/v1/system/sys_menu.go @@ -102,7 +102,7 @@ func (a *AuthorityMenuApi) GetMenuAuthority(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysBaseMenu true "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记" +// @Param data body system.SysBaseMenu true "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记" // @Success 200 {string} string "{"success":true,"data":{},"msg":"添加成功"}" // @Router /menu/addBaseMenu [post] func (a *AuthorityMenuApi) AddBaseMenu(c *gin.Context) { @@ -153,7 +153,7 @@ func (a *AuthorityMenuApi) DeleteBaseMenu(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysBaseMenu true "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记" +// @Param data body system.SysBaseMenu true "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记" // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" // @Router /menu/updateBaseMenu [post] func (a *AuthorityMenuApi) UpdateBaseMenu(c *gin.Context) { diff --git a/server/api/v1/system/sys_operation_record.go b/server/api/v1/system/sys_operation_record.go index 4a98ccfe..43380be3 100644 --- a/server/api/v1/system/sys_operation_record.go +++ b/server/api/v1/system/sys_operation_record.go @@ -19,7 +19,7 @@ type OperationRecordApi struct { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysOperationRecord true "创建SysOperationRecord" +// @Param data body system.SysOperationRecord true "创建SysOperationRecord" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Router /sysOperationRecord/createSysOperationRecord [post] func (s *OperationRecordApi) CreateSysOperationRecord(c *gin.Context) { @@ -38,7 +38,7 @@ func (s *OperationRecordApi) CreateSysOperationRecord(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysOperationRecord true "SysOperationRecord模型" +// @Param data body system.SysOperationRecord true "SysOperationRecord模型" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /sysOperationRecord/deleteSysOperationRecord [delete] func (s *OperationRecordApi) DeleteSysOperationRecord(c *gin.Context) { @@ -76,7 +76,7 @@ func (s *OperationRecordApi) DeleteSysOperationRecordByIds(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysOperationRecord true "Id" +// @Param data body system.SysOperationRecord true "Id" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Router /sysOperationRecord/findSysOperationRecord [get] func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context) { diff --git a/server/api/v1/system/sys_system.go b/server/api/v1/system/sys_system.go index 2e517368..a022639a 100644 --- a/server/api/v1/system/sys_system.go +++ b/server/api/v1/system/sys_system.go @@ -33,7 +33,7 @@ func (s *SystemApi) GetSystemConfig(c *gin.Context) { // @Summary 设置配置文件内容 // @Security ApiKeyAuth // @Produce application/json -// @Param data body model.System true "设置配置文件内容" +// @Param data body system.System true "设置配置文件内容" // @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}" // @Router /system/setSystemConfig [post] func (s *SystemApi) SetSystemConfig(c *gin.Context) { diff --git a/server/api/v1/system/sys_user.go b/server/api/v1/system/sys_user.go index 45d008ac..a6761c88 100644 --- a/server/api/v1/system/sys_user.go +++ b/server/api/v1/system/sys_user.go @@ -236,7 +236,7 @@ func (b *BaseApi) DeleteUser(c *gin.Context) { // @Security ApiKeyAuth // @accept application/json // @Produce application/json -// @Param data body model.SysUser true "ID, 用户名, 昵称, 头像链接" +// @Param data body system.SysUser true "ID, 用户名, 昵称, 头像链接" // @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}" // @Router /user/setUserInfo [put] func (b *BaseApi) SetUserInfo(c *gin.Context) { diff --git a/server/config.yaml b/server/config.yaml index 415a4790..98ec0dc1 100644 --- a/server/config.yaml +++ b/server/config.yaml @@ -1,78 +1,13 @@ -# Gin-Vue-Admin Global Configuration - -# jwt configuration -jwt: - signing-key: 'qmPlus' - expires-time: 604800 - buffer-time: 86400 - -# zap logger configuration -zap: - level: 'info' - format: 'console' - prefix: '[GIN-VUE-ADMIN]' - director: 'log' - link-name: 'latest_log' - show-line: true - encode-level: 'LowercaseColorLevelEncoder' - stacktrace-key: 'stacktrace' - log-in-console: true - -# redis configuration -redis: - db: 0 - addr: '127.0.0.1:6379' - password: '' - -# email configuration -email: - to: 'xxx@qq.com' - port: 465 - from: 'xxx@163.com' - host: 'smtp.163.com' - is-ssl: true - secret: 'xxx' - nickname: 'test' - -# casbin configuration -casbin: - model-path: './resource/rbac_model.conf' - -# system configuration -system: - env: 'public' # Change to "develop" to skip authentication for development mode - addr: 8888 - db-type: 'mysql' - oss-type: 'local' # 控制oss选择走本期还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置 - use-multipoint: false - -# captcha configuration -captcha: - key-long: 6 - img-width: 240 - img-height: 80 - -# mysql connect configuration -# 未初始化之前请勿手动修改数据库信息!!!如果一定要手动初始化请看(https://www.gin-vue-admin.com/docs/first) -mysql: - path: '' - config: '' - db-name: '' - username: '' - password: '' - max-idle-conns: 10 - max-open-conns: 100 - log-mode: "" - log-zap: false - -# local configuration -local: - path: 'uploads/file' - -# autocode configuration +aliyun-oss: + endpoint: yourEndpoint + access-key-id: yourAccessKeyId + access-key-secret: yourAccessKeySecret + bucket-name: yourBucketName + bucket-url: yourBucketUrl + base-path: yourBasePath autocode: transfer-restart: true - root: "" + root: E:\gin-vue-admin server: /server server-api: /api/v1/autocode server-initialize: /initialize @@ -82,53 +17,80 @@ autocode: server-service: /service/autocode web: /web/src web-api: /api - web-flow: /view web-form: /view web-table: /view - -# qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址) + web-flow: /view +captcha: + key-long: 6 + img-width: 240 + img-height: 80 +casbin: + model-path: ./resource/rbac_model.conf +email: + to: xxx@qq.com + port: 465 + from: xxx@163.com + host: smtp.163.com + is-ssl: true + secret: xxx + nickname: test +excel: + dir: ./resource/excel/ +jwt: + signing-key: qmPlus + expires-time: 604800 + buffer-time: 86400 +local: + path: uploads/file +mysql: + path: 127.0.0.1:3306 + config: charset=utf8mb4&parseTime=True&loc=Local + db-name: gva + username: root + password: Aa@6447985 + max-idle-conns: 0 + max-open-conns: 0 + log-mode: "" + log-zap: false qiniu: - zone: 'ZoneHuaDong' - bucket: '' - img-path: '' + zone: ZoneHuaDong + bucket: "" + img-path: "" use-https: false - access-key: '' - secret-key: '' + access-key: "" + secret-key: "" use-cdn-domains: false - - -# aliyun oss configuration -aliyun-oss: - endpoint: 'yourEndpoint' - access-key-id: 'yourAccessKeyId' - access-key-secret: 'yourAccessKeySecret' - bucket-name: 'yourBucketName' - bucket-url: 'yourBucketUrl' - base-path: 'yourBasePath' - -# tencent cos configuration +redis: + db: 0 + addr: 127.0.0.1:6379 + password: "" +system: + env: public + addr: 8888 + db-type: mysql + oss-type: local + use-multipoint: false tencent-cos: - bucket: 'xxxxx-10005608' - region: 'ap-shanghai' - secret-id: 'xxxxxxxx' - secret-key: 'xxxxxxxx' - base-url: 'https://gin.vue.admin' - path-prefix: 'gin-vue-admin' - -# excel configuration -excel: - dir: './resource/excel/' - - -# timer task db clear table -Timer: + bucket: xxxxx-10005608 + region: ap-shanghai + secret-id: xxxxxxxx + secret-key: xxxxxxxx + base-url: https://gin.vue.admin + path-prefix: gin-vue-admin +timer: start: true - spec: "@daily" # 定时任务详细配置参考 https://pkg.go.dev/github.com/robfig/cron/v3 - detail: [ - # tableName: 需要清理的表名 - # compareField: 需要比较时间的字段 - # interval: 时间间隔, 具体配置详看 time.ParseDuration() 中字符串表示 且不能为负数 - # 2160h = 24 * 30 * 3 -> 三个月 - { tableName: "sys_operation_records" , compareField: "created_at", interval: "2160h" }, - #{ tableName: "log2" , compareField: "created_at", interval: "2160h" } - ] + spec: '@daily' + detail: + - tableName: sys_operation_records + compareField: created_at + interval: 2160h +zap: + level: info + format: console + prefix: '[GIN-VUE-ADMIN]' + director: log + link-name: latest_log + showLine: true + encode-level: LowercaseColorLevelEncoder + stacktrace-key: stacktrace + log-in-console: true diff --git a/server/docs/docs.go b/server/docs/docs.go index 07296df7..c68decca 100644 --- a/server/docs/docs.go +++ b/server/docs/docs.go @@ -1,6 +1,5 @@ // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -// This file was generated by swaggo/swag at -// 2021-05-14 11:28:23.4731221 +0800 CST m=+1.258292701 +// This file was generated by swaggo/swag package docs @@ -25,6 +24,108 @@ var doc = `{ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { + "/SimpleUploaderApi/checkFileMd5": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "SimpleUploader" + ], + "summary": "断点续传插件版示例", + "parameters": [ + { + "type": "string", + "description": "md5", + "name": "md5", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/SimpleUploaderApi/mergeFileMd5": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "SimpleUploader" + ], + "summary": "合并文件", + "parameters": [ + { + "type": "string", + "description": "md5", + "name": "md5", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/SimpleUploaderApi/upload": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SimpleUploader" + ], + "summary": "断点续传插件版示例", + "parameters": [ + { + "type": "file", + "description": "断点续传插件版示例", + "name": "file", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/api/createApi": { "post": { "security": [ @@ -49,7 +150,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysApi" + "$ref": "#/definitions/system.SysApi" } } ], @@ -87,7 +188,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysApi" + "$ref": "#/definitions/system.SysApi" } } ], @@ -266,7 +367,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysApi" + "$ref": "#/definitions/system.SysApi" } } ], @@ -342,7 +443,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" } } ], @@ -380,7 +481,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" } } ], @@ -456,7 +557,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" } } ], @@ -494,7 +595,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" } } ], @@ -532,7 +633,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.AutoCodeStruct" + "$ref": "#/definitions/system.AutoCodeStruct" } } ], @@ -546,8 +647,8 @@ var doc = `{ } } }, - "/autoCode/getColumn": { - "get": { + "/autoCode/delSysHistory": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -562,10 +663,21 @@ var doc = `{ "tags": [ "AutoCode" ], - "summary": "获取当前表所有字段", + "summary": "删除回滚记录", + "parameters": [ + { + "description": "删除回滚记录", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AutoHistoryByID" + } + } + ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -573,7 +685,7 @@ var doc = `{ } } }, - "/autoCode/getDatabase": { + "/autoCode/getColumn": { "get": { "security": [ { @@ -589,7 +701,7 @@ var doc = `{ "tags": [ "AutoCode" ], - "summary": "获取当前所有数据库", + "summary": "获取当前表所有字段", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", @@ -600,7 +712,7 @@ var doc = `{ } } }, - "/autoCode/getTables": { + "/autoCode/getDatabase": { "get": { "security": [ { @@ -616,7 +728,7 @@ var doc = `{ "tags": [ "AutoCode" ], - "summary": "获取当前数据库所有表", + "summary": "获取当前所有数据库", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", @@ -627,7 +739,7 @@ var doc = `{ } } }, - "/autoCode/preview": { + "/autoCode/getMeta": { "post": { "security": [ { @@ -643,21 +755,21 @@ var doc = `{ "tags": [ "AutoCode" ], - "summary": "预览创建后的代码", + "summary": "回滚", "parameters": [ { - "description": "预览创建代码", + "description": "获取meta信息", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.AutoCodeStruct" + "$ref": "#/definitions/request.AutoHistoryByID" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -665,7 +777,7 @@ var doc = `{ } } }, - "/base/captcha": { + "/autoCode/getSysHistory": { "post": { "security": [ { @@ -679,12 +791,23 @@ var doc = `{ "application/json" ], "tags": [ - "Base" + "AutoCode" + ], + "summary": "查询回滚记录", + "parameters": [ + { + "description": "查询回滚记录", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SysAutoHistory" + } + } ], - "summary": "生成验证码", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -692,29 +815,26 @@ var doc = `{ } } }, - "/base/login": { - "post": { + "/autoCode/getTables": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "Base" - ], - "summary": "用户登录", - "parameters": [ - { - "description": "用户名, 密码, 验证码", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Login" - } - } + "AutoCode" ], + "summary": "获取当前数据库所有表", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -722,7 +842,7 @@ var doc = `{ } } }, - "/casbin/UpdateCasbin": { + "/autoCode/preview": { "post": { "security": [ { @@ -736,23 +856,23 @@ var doc = `{ "application/json" ], "tags": [ - "Casbin" + "AutoCode" ], - "summary": "更新角色api权限", + "summary": "预览创建后的代码", "parameters": [ { - "description": "权限id, 权限模型列表", + "description": "预览创建代码", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.CasbinInReceive" + "$ref": "#/definitions/system.AutoCodeStruct" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } @@ -760,7 +880,7 @@ var doc = `{ } } }, - "/casbin/getPolicyPathByAuthorityId": { + "/autoCode/rollback": { "post": { "security": [ { @@ -774,23 +894,23 @@ var doc = `{ "application/json" ], "tags": [ - "Casbin" + "AutoCode" ], - "summary": "获取权限列表", + "summary": "回滚", "parameters": [ { - "description": "权限id, 权限模型列表", + "description": "回滚自动生成代码", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.CasbinInReceive" + "$ref": "#/definitions/request.AutoHistoryByID" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"回滚成功\"}", "schema": { "type": "string" } @@ -798,8 +918,8 @@ var doc = `{ } } }, - "/customer/customer": { - "get": { + "/autoCodeExample/createAutoCodeExample": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -812,30 +932,32 @@ var doc = `{ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "获取单一客户信息", + "summary": "创建AutoCodeExample", "parameters": [ { - "description": "客户ID", + "description": "AutoCodeExample模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaCustomer" + "$ref": "#/definitions/autocode.AutoCodeExample" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } } } - }, - "put": { + } + }, + "/autoCodeExample/deleteAutoCodeExample": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -848,30 +970,32 @@ var doc = `{ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "更新客户信息", + "summary": "删除AutoCodeExample", "parameters": [ { - "description": "客户ID, 客户信息", + "description": "AutoCodeExample模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaCustomer" + "$ref": "#/definitions/autocode.AutoCodeExample" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } - }, - "post": { + } + }, + "/autoCodeExample/findAutoCodeExample": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -884,30 +1008,32 @@ var doc = `{ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "创建客户", + "summary": "用id查询AutoCodeExample", "parameters": [ { - "description": "客户用户名, 客户手机号码", + "description": "用id查询AutoCodeExample", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaCustomer" + "$ref": "#/definitions/autocode.AutoCodeExample" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } - }, - "delete": { + } + }, + "/autoCodeExample/getAutoCodeExampleList": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -920,23 +1046,23 @@ var doc = `{ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "删除客户", + "summary": "分页获取AutoCodeExample列表", "parameters": [ { - "description": "客户ID", + "description": "页码, 每页大小, 搜索条件", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaCustomer" + "$ref": "#/definitions/request.AutoCodeExampleSearch" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -944,8 +1070,8 @@ var doc = `{ } } }, - "/customer/customerList": { - "get": { + "/autoCodeExample/updateAutoCodeExample": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -958,23 +1084,23 @@ var doc = `{ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "分页获取权限客户列表", + "summary": "更新AutoCodeExample", "parameters": [ { - "description": "页码, 每页大小", + "description": "更新AutoCodeExample", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.PageInfo" + "$ref": "#/definitions/autocode.AutoCodeExample" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -982,23 +1108,26 @@ var doc = `{ } } }, - "/email/emailTest": { + "/base/captcha": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "Base" ], - "summary": "发送测试邮件", + "summary": "生成验证码", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}", "schema": { "type": "string" } @@ -1006,40 +1135,37 @@ var doc = `{ } } }, - "/excel/downloadTemplate": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "multipart/form-data" - ], + "/base/login": { + "post": { "produces": [ "application/json" ], "tags": [ - "excel" + "Base" ], - "summary": "下载模板", + "summary": "用户登录", "parameters": [ { - "type": "string", - "description": "模板名称", - "name": "fileName", - "in": "query", - "required": true + "description": "用户名, 密码, 验证码", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.Login" + } } ], "responses": { "200": { - "description": "" + "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}", + "schema": { + "type": "string" + } } } } }, - "/excel/exportExcel": { + "/casbin/UpdateCasbin": { "post": { "security": [ { @@ -1050,31 +1176,34 @@ var doc = `{ "application/json" ], "produces": [ - "application/octet-stream" + "application/json" ], "tags": [ - "excel" + "Casbin" ], - "summary": "导出Excel", + "summary": "更新角色api权限", "parameters": [ { - "description": "导出Excel文件信息", + "description": "权限id, 权限模型列表", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExcelInfo" + "$ref": "#/definitions/request.CasbinInReceive" } } ], "responses": { "200": { - "description": "" + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "schema": { + "type": "string" + } } } } }, - "/excel/importExcel": { + "/casbin/getPolicyPathByAuthorityId": { "post": { "security": [ { @@ -1082,27 +1211,29 @@ var doc = `{ } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "excel" + "Casbin" ], - "summary": "导入Excel文件", + "summary": "获取权限列表", "parameters": [ { - "type": "file", - "description": "导入Excel文件", - "name": "file", - "in": "formData", - "required": true + "description": "权限id, 权限模型列表", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.CasbinInReceive" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1110,130 +1241,145 @@ var doc = `{ } } }, - "/excel/loadExcel": { + "/customer/customer": { "get": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "excel" + "ExaCustomer" + ], + "summary": "获取单一客户信息", + "parameters": [ + { + "description": "客户ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/example.ExaCustomer" + } + } ], - "summary": "加载Excel数据", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } - } - }, - "/fileUploadAndDownload/breakpointContinue": { - "post": { + }, + "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "ExaCustomer" ], - "summary": "断点续传到服务器", + "summary": "更新客户信息", "parameters": [ { - "type": "file", - "description": "an example for breakpoint resume, 断点续传示例", - "name": "file", - "in": "formData", - "required": true + "description": "客户ID, 客户信息", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/example.ExaCustomer" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } - } - }, - "/fileUploadAndDownload/deleteFile": { + }, "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "ExaCustomer" ], - "summary": "删除文件", + "summary": "创建客户", "parameters": [ { - "description": "传入文件里面id即可", + "description": "客户用户名, 客户手机号码", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaFileUploadAndDownload" + "$ref": "#/definitions/example.ExaCustomer" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } } } - } - }, - "/fileUploadAndDownload/findFile": { - "post": { + }, + "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "ExaCustomer" ], - "summary": "创建文件", + "summary": "删除客户", "parameters": [ { - "type": "file", - "description": "上传文件完成", - "name": "file", - "in": "formData", - "required": true + "description": "客户ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/example.ExaCustomer" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -1241,8 +1387,8 @@ var doc = `{ } } }, - "/fileUploadAndDownload/getFileList": { - "post": { + "/customer/customerList": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -1255,9 +1401,9 @@ var doc = `{ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "ExaCustomer" ], - "summary": "分页文件列表", + "summary": "分页获取权限客户列表", "parameters": [ { "description": "页码, 每页大小", @@ -1279,35 +1425,23 @@ var doc = `{ } } }, - "/fileUploadAndDownload/removeChunk": { + "/email/emailTest": { "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "multipart/form-data" - ], "produces": [ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" - ], - "summary": "删除切片", - "parameters": [ - { - "type": "file", - "description": "删除缓存切片", - "name": "file", - "in": "formData", - "required": true - } + "System" ], + "summary": "发送测试邮件", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}", "schema": { "type": "string" } @@ -1315,8 +1449,8 @@ var doc = `{ } } }, - "/fileUploadAndDownload/upload": { - "post": { + "/excel/downloadTemplate": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -1329,78 +1463,61 @@ var doc = `{ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "excel" ], - "summary": "上传文件示例", + "summary": "下载模板", "parameters": [ { - "type": "file", - "description": "上传文件示例", - "name": "file", - "in": "formData", + "type": "string", + "description": "模板名称", + "name": "fileName", + "in": "query", "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", - "schema": { - "type": "string" - } + "description": "" } } } }, - "/init/checkdb": { + "/excel/exportExcel": { "post": { - "produces": [ - "application/json" + "security": [ + { + "ApiKeyAuth": [] + } ], - "tags": [ - "CheckDB" + "consumes": [ + "application/json" ], - "summary": "初始化用户数据库", - "responses": { - "200": { - "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/init/initdb": { - "post": { "produces": [ - "application/json" + "application/octet-stream" ], "tags": [ - "InitDB" + "excel" ], - "summary": "初始化用户数据库", + "summary": "导出Excel", "parameters": [ { - "description": "初始化数据库参数", + "description": "导出Excel文件信息", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.InitDB" + "$ref": "#/definitions/example.ExcelInfo" } } ], "responses": { "200": { - "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}", - "schema": { - "type": "string" - } + "description": "" } } } }, - "/jwt/jsonInBlacklist": { + "/excel/importExcel": { "post": { "security": [ { @@ -1408,18 +1525,27 @@ var doc = `{ } ], "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ - "Jwt" + "excel" + ], + "summary": "导入Excel文件", + "parameters": [ + { + "type": "file", + "description": "导入Excel文件", + "name": "file", + "in": "formData", + "required": true + } ], - "summary": "jwt加入黑名单", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}", "schema": { "type": "string" } @@ -1427,37 +1553,23 @@ var doc = `{ } } }, - "/menu/GetMenuAuthority": { - "post": { + "/excel/loadExcel": { + "get": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" - ], - "summary": "获取指定角色menu", - "parameters": [ - { - "description": "角色ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetAuthorityId" - } - } + "excel" ], + "summary": "加载Excel数据", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}", "schema": { "type": "string" } @@ -1465,7 +1577,7 @@ var doc = `{ } } }, - "/menu/addBaseMenu": { + "/fileUploadAndDownload/breakpointContinue": { "post": { "security": [ { @@ -1473,29 +1585,27 @@ var doc = `{ } ], "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ - "Menu" + "ExaFileUploadAndDownload" ], - "summary": "新增菜单", + "summary": "断点续传到服务器", "parameters": [ { - "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.SysBaseMenu" - } + "type": "file", + "description": "an example for breakpoint resume, 断点续传示例", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}", "schema": { "type": "string" } @@ -1503,37 +1613,34 @@ var doc = `{ } } }, - "/menu/addMenuAuthority": { + "/fileUploadAndDownload/deleteFile": { "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "ExaFileUploadAndDownload" ], - "summary": "增加menu和角色关联关系", + "summary": "删除文件", "parameters": [ { - "description": "角色ID", + "description": "传入文件里面id即可", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.AddMenuAuthorityInfo" + "$ref": "#/definitions/example.ExaFileUploadAndDownload" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -1541,7 +1648,7 @@ var doc = `{ } } }, - "/menu/deleteBaseMenu": { + "/fileUploadAndDownload/findFile": { "post": { "security": [ { @@ -1549,29 +1656,27 @@ var doc = `{ } ], "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ - "Menu" + "ExaFileUploadAndDownload" ], - "summary": "删除菜单", + "summary": "创建文件", "parameters": [ { - "description": "菜单id", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } + "type": "file", + "description": "上传文件完成", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}", "schema": { "type": "string" } @@ -1579,7 +1684,7 @@ var doc = `{ } } }, - "/menu/getBaseMenuById": { + "/fileUploadAndDownload/getFileList": { "post": { "security": [ { @@ -1593,17 +1698,17 @@ var doc = `{ "application/json" ], "tags": [ - "Menu" + "ExaFileUploadAndDownload" ], - "summary": "根据id获取菜单", + "summary": "分页文件列表", "parameters": [ { - "description": "菜单id", + "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/request.PageInfo" } } ], @@ -1617,34 +1722,35 @@ var doc = `{ } } }, - "/menu/getBaseMenuTree": { + "/fileUploadAndDownload/removeChunk": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "multipart/form-data" + ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "ExaFileUploadAndDownload" ], - "summary": "获取用户动态路由", + "summary": "删除切片", "parameters": [ { - "description": "空", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Empty" - } + "type": "file", + "description": "删除缓存切片", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}", "schema": { "type": "string" } @@ -1652,34 +1758,35 @@ var doc = `{ } } }, - "/menu/getMenu": { + "/fileUploadAndDownload/upload": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "multipart/form-data" + ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "ExaFileUploadAndDownload" ], - "summary": "获取用户动态路由", + "summary": "上传文件示例", "parameters": [ { - "description": "空", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Empty" - } + "type": "file", + "description": "上传文件示例", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", "schema": { "type": "string" } @@ -1687,37 +1794,18 @@ var doc = `{ } } }, - "/menu/getMenuList": { + "/init/checkdb": { "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "Menu" - ], - "summary": "分页获取基础menu列表", - "parameters": [ - { - "description": "页码, 每页大小", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.PageInfo" - } - } + "CheckDB" ], + "summary": "初始化用户数据库", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}", "schema": { "type": "string" } @@ -1725,37 +1813,29 @@ var doc = `{ } } }, - "/menu/updateBaseMenu": { + "/init/initdb": { "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "Menu" + "InitDB" ], - "summary": "更新菜单", + "summary": "初始化用户数据库", "parameters": [ { - "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "description": "初始化数据库参数", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysBaseMenu" + "$ref": "#/definitions/request.InitDB" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}", "schema": { "type": "string" } @@ -1763,32 +1843,26 @@ var doc = `{ } } }, - "/simpleUploader/checkFileMd5": { - "get": { + "/jwt/jsonInBlacklist": { + "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "SimpleUploader" - ], - "summary": "断点续传插件版示例", - "parameters": [ - { - "type": "string", - "description": "md5", - "name": "md5", - "in": "query", - "required": true - } + "Jwt" ], + "summary": "jwt加入黑名单", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}", "schema": { "type": "string" } @@ -1796,32 +1870,37 @@ var doc = `{ } } }, - "/simpleUploader/mergeFileMd5": { - "get": { + "/menu/GetMenuAuthority": { + "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "SimpleUploader" + "AuthorityMenu" ], - "summary": "合并文件", + "summary": "获取指定角色menu", "parameters": [ { - "type": "string", - "description": "md5", - "name": "md5", - "in": "query", - "required": true + "description": "角色ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetAuthorityId" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1829,7 +1908,7 @@ var doc = `{ } } }, - "/simpleUploader/upload": { + "/menu/addBaseMenu": { "post": { "security": [ { @@ -1837,27 +1916,29 @@ var doc = `{ } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "SimpleUploader" + "Menu" ], - "summary": "断点续传插件版示例", + "summary": "新增菜单", "parameters": [ { - "type": "file", - "description": "断点续传插件版示例", - "name": "file", - "in": "formData", - "required": true + "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysBaseMenu" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", "schema": { "type": "string" } @@ -1865,7 +1946,7 @@ var doc = `{ } } }, - "/sysDictionary/createSysDictionary": { + "/menu/addMenuAuthority": { "post": { "security": [ { @@ -1879,23 +1960,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysDictionary" + "AuthorityMenu" ], - "summary": "创建SysDictionary", + "summary": "增加menu和角色关联关系", "parameters": [ { - "description": "SysDictionary模型", + "description": "角色ID", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionary" + "$ref": "#/definitions/request.AddMenuAuthorityInfo" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", "schema": { "type": "string" } @@ -1903,8 +1984,8 @@ var doc = `{ } } }, - "/sysDictionary/deleteSysDictionary": { - "delete": { + "/menu/deleteBaseMenu": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -1917,17 +1998,17 @@ var doc = `{ "application/json" ], "tags": [ - "SysDictionary" + "Menu" ], - "summary": "删除SysDictionary", + "summary": "删除菜单", "parameters": [ { - "description": "SysDictionary模型", + "description": "菜单id", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionary" + "$ref": "#/definitions/request.GetById" } } ], @@ -1941,8 +2022,8 @@ var doc = `{ } } }, - "/sysDictionary/findSysDictionary": { - "get": { + "/menu/getBaseMenuById": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -1955,23 +2036,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysDictionary" + "Menu" ], - "summary": "用id查询SysDictionary", + "summary": "根据id获取菜单", "parameters": [ { - "description": "ID或字典英名", + "description": "菜单id", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionary" + "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1979,31 +2060,28 @@ var doc = `{ } } }, - "/sysDictionary/getSysDictionaryList": { - "get": { + "/menu/getBaseMenuTree": { + "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "SysDictionary" + "AuthorityMenu" ], - "summary": "分页获取SysDictionary列表", + "summary": "获取用户动态路由", "parameters": [ { - "description": "页码, 每页大小, 搜索条件", + "description": "空", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.SysDictionarySearch" + "$ref": "#/definitions/request.Empty" } } ], @@ -2017,37 +2095,34 @@ var doc = `{ } } }, - "/sysDictionary/updateSysDictionary": { - "put": { + "/menu/getMenu": { + "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "SysDictionary" + "AuthorityMenu" ], - "summary": "更新SysDictionary", + "summary": "获取用户动态路由", "parameters": [ { - "description": "SysDictionary模型", + "description": "空", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionary" + "$ref": "#/definitions/request.Empty" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -2055,7 +2130,7 @@ var doc = `{ } } }, - "/sysDictionaryDetail/createSysDictionaryDetail": { + "/menu/getMenuList": { "post": { "security": [ { @@ -2069,23 +2144,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "Menu" ], - "summary": "创建SysDictionaryDetail", + "summary": "分页获取基础menu列表", "parameters": [ { - "description": "SysDictionaryDetail模型", + "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -2093,8 +2168,8 @@ var doc = `{ } } }, - "/sysDictionaryDetail/deleteSysDictionaryDetail": { - "delete": { + "/menu/updateBaseMenu": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -2107,23 +2182,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "Menu" ], - "summary": "删除SysDictionaryDetail", + "summary": "更新菜单", "parameters": [ { - "description": "SysDictionaryDetail模型", + "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysBaseMenu" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -2131,8 +2206,8 @@ var doc = `{ } } }, - "/sysDictionaryDetail/findSysDictionaryDetail": { - "get": { + "/sysDictionary/createSysDictionary": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -2145,23 +2220,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysDictionary" ], - "summary": "用id查询SysDictionaryDetail", + "summary": "创建SysDictionary", "parameters": [ { - "description": "用id查询SysDictionaryDetail", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } @@ -2169,8 +2244,8 @@ var doc = `{ } } }, - "/sysDictionaryDetail/getSysDictionaryDetailList": { - "get": { + "/sysDictionary/deleteSysDictionary": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -2183,23 +2258,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysDictionary" ], - "summary": "分页获取SysDictionaryDetail列表", + "summary": "删除SysDictionary", "parameters": [ { - "description": "页码, 每页大小, 搜索条件", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.SysDictionaryDetailSearch" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -2207,8 +2282,8 @@ var doc = `{ } } }, - "/sysDictionaryDetail/updateSysDictionaryDetail": { - "put": { + "/sysDictionary/findSysDictionary": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -2221,23 +2296,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysDictionary" ], - "summary": "更新SysDictionaryDetail", + "summary": "用id查询SysDictionary", "parameters": [ { - "description": "更新SysDictionaryDetail", + "description": "ID或字典英名", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } @@ -2245,8 +2320,8 @@ var doc = `{ } } }, - "/sysOperationRecord/createSysOperationRecord": { - "post": { + "/sysDictionary/getSysDictionaryList": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -2259,17 +2334,17 @@ var doc = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionary" ], - "summary": "创建SysOperationRecord", + "summary": "分页获取SysDictionary列表", "parameters": [ { - "description": "创建SysOperationRecord", + "description": "页码, 每页大小, 搜索条件", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysOperationRecord" + "$ref": "#/definitions/request.SysDictionarySearch" } } ], @@ -2283,8 +2358,8 @@ var doc = `{ } } }, - "/sysOperationRecord/deleteSysOperationRecord": { - "delete": { + "/sysDictionary/updateSysDictionary": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -2297,23 +2372,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionary" ], - "summary": "删除SysOperationRecord", + "summary": "更新SysDictionary", "parameters": [ { - "description": "SysOperationRecord模型", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysOperationRecord" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -2321,8 +2396,8 @@ var doc = `{ } } }, - "/sysOperationRecord/deleteSysOperationRecordByIds": { - "delete": { + "/sysDictionaryDetail/createSysDictionaryDetail": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -2335,23 +2410,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionaryDetail" ], - "summary": "批量删除SysOperationRecord", + "summary": "创建SysDictionaryDetail", "parameters": [ { - "description": "批量删除SysOperationRecord", + "description": "SysDictionaryDetail模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.IdsReq" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } @@ -2359,8 +2434,8 @@ var doc = `{ } } }, - "/sysOperationRecord/findSysOperationRecord": { - "get": { + "/sysDictionaryDetail/deleteSysDictionaryDetail": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -2373,23 +2448,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionaryDetail" ], - "summary": "用id查询SysOperationRecord", + "summary": "删除SysDictionaryDetail", "parameters": [ { - "description": "Id", + "description": "SysDictionaryDetail模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysOperationRecord" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -2397,7 +2472,7 @@ var doc = `{ } } }, - "/sysOperationRecord/getSysOperationRecordList": { + "/sysDictionaryDetail/findSysDictionaryDetail": { "get": { "security": [ { @@ -2411,23 +2486,23 @@ var doc = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionaryDetail" ], - "summary": "分页获取SysOperationRecord列表", + "summary": "用id查询SysDictionaryDetail", "parameters": [ { - "description": "页码, 每页大小, 搜索条件", + "description": "用id查询SysDictionaryDetail", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.SysOperationRecordSearch" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } @@ -2435,20 +2510,34 @@ var doc = `{ } } }, - "/system/getServerInfo": { - "post": { + "/sysDictionaryDetail/getSysDictionaryDetailList": { + "get": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "SysDictionaryDetail" + ], + "summary": "分页获取SysDictionaryDetail列表", + "parameters": [ + { + "description": "页码, 每页大小, 搜索条件", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SysDictionaryDetailSearch" + } + } ], - "summary": "获取服务器信息", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", @@ -2459,23 +2548,37 @@ var doc = `{ } } }, - "/system/getSystemConfig": { - "post": { + "/sysDictionaryDetail/updateSysDictionaryDetail": { + "put": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "SysDictionaryDetail" + ], + "summary": "更新SysDictionaryDetail", + "parameters": [ + { + "description": "更新SysDictionaryDetail", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + } ], - "summary": "获取配置文件内容", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -2483,23 +2586,37 @@ var doc = `{ } } }, - "/system/reloadSystem": { + "/sysOperationRecord/createSysOperationRecord": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "SysOperationRecord" + ], + "summary": "创建SysOperationRecord", + "parameters": [ + { + "description": "创建SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysOperationRecord" + } + } ], - "summary": "重启系统", "responses": { "200": { - "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -2507,28 +2624,252 @@ var doc = `{ } } }, - "/system/setSystemConfig": { - "post": { + "/sysOperationRecord/deleteSysOperationRecord": { + "delete": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "SysOperationRecord" ], - "summary": "设置配置文件内容", + "summary": "删除SysOperationRecord", "parameters": [ { - "description": "设置配置文件内容", + "description": "SysOperationRecord模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.System" + "$ref": "#/definitions/system.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/deleteSysOperationRecordByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "批量删除SysOperationRecord", + "parameters": [ + { + "description": "批量删除SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/findSysOperationRecord": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "用id查询SysOperationRecord", + "parameters": [ + { + "description": "Id", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/getSysOperationRecordList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "分页获取SysOperationRecord列表", + "parameters": [ + { + "description": "页码, 每页大小, 搜索条件", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SysOperationRecordSearch" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/getServerInfo": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "获取服务器信息", + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/getSystemConfig": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "获取配置文件内容", + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/reloadSystem": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "重启系统", + "responses": { + "200": { + "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/setSystemConfig": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "设置配置文件内容", + "parameters": [ + { + "description": "设置配置文件内容", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.System" } } ], @@ -2669,7 +3010,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/request.Register" } } ], @@ -2745,7 +3086,7 @@ var doc = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/system.SysUser" } } ], @@ -2761,6 +3102,27 @@ var doc = `{ } }, "definitions": { + "autocode.AutoCodeExample": { + "type": "object", + "properties": { + "autoCodeExampleField": { + "description": "展示值", + "type": "string" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "id": { + "description": "主键ID", + "type": "integer" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + } + } + }, "config.AliyunOSS": { "type": "object", "properties": { @@ -2770,6 +3132,9 @@ var doc = `{ "accessKeySecret": { "type": "string" }, + "basePath": { + "type": "string" + }, "bucketName": { "type": "string" }, @@ -2808,6 +3173,9 @@ var doc = `{ "serverService": { "type": "string" }, + "transferRestart": { + "type": "boolean" + }, "web": { "type": "string" }, @@ -2948,10 +3316,11 @@ var doc = `{ }, "logMode": { "description": "是否开启Gorm全局日志", - "type": "boolean" + "type": "string" }, "logZap": { - "type": "string" + "description": "是否通过zap写入日志文件", + "type": "boolean" }, "maxIdleConns": { "description": "空闲中的最大连接数", @@ -3186,55 +3555,16 @@ var doc = `{ } } }, - "model.AutoCodeStruct": { + "example.ExaCustomer": { "type": "object", "properties": { - "abbreviation": { - "description": "Struct简称", + "createdAt": { + "description": "创建时间", "type": "string" }, - "autoCreateApiToSql": { - "description": "是否自动创建api", - "type": "boolean" - }, - "autoMoveFile": { - "description": "是否自动移动文件", - "type": "boolean" - }, - "description": { - "description": "Struct中文名称", - "type": "string" - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/model.Field" - } - }, - "packageName": { - "description": "文件名称", - "type": "string" - }, - "structName": { - "description": "Struct名称", - "type": "string" - }, - "tableName": { - "description": "表名", - "type": "string" - } - } - }, - "model.ExaCustomer": { - "type": "object", - "properties": { - "createdAt": { - "description": "创建时间", - "type": "string" - }, - "customerName": { - "description": "客户名", - "type": "string" + "customerName": { + "description": "客户名", + "type": "string" }, "customerPhoneData": { "description": "客户手机号", @@ -3246,7 +3576,7 @@ var doc = `{ }, "sysUser": { "description": "管理详情", - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/system.SysUser" }, "sysUserAuthorityID": { "description": "管理角色ID", @@ -3262,7 +3592,7 @@ var doc = `{ } } }, - "model.ExaFileUploadAndDownload": { + "example.ExaFileUploadAndDownload": { "type": "object", "properties": { "createdAt": { @@ -3295,7 +3625,7 @@ var doc = `{ } } }, - "model.ExcelInfo": { + "example.ExcelInfo": { "type": "object", "properties": { "fileName": { @@ -3305,210 +3635,264 @@ var doc = `{ "infoList": { "type": "array", "items": { - "$ref": "#/definitions/model.SysBaseMenu" + "$ref": "#/definitions/system.SysBaseMenu" } } } }, - "model.Field": { + "request.AddMenuAuthorityInfo": { "type": "object", "properties": { - "columnName": { - "description": "数据库字段", + "authorityId": { + "description": "角色ID", "type": "string" }, - "comment": { - "description": "数据库字段描述", + "menus": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenu" + } + } + } + }, + "request.AutoCodeExampleSearch": { + "type": "object", + "properties": { + "autoCodeExampleField": { + "description": "展示值", "type": "string" }, - "dataType": { - "description": "数据库字段类型", + "createdAt": { + "description": "创建时间", "type": "string" }, - "dataTypeLong": { - "description": "数据库字段长度", - "type": "string" + "id": { + "description": "主键ID", + "type": "integer" }, - "dictType": { - "description": "字典", - "type": "string" + "page": { + "description": "页码", + "type": "integer" }, - "fieldDesc": { - "description": "中文名", - "type": "string" + "pageSize": { + "description": "每页大小", + "type": "integer" }, - "fieldJson": { - "description": "FieldJson", + "updatedAt": { + "description": "更新时间", "type": "string" - }, - "fieldName": { - "description": "Field名", + } + } + }, + "request.AutoHistoryByID": { + "type": "object", + "properties": { + "id": { + "type": "integer" + } + } + }, + "request.CasbinInReceive": { + "type": "object", + "properties": { + "authorityId": { + "description": "权限id", "type": "string" }, - "fieldSearchType": { - "description": "搜索条件", + "casbinInfos": { + "type": "array", + "items": { + "$ref": "#/definitions/request.CasbinInfo" + } + } + } + }, + "request.CasbinInfo": { + "type": "object", + "properties": { + "method": { + "description": "方法", "type": "string" }, - "fieldType": { - "description": "Field数据类型", + "path": { + "description": "路径", "type": "string" } } }, - "model.SysApi": { + "request.ChangePasswordStruct": { "type": "object", "properties": { - "apiGroup": { - "description": "api组", + "newPassword": { + "description": "新密码", "type": "string" }, - "createdAt": { - "description": "创建时间", + "password": { + "description": "密码", "type": "string" }, - "description": { - "description": "api中文描述", + "username": { + "description": "用户名", "type": "string" - }, + } + } + }, + "request.Empty": { + "type": "object" + }, + "request.GetAuthorityId": { + "type": "object", + "properties": { + "authorityId": { + "description": "角色ID", + "type": "string" + } + } + }, + "request.GetById": { + "type": "object", + "properties": { "id": { "description": "主键ID", - "type": "integer" + "type": "number" + } + } + }, + "request.IdsReq": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.InitDB": { + "type": "object", + "required": [ + "dbName", + "userName" + ], + "properties": { + "dbName": { + "description": "数据库名", + "type": "string" }, - "method": { - "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE", + "host": { + "description": "服务器地址", "type": "string" }, - "path": { - "description": "api路径", + "password": { + "description": "数据库密码", "type": "string" }, - "updatedAt": { - "description": "更新时间", + "port": { + "description": "数据库连接端口", + "type": "string" + }, + "userName": { + "description": "数据库用户名", "type": "string" } } }, - "model.SysAuthority": { + "request.Login": { "type": "object", "properties": { - "authorityId": { - "description": "角色ID", + "captcha": { + "description": "验证码", "type": "string" }, - "authorityName": { - "description": "角色名", + "captchaId": { + "description": "验证码ID", "type": "string" }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysAuthority" - } - }, - "createdAt": { - "description": "创建时间", + "password": { + "description": "密码", "type": "string" }, - "dataAuthorityId": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysAuthority" - } + "username": { + "description": "用户名", + "type": "string" + } + } + }, + "request.PageInfo": { + "type": "object", + "properties": { + "page": { + "description": "页码", + "type": "integer" }, - "defaultRouter": { - "description": "默认菜单(默认dashboard)", + "pageSize": { + "description": "每页大小", + "type": "integer" + } + } + }, + "request.Register": { + "type": "object", + "properties": { + "authorityId": { "type": "string" }, - "deletedAt": { + "headerImg": { "type": "string" }, - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysBaseMenu" - } + "nickName": { + "type": "string" }, - "parentId": { - "description": "父角色ID", + "passWord": { "type": "string" }, - "updatedAt": { - "description": "更新时间", + "userName": { "type": "string" } } }, - "model.SysBaseMenu": { + "request.SearchApiParams": { "type": "object", "properties": { - "authoritys": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysAuthority" - } - }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysBaseMenu" - } - }, - "closeTab": { - "description": "自动关闭tab", - "type": "boolean" - }, - "component": { - "description": "对应前端文件路径", + "apiGroup": { + "description": "api组", "type": "string" }, "createdAt": { "description": "创建时间", "type": "string" }, - "defaultMenu": { - "description": "是否是基础路由(开发中)", - "type": "boolean" - }, - "hidden": { - "description": "是否在列表隐藏", + "desc": { + "description": "排序方式:升序false(默认)|降序true", "type": "boolean" }, - "icon": { - "description": "菜单图标", + "description": { + "description": "api中文描述", "type": "string" }, "id": { "description": "主键ID", "type": "integer" }, - "keepAlive": { - "description": "是否缓存", - "type": "boolean" - }, - "name": { - "description": "路由name", + "method": { + "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE", "type": "string" }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysBaseMenuParameter" - } - }, - "parentId": { - "description": "父菜单ID", + "orderKey": { + "description": "排序", "type": "string" }, - "path": { - "description": "路由path", - "type": "string" + "page": { + "description": "页码", + "type": "integer" }, - "sort": { - "description": "排序标记", + "pageSize": { + "description": "每页大小", "type": "integer" }, - "title": { - "description": "菜单名", + "path": { + "description": "api路径", "type": "string" }, "updatedAt": { @@ -3517,7 +3901,33 @@ var doc = `{ } } }, - "model.SysBaseMenuParameter": { + "request.SetUserAuth": { + "type": "object", + "properties": { + "authorityId": { + "description": "角色ID", + "type": "string" + }, + "uuid": { + "description": "用户UUID", + "type": "string" + } + } + }, + "request.SysAutoHistory": { + "type": "object", + "properties": { + "page": { + "description": "页码", + "type": "integer" + }, + "pageSize": { + "description": "每页大小", + "type": "integer" + } + } + }, + "request.SysDictionaryDetailSearch": { "type": "object", "properties": { "createdAt": { @@ -3528,28 +3938,41 @@ var doc = `{ "description": "主键ID", "type": "integer" }, - "key": { - "description": "地址栏携带参数的key", + "label": { + "description": "展示值", "type": "string" }, - "sysBaseMenuID": { + "page": { + "description": "页码", + "type": "integer" + }, + "pageSize": { + "description": "每页大小", + "type": "integer" + }, + "sort": { + "description": "排序标记", + "type": "integer" + }, + "status": { + "description": "启用状态", + "type": "boolean" + }, + "sysDictionaryID": { + "description": "关联标记", "type": "integer" }, - "type": { - "description": "地址栏携带参数为params还是query", - "type": "string" - }, "updatedAt": { "description": "更新时间", "type": "string" }, "value": { - "description": "地址栏携带参数的值", - "type": "string" + "description": "字典值", + "type": "integer" } } }, - "model.SysDictionary": { + "request.SysDictionarySearch": { "type": "object", "properties": { "createdAt": { @@ -3568,6 +3991,14 @@ var doc = `{ "description": "字典名(中)", "type": "string" }, + "page": { + "description": "页码", + "type": "integer" + }, + "pageSize": { + "description": "每页大小", + "type": "integer" + }, "status": { "description": "状态", "type": "boolean" @@ -3575,7 +4006,7 @@ var doc = `{ "sysDictionaryDetails": { "type": "array", "items": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysDictionaryDetail" } }, "type": { @@ -3588,44 +4019,7 @@ var doc = `{ } } }, - "model.SysDictionaryDetail": { - "type": "object", - "properties": { - "createdAt": { - "description": "创建时间", - "type": "string" - }, - "id": { - "description": "主键ID", - "type": "integer" - }, - "label": { - "description": "展示值", - "type": "string" - }, - "sort": { - "description": "排序标记", - "type": "integer" - }, - "status": { - "description": "启用状态", - "type": "boolean" - }, - "sysDictionaryID": { - "description": "关联标记", - "type": "integer" - }, - "updatedAt": { - "description": "更新时间", - "type": "string" - }, - "value": { - "description": "字典值", - "type": "integer" - } - } - }, - "model.SysOperationRecord": { + "request.SysOperationRecordSearch": { "type": "object", "properties": { "agent": { @@ -3660,6 +4054,14 @@ var doc = `{ "description": "请求方法", "type": "string" }, + "page": { + "description": "页码", + "type": "integer" + }, + "pageSize": { + "description": "每页大小", + "type": "integer" + }, "path": { "description": "请求路径", "type": "string" @@ -3677,7 +4079,7 @@ var doc = `{ "type": "string" }, "user": { - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/system.SysUser" }, "user_id": { "description": "用户id", @@ -3685,210 +4087,107 @@ var doc = `{ } } }, - "model.SysUser": { + "response.SysAuthorityCopyResponse": { "type": "object", "properties": { "authority": { - "$ref": "#/definitions/model.SysAuthority" - }, - "authorityId": { - "description": "用户角色ID", - "type": "string" - }, - "createdAt": { - "description": "创建时间", - "type": "string" - }, - "headerImg": { - "description": "用户头像", - "type": "string" - }, - "id": { - "description": "主键ID", - "type": "integer" - }, - "nickName": { - "description": "用户昵称", - "type": "string" - }, - "updatedAt": { - "description": "更新时间", - "type": "string" - }, - "userName": { - "description": "用户登录名", - "type": "string" + "$ref": "#/definitions/system.SysAuthority" }, - "uuid": { - "description": "用户UUID", + "oldAuthorityId": { + "description": "旧角色ID", "type": "string" } } }, - "model.System": { - "type": "object", - "properties": { - "config": { - "$ref": "#/definitions/config.Server" - } - } - }, - "request.AddMenuAuthorityInfo": { + "system.AutoCodeStruct": { "type": "object", "properties": { - "authorityId": { - "description": "角色ID", + "abbreviation": { + "description": "Struct简称", "type": "string" }, - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysBaseMenu" - } - } - } - }, - "request.CasbinInReceive": { - "type": "object", - "properties": { - "authorityId": { - "description": "权限id", + "autoCreateApiToSql": { + "description": "是否自动创建api", + "type": "boolean" + }, + "autoMoveFile": { + "description": "是否自动移动文件", + "type": "boolean" + }, + "description": { + "description": "Struct中文名称", "type": "string" }, - "casbinInfos": { + "fields": { "type": "array", "items": { - "$ref": "#/definitions/request.CasbinInfo" + "$ref": "#/definitions/system.Field" } - } - } - }, - "request.CasbinInfo": { - "type": "object", - "properties": { - "method": { - "description": "方法", - "type": "string" }, - "path": { - "description": "路径", - "type": "string" - } - } - }, - "request.ChangePasswordStruct": { - "type": "object", - "properties": { - "newPassword": { - "description": "新密码", + "humpPackageName": { + "description": "go文件名称", "type": "string" }, - "password": { - "description": "密码", + "packageName": { + "description": "文件名称", "type": "string" }, - "username": { - "description": "用户名", + "structName": { + "description": "Struct名称", "type": "string" - } - } - }, - "request.Empty": { - "type": "object" - }, - "request.GetAuthorityId": { - "type": "object", - "properties": { - "authorityId": { - "description": "角色ID", + }, + "tableName": { + "description": "表名", "type": "string" } } }, - "request.GetById": { - "type": "object", - "properties": { - "id": { - "description": "主键ID", - "type": "number" - } - } - }, - "request.IdsReq": { - "type": "object", - "properties": { - "ids": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, - "request.InitDB": { + "system.Field": { "type": "object", - "required": [ - "dbName", - "userName" - ], "properties": { - "dbName": { - "description": "数据库名", + "columnName": { + "description": "数据库字段", "type": "string" }, - "host": { - "description": "服务器地址", + "comment": { + "description": "数据库字段描述", "type": "string" }, - "password": { - "description": "数据库密码", + "dataType": { + "description": "数据库字段类型", "type": "string" }, - "port": { - "description": "数据库连接端口", + "dataTypeLong": { + "description": "数据库字段长度", "type": "string" }, - "userName": { - "description": "数据库用户名", - "type": "string" - } - } - }, - "request.Login": { - "type": "object", - "properties": { - "captcha": { - "description": "验证码", + "dictType": { + "description": "字典", "type": "string" }, - "captchaId": { - "description": "验证码ID", + "fieldDesc": { + "description": "中文名", "type": "string" }, - "password": { - "description": "密码", + "fieldJson": { + "description": "FieldJson", "type": "string" }, - "username": { - "description": "用户名", + "fieldName": { + "description": "Field名", + "type": "string" + }, + "fieldSearchType": { + "description": "搜索条件", "type": "string" - } - } - }, - "request.PageInfo": { - "type": "object", - "properties": { - "page": { - "description": "页码", - "type": "integer" }, - "pageSize": { - "description": "每页大小", - "type": "integer" + "fieldType": { + "description": "Field数据类型", + "type": "string" } } }, - "request.SearchApiParams": { + "system.SysApi": { "type": "object", "properties": { "apiGroup": { @@ -3899,10 +4198,6 @@ var doc = `{ "description": "创建时间", "type": "string" }, - "desc": { - "description": "排序方式:升序false(默认)|降序true", - "type": "boolean" - }, "description": { "description": "api中文描述", "type": "string" @@ -3915,18 +4210,6 @@ var doc = `{ "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE", "type": "string" }, - "orderKey": { - "description": "排序", - "type": "string" - }, - "page": { - "description": "页码", - "type": "integer" - }, - "pageSize": { - "description": "每页大小", - "type": "integer" - }, "path": { "description": "api路径", "type": "string" @@ -3937,65 +4220,168 @@ var doc = `{ } } }, - "request.SetUserAuth": { + "system.SysAuthority": { "type": "object", "properties": { "authorityId": { "description": "角色ID", "type": "string" }, - "uuid": { - "description": "用户UUID", + "authorityName": { + "description": "角色名", + "type": "string" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysAuthority" + } + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "dataAuthorityId": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysAuthority" + } + }, + "defaultRouter": { + "description": "默认菜单(默认dashboard)", + "type": "string" + }, + "deletedAt": { + "type": "string" + }, + "menus": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenu" + } + }, + "parentId": { + "description": "父角色ID", + "type": "string" + }, + "updatedAt": { + "description": "更新时间", "type": "string" } } }, - "request.SysDictionaryDetailSearch": { + "system.SysBaseMenu": { "type": "object", "properties": { + "authoritys": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysAuthority" + } + }, + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenu" + } + }, + "closeTab": { + "description": "自动关闭tab", + "type": "boolean" + }, + "component": { + "description": "对应前端文件路径", + "type": "string" + }, "createdAt": { "description": "创建时间", "type": "string" }, + "defaultMenu": { + "description": "是否是基础路由(开发中)", + "type": "boolean" + }, + "hidden": { + "description": "是否在列表隐藏", + "type": "boolean" + }, + "icon": { + "description": "菜单图标", + "type": "string" + }, "id": { "description": "主键ID", "type": "integer" }, - "label": { - "description": "展示值", + "keepAlive": { + "description": "是否缓存", + "type": "boolean" + }, + "name": { + "description": "路由name", "type": "string" }, - "page": { - "description": "页码", - "type": "integer" + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenuParameter" + } }, - "pageSize": { - "description": "每页大小", - "type": "integer" + "parentId": { + "description": "父菜单ID", + "type": "string" + }, + "path": { + "description": "路由path", + "type": "string" }, "sort": { "description": "排序标记", "type": "integer" }, - "status": { - "description": "启用状态", - "type": "boolean" + "title": { + "description": "菜单名", + "type": "string" }, - "sysDictionaryID": { - "description": "关联标记", + "updatedAt": { + "description": "更新时间", + "type": "string" + } + } + }, + "system.SysBaseMenuParameter": { + "type": "object", + "properties": { + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "id": { + "description": "主键ID", + "type": "integer" + }, + "key": { + "description": "地址栏携带参数的key", + "type": "string" + }, + "sysBaseMenuID": { "type": "integer" }, + "type": { + "description": "地址栏携带参数为params还是query", + "type": "string" + }, "updatedAt": { "description": "更新时间", "type": "string" }, "value": { - "description": "字典值", - "type": "integer" + "description": "地址栏携带参数的值", + "type": "string" } } }, - "request.SysDictionarySearch": { + "system.SysDictionary": { "type": "object", "properties": { "createdAt": { @@ -4014,14 +4400,6 @@ var doc = `{ "description": "字典名(中)", "type": "string" }, - "page": { - "description": "页码", - "type": "integer" - }, - "pageSize": { - "description": "每页大小", - "type": "integer" - }, "status": { "description": "状态", "type": "boolean" @@ -4029,7 +4407,7 @@ var doc = `{ "sysDictionaryDetails": { "type": "array", "items": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysDictionaryDetail" } }, "type": { @@ -4042,7 +4420,44 @@ var doc = `{ } } }, - "request.SysOperationRecordSearch": { + "system.SysDictionaryDetail": { + "type": "object", + "properties": { + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "id": { + "description": "主键ID", + "type": "integer" + }, + "label": { + "description": "展示值", + "type": "string" + }, + "sort": { + "description": "排序标记", + "type": "integer" + }, + "status": { + "description": "启用状态", + "type": "boolean" + }, + "sysDictionaryID": { + "description": "关联标记", + "type": "integer" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + }, + "value": { + "description": "字典值", + "type": "integer" + } + } + }, + "system.SysOperationRecord": { "type": "object", "properties": { "agent": { @@ -4077,14 +4492,6 @@ var doc = `{ "description": "请求方法", "type": "string" }, - "page": { - "description": "页码", - "type": "integer" - }, - "pageSize": { - "description": "每页大小", - "type": "integer" - }, "path": { "description": "请求路径", "type": "string" @@ -4102,7 +4509,7 @@ var doc = `{ "type": "string" }, "user": { - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/system.SysUser" }, "user_id": { "description": "用户id", @@ -4110,17 +4517,65 @@ var doc = `{ } } }, - "response.SysAuthorityCopyResponse": { + "system.SysUser": { "type": "object", "properties": { + "activeColor": { + "description": "活跃颜色", + "type": "string" + }, "authority": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" }, - "oldAuthorityId": { - "description": "旧角色ID", + "authorityId": { + "description": "用户角色ID", + "type": "string" + }, + "baseColor": { + "description": "基础颜色", + "type": "string" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "headerImg": { + "description": "用户头像", + "type": "string" + }, + "id": { + "description": "主键ID", + "type": "integer" + }, + "nickName": { + "description": "用户昵称", + "type": "string" + }, + "sideMode": { + "description": "用户侧边主题", + "type": "string" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + }, + "userName": { + "description": "用户登录名", + "type": "string" + }, + "uuid": { + "description": "用户UUID", "type": "string" } } + }, + "system.System": { + "type": "object", + "properties": { + "config": { + "$ref": "#/definitions/config.Server" + } + } } }, "securityDefinitions": { diff --git a/server/docs/swagger.json b/server/docs/swagger.json index 9884a45d..9fc6f9ab 100644 --- a/server/docs/swagger.json +++ b/server/docs/swagger.json @@ -8,6 +8,108 @@ }, "basePath": "/", "paths": { + "/SimpleUploaderApi/checkFileMd5": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "SimpleUploader" + ], + "summary": "断点续传插件版示例", + "parameters": [ + { + "type": "string", + "description": "md5", + "name": "md5", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/SimpleUploaderApi/mergeFileMd5": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "SimpleUploader" + ], + "summary": "合并文件", + "parameters": [ + { + "type": "string", + "description": "md5", + "name": "md5", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/SimpleUploaderApi/upload": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SimpleUploader" + ], + "summary": "断点续传插件版示例", + "parameters": [ + { + "type": "file", + "description": "断点续传插件版示例", + "name": "file", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/api/createApi": { "post": { "security": [ @@ -32,7 +134,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysApi" + "$ref": "#/definitions/system.SysApi" } } ], @@ -70,7 +172,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysApi" + "$ref": "#/definitions/system.SysApi" } } ], @@ -249,7 +351,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysApi" + "$ref": "#/definitions/system.SysApi" } } ], @@ -325,7 +427,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" } } ], @@ -363,7 +465,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" } } ], @@ -439,7 +541,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" } } ], @@ -477,7 +579,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" } } ], @@ -515,7 +617,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.AutoCodeStruct" + "$ref": "#/definitions/system.AutoCodeStruct" } } ], @@ -529,8 +631,8 @@ } } }, - "/autoCode/getColumn": { - "get": { + "/autoCode/delSysHistory": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -545,10 +647,21 @@ "tags": [ "AutoCode" ], - "summary": "获取当前表所有字段", + "summary": "删除回滚记录", + "parameters": [ + { + "description": "删除回滚记录", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AutoHistoryByID" + } + } + ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -556,7 +669,7 @@ } } }, - "/autoCode/getDatabase": { + "/autoCode/getColumn": { "get": { "security": [ { @@ -572,7 +685,7 @@ "tags": [ "AutoCode" ], - "summary": "获取当前所有数据库", + "summary": "获取当前表所有字段", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", @@ -583,7 +696,7 @@ } } }, - "/autoCode/getTables": { + "/autoCode/getDatabase": { "get": { "security": [ { @@ -599,7 +712,7 @@ "tags": [ "AutoCode" ], - "summary": "获取当前数据库所有表", + "summary": "获取当前所有数据库", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", @@ -610,7 +723,7 @@ } } }, - "/autoCode/preview": { + "/autoCode/getMeta": { "post": { "security": [ { @@ -626,21 +739,21 @@ "tags": [ "AutoCode" ], - "summary": "预览创建后的代码", + "summary": "回滚", "parameters": [ { - "description": "预览创建代码", + "description": "获取meta信息", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.AutoCodeStruct" + "$ref": "#/definitions/request.AutoHistoryByID" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -648,7 +761,7 @@ } } }, - "/base/captcha": { + "/autoCode/getSysHistory": { "post": { "security": [ { @@ -662,12 +775,23 @@ "application/json" ], "tags": [ - "Base" + "AutoCode" + ], + "summary": "查询回滚记录", + "parameters": [ + { + "description": "查询回滚记录", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SysAutoHistory" + } + } ], - "summary": "生成验证码", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -675,29 +799,26 @@ } } }, - "/base/login": { - "post": { + "/autoCode/getTables": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "Base" - ], - "summary": "用户登录", - "parameters": [ - { - "description": "用户名, 密码, 验证码", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Login" - } - } + "AutoCode" ], + "summary": "获取当前数据库所有表", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -705,7 +826,7 @@ } } }, - "/casbin/UpdateCasbin": { + "/autoCode/preview": { "post": { "security": [ { @@ -719,23 +840,23 @@ "application/json" ], "tags": [ - "Casbin" + "AutoCode" ], - "summary": "更新角色api权限", + "summary": "预览创建后的代码", "parameters": [ { - "description": "权限id, 权限模型列表", + "description": "预览创建代码", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.CasbinInReceive" + "$ref": "#/definitions/system.AutoCodeStruct" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } @@ -743,7 +864,7 @@ } } }, - "/casbin/getPolicyPathByAuthorityId": { + "/autoCode/rollback": { "post": { "security": [ { @@ -757,23 +878,23 @@ "application/json" ], "tags": [ - "Casbin" + "AutoCode" ], - "summary": "获取权限列表", + "summary": "回滚", "parameters": [ { - "description": "权限id, 权限模型列表", + "description": "回滚自动生成代码", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.CasbinInReceive" + "$ref": "#/definitions/request.AutoHistoryByID" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"回滚成功\"}", "schema": { "type": "string" } @@ -781,8 +902,8 @@ } } }, - "/customer/customer": { - "get": { + "/autoCodeExample/createAutoCodeExample": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -795,30 +916,32 @@ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "获取单一客户信息", + "summary": "创建AutoCodeExample", "parameters": [ { - "description": "客户ID", + "description": "AutoCodeExample模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaCustomer" + "$ref": "#/definitions/autocode.AutoCodeExample" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } } } - }, - "put": { + } + }, + "/autoCodeExample/deleteAutoCodeExample": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -831,30 +954,32 @@ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "更新客户信息", + "summary": "删除AutoCodeExample", "parameters": [ { - "description": "客户ID, 客户信息", + "description": "AutoCodeExample模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaCustomer" + "$ref": "#/definitions/autocode.AutoCodeExample" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } - }, - "post": { + } + }, + "/autoCodeExample/findAutoCodeExample": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -867,30 +992,32 @@ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "创建客户", + "summary": "用id查询AutoCodeExample", "parameters": [ { - "description": "客户用户名, 客户手机号码", + "description": "用id查询AutoCodeExample", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaCustomer" + "$ref": "#/definitions/autocode.AutoCodeExample" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } - }, - "delete": { + } + }, + "/autoCodeExample/getAutoCodeExampleList": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -903,23 +1030,23 @@ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "删除客户", + "summary": "分页获取AutoCodeExample列表", "parameters": [ { - "description": "客户ID", + "description": "页码, 每页大小, 搜索条件", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaCustomer" + "$ref": "#/definitions/request.AutoCodeExampleSearch" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -927,8 +1054,8 @@ } } }, - "/customer/customerList": { - "get": { + "/autoCodeExample/updateAutoCodeExample": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -941,23 +1068,23 @@ "application/json" ], "tags": [ - "ExaCustomer" + "AutoCodeExample" ], - "summary": "分页获取权限客户列表", + "summary": "更新AutoCodeExample", "parameters": [ { - "description": "页码, 每页大小", + "description": "更新AutoCodeExample", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.PageInfo" + "$ref": "#/definitions/autocode.AutoCodeExample" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -965,23 +1092,26 @@ } } }, - "/email/emailTest": { + "/base/captcha": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "Base" ], - "summary": "发送测试邮件", + "summary": "生成验证码", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}", "schema": { "type": "string" } @@ -989,40 +1119,37 @@ } } }, - "/excel/downloadTemplate": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "multipart/form-data" - ], + "/base/login": { + "post": { "produces": [ "application/json" ], "tags": [ - "excel" + "Base" ], - "summary": "下载模板", + "summary": "用户登录", "parameters": [ { - "type": "string", - "description": "模板名称", - "name": "fileName", - "in": "query", - "required": true + "description": "用户名, 密码, 验证码", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.Login" + } } ], "responses": { "200": { - "description": "" + "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}", + "schema": { + "type": "string" + } } } } }, - "/excel/exportExcel": { + "/casbin/UpdateCasbin": { "post": { "security": [ { @@ -1033,31 +1160,34 @@ "application/json" ], "produces": [ - "application/octet-stream" + "application/json" ], "tags": [ - "excel" + "Casbin" ], - "summary": "导出Excel", + "summary": "更新角色api权限", "parameters": [ { - "description": "导出Excel文件信息", + "description": "权限id, 权限模型列表", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExcelInfo" + "$ref": "#/definitions/request.CasbinInReceive" } } ], "responses": { "200": { - "description": "" + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "schema": { + "type": "string" + } } } } }, - "/excel/importExcel": { + "/casbin/getPolicyPathByAuthorityId": { "post": { "security": [ { @@ -1065,27 +1195,29 @@ } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "excel" + "Casbin" ], - "summary": "导入Excel文件", + "summary": "获取权限列表", "parameters": [ { - "type": "file", - "description": "导入Excel文件", - "name": "file", - "in": "formData", - "required": true + "description": "权限id, 权限模型列表", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.CasbinInReceive" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1093,130 +1225,145 @@ } } }, - "/excel/loadExcel": { + "/customer/customer": { "get": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "excel" + "ExaCustomer" + ], + "summary": "获取单一客户信息", + "parameters": [ + { + "description": "客户ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/example.ExaCustomer" + } + } ], - "summary": "加载Excel数据", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } - } - }, - "/fileUploadAndDownload/breakpointContinue": { - "post": { + }, + "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "ExaCustomer" ], - "summary": "断点续传到服务器", + "summary": "更新客户信息", "parameters": [ { - "type": "file", - "description": "an example for breakpoint resume, 断点续传示例", - "name": "file", - "in": "formData", - "required": true + "description": "客户ID, 客户信息", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/example.ExaCustomer" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } - } - }, - "/fileUploadAndDownload/deleteFile": { + }, "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "ExaCustomer" ], - "summary": "删除文件", + "summary": "创建客户", "parameters": [ { - "description": "传入文件里面id即可", + "description": "客户用户名, 客户手机号码", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.ExaFileUploadAndDownload" + "$ref": "#/definitions/example.ExaCustomer" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } } } - } - }, - "/fileUploadAndDownload/findFile": { - "post": { + }, + "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "ExaCustomer" ], - "summary": "创建文件", + "summary": "删除客户", "parameters": [ { - "type": "file", - "description": "上传文件完成", - "name": "file", - "in": "formData", - "required": true + "description": "客户ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/example.ExaCustomer" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -1224,8 +1371,8 @@ } } }, - "/fileUploadAndDownload/getFileList": { - "post": { + "/customer/customerList": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -1238,9 +1385,9 @@ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "ExaCustomer" ], - "summary": "分页文件列表", + "summary": "分页获取权限客户列表", "parameters": [ { "description": "页码, 每页大小", @@ -1262,35 +1409,23 @@ } } }, - "/fileUploadAndDownload/removeChunk": { + "/email/emailTest": { "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "multipart/form-data" - ], "produces": [ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" - ], - "summary": "删除切片", - "parameters": [ - { - "type": "file", - "description": "删除缓存切片", - "name": "file", - "in": "formData", - "required": true - } + "System" ], + "summary": "发送测试邮件", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}", "schema": { "type": "string" } @@ -1298,8 +1433,8 @@ } } }, - "/fileUploadAndDownload/upload": { - "post": { + "/excel/downloadTemplate": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -1312,78 +1447,61 @@ "application/json" ], "tags": [ - "ExaFileUploadAndDownload" + "excel" ], - "summary": "上传文件示例", + "summary": "下载模板", "parameters": [ { - "type": "file", - "description": "上传文件示例", - "name": "file", - "in": "formData", + "type": "string", + "description": "模板名称", + "name": "fileName", + "in": "query", "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", - "schema": { - "type": "string" - } + "description": "" } } } }, - "/init/checkdb": { + "/excel/exportExcel": { "post": { - "produces": [ - "application/json" + "security": [ + { + "ApiKeyAuth": [] + } ], - "tags": [ - "CheckDB" + "consumes": [ + "application/json" ], - "summary": "初始化用户数据库", - "responses": { - "200": { - "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/init/initdb": { - "post": { "produces": [ - "application/json" + "application/octet-stream" ], "tags": [ - "InitDB" + "excel" ], - "summary": "初始化用户数据库", + "summary": "导出Excel", "parameters": [ { - "description": "初始化数据库参数", + "description": "导出Excel文件信息", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.InitDB" + "$ref": "#/definitions/example.ExcelInfo" } } ], "responses": { "200": { - "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}", - "schema": { - "type": "string" - } + "description": "" } } } }, - "/jwt/jsonInBlacklist": { + "/excel/importExcel": { "post": { "security": [ { @@ -1391,18 +1509,27 @@ } ], "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ - "Jwt" + "excel" + ], + "summary": "导入Excel文件", + "parameters": [ + { + "type": "file", + "description": "导入Excel文件", + "name": "file", + "in": "formData", + "required": true + } ], - "summary": "jwt加入黑名单", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}", "schema": { "type": "string" } @@ -1410,37 +1537,23 @@ } } }, - "/menu/GetMenuAuthority": { - "post": { + "/excel/loadExcel": { + "get": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" - ], - "summary": "获取指定角色menu", - "parameters": [ - { - "description": "角色ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetAuthorityId" - } - } + "excel" ], + "summary": "加载Excel数据", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}", "schema": { "type": "string" } @@ -1448,7 +1561,7 @@ } } }, - "/menu/addBaseMenu": { + "/fileUploadAndDownload/breakpointContinue": { "post": { "security": [ { @@ -1456,29 +1569,27 @@ } ], "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ - "Menu" + "ExaFileUploadAndDownload" ], - "summary": "新增菜单", + "summary": "断点续传到服务器", "parameters": [ { - "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.SysBaseMenu" - } + "type": "file", + "description": "an example for breakpoint resume, 断点续传示例", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}", "schema": { "type": "string" } @@ -1486,37 +1597,34 @@ } } }, - "/menu/addMenuAuthority": { + "/fileUploadAndDownload/deleteFile": { "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "ExaFileUploadAndDownload" ], - "summary": "增加menu和角色关联关系", + "summary": "删除文件", "parameters": [ { - "description": "角色ID", + "description": "传入文件里面id即可", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.AddMenuAuthorityInfo" + "$ref": "#/definitions/example.ExaFileUploadAndDownload" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -1524,7 +1632,7 @@ } } }, - "/menu/deleteBaseMenu": { + "/fileUploadAndDownload/findFile": { "post": { "security": [ { @@ -1532,29 +1640,27 @@ } ], "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ - "Menu" + "ExaFileUploadAndDownload" ], - "summary": "删除菜单", + "summary": "创建文件", "parameters": [ { - "description": "菜单id", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } + "type": "file", + "description": "上传文件完成", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}", "schema": { "type": "string" } @@ -1562,7 +1668,7 @@ } } }, - "/menu/getBaseMenuById": { + "/fileUploadAndDownload/getFileList": { "post": { "security": [ { @@ -1576,17 +1682,17 @@ "application/json" ], "tags": [ - "Menu" + "ExaFileUploadAndDownload" ], - "summary": "根据id获取菜单", + "summary": "分页文件列表", "parameters": [ { - "description": "菜单id", + "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/request.PageInfo" } } ], @@ -1600,34 +1706,35 @@ } } }, - "/menu/getBaseMenuTree": { + "/fileUploadAndDownload/removeChunk": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "multipart/form-data" + ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "ExaFileUploadAndDownload" ], - "summary": "获取用户动态路由", + "summary": "删除切片", "parameters": [ { - "description": "空", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Empty" - } + "type": "file", + "description": "删除缓存切片", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}", "schema": { "type": "string" } @@ -1635,34 +1742,35 @@ } } }, - "/menu/getMenu": { + "/fileUploadAndDownload/upload": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "multipart/form-data" + ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "ExaFileUploadAndDownload" ], - "summary": "获取用户动态路由", + "summary": "上传文件示例", "parameters": [ { - "description": "空", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Empty" - } + "type": "file", + "description": "上传文件示例", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", "schema": { "type": "string" } @@ -1670,37 +1778,18 @@ } } }, - "/menu/getMenuList": { + "/init/checkdb": { "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "Menu" - ], - "summary": "分页获取基础menu列表", - "parameters": [ - { - "description": "页码, 每页大小", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.PageInfo" - } - } + "CheckDB" ], + "summary": "初始化用户数据库", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}", "schema": { "type": "string" } @@ -1708,37 +1797,29 @@ } } }, - "/menu/updateBaseMenu": { + "/init/initdb": { "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "Menu" + "InitDB" ], - "summary": "更新菜单", + "summary": "初始化用户数据库", "parameters": [ { - "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "description": "初始化数据库参数", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysBaseMenu" + "$ref": "#/definitions/request.InitDB" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}", "schema": { "type": "string" } @@ -1746,32 +1827,26 @@ } } }, - "/simpleUploader/checkFileMd5": { - "get": { + "/jwt/jsonInBlacklist": { + "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "SimpleUploader" - ], - "summary": "断点续传插件版示例", - "parameters": [ - { - "type": "string", - "description": "md5", - "name": "md5", - "in": "query", - "required": true - } + "Jwt" ], + "summary": "jwt加入黑名单", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}", "schema": { "type": "string" } @@ -1779,32 +1854,37 @@ } } }, - "/simpleUploader/mergeFileMd5": { - "get": { + "/menu/GetMenuAuthority": { + "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "SimpleUploader" + "AuthorityMenu" ], - "summary": "合并文件", + "summary": "获取指定角色menu", "parameters": [ { - "type": "string", - "description": "md5", - "name": "md5", - "in": "query", - "required": true + "description": "角色ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetAuthorityId" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1812,7 +1892,7 @@ } } }, - "/simpleUploader/upload": { + "/menu/addBaseMenu": { "post": { "security": [ { @@ -1820,27 +1900,29 @@ } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "SimpleUploader" + "Menu" ], - "summary": "断点续传插件版示例", + "summary": "新增菜单", "parameters": [ { - "type": "file", - "description": "断点续传插件版示例", - "name": "file", - "in": "formData", - "required": true + "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysBaseMenu" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", "schema": { "type": "string" } @@ -1848,7 +1930,7 @@ } } }, - "/sysDictionary/createSysDictionary": { + "/menu/addMenuAuthority": { "post": { "security": [ { @@ -1862,23 +1944,23 @@ "application/json" ], "tags": [ - "SysDictionary" + "AuthorityMenu" ], - "summary": "创建SysDictionary", + "summary": "增加menu和角色关联关系", "parameters": [ { - "description": "SysDictionary模型", + "description": "角色ID", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionary" + "$ref": "#/definitions/request.AddMenuAuthorityInfo" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}", "schema": { "type": "string" } @@ -1886,8 +1968,8 @@ } } }, - "/sysDictionary/deleteSysDictionary": { - "delete": { + "/menu/deleteBaseMenu": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -1900,17 +1982,17 @@ "application/json" ], "tags": [ - "SysDictionary" + "Menu" ], - "summary": "删除SysDictionary", + "summary": "删除菜单", "parameters": [ { - "description": "SysDictionary模型", + "description": "菜单id", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionary" + "$ref": "#/definitions/request.GetById" } } ], @@ -1924,8 +2006,8 @@ } } }, - "/sysDictionary/findSysDictionary": { - "get": { + "/menu/getBaseMenuById": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -1938,23 +2020,23 @@ "application/json" ], "tags": [ - "SysDictionary" + "Menu" ], - "summary": "用id查询SysDictionary", + "summary": "根据id获取菜单", "parameters": [ { - "description": "ID或字典英名", + "description": "菜单id", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionary" + "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1962,31 +2044,28 @@ } } }, - "/sysDictionary/getSysDictionaryList": { - "get": { + "/menu/getBaseMenuTree": { + "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "SysDictionary" + "AuthorityMenu" ], - "summary": "分页获取SysDictionary列表", + "summary": "获取用户动态路由", "parameters": [ { - "description": "页码, 每页大小, 搜索条件", + "description": "空", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.SysDictionarySearch" + "$ref": "#/definitions/request.Empty" } } ], @@ -2000,37 +2079,34 @@ } } }, - "/sysDictionary/updateSysDictionary": { - "put": { + "/menu/getMenu": { + "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "SysDictionary" + "AuthorityMenu" ], - "summary": "更新SysDictionary", + "summary": "获取用户动态路由", "parameters": [ { - "description": "SysDictionary模型", + "description": "空", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionary" + "$ref": "#/definitions/request.Empty" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -2038,7 +2114,7 @@ } } }, - "/sysDictionaryDetail/createSysDictionaryDetail": { + "/menu/getMenuList": { "post": { "security": [ { @@ -2052,23 +2128,23 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "Menu" ], - "summary": "创建SysDictionaryDetail", + "summary": "分页获取基础menu列表", "parameters": [ { - "description": "SysDictionaryDetail模型", + "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -2076,8 +2152,8 @@ } } }, - "/sysDictionaryDetail/deleteSysDictionaryDetail": { - "delete": { + "/menu/updateBaseMenu": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -2090,23 +2166,23 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "Menu" ], - "summary": "删除SysDictionaryDetail", + "summary": "更新菜单", "parameters": [ { - "description": "SysDictionaryDetail模型", + "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysBaseMenu" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -2114,8 +2190,8 @@ } } }, - "/sysDictionaryDetail/findSysDictionaryDetail": { - "get": { + "/sysDictionary/createSysDictionary": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -2128,23 +2204,23 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysDictionary" ], - "summary": "用id查询SysDictionaryDetail", + "summary": "创建SysDictionary", "parameters": [ { - "description": "用id查询SysDictionaryDetail", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } @@ -2152,8 +2228,8 @@ } } }, - "/sysDictionaryDetail/getSysDictionaryDetailList": { - "get": { + "/sysDictionary/deleteSysDictionary": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -2166,23 +2242,23 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysDictionary" ], - "summary": "分页获取SysDictionaryDetail列表", + "summary": "删除SysDictionary", "parameters": [ { - "description": "页码, 每页大小, 搜索条件", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.SysDictionaryDetailSearch" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -2190,8 +2266,8 @@ } } }, - "/sysDictionaryDetail/updateSysDictionaryDetail": { - "put": { + "/sysDictionary/findSysDictionary": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -2204,23 +2280,23 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysDictionary" ], - "summary": "更新SysDictionaryDetail", + "summary": "用id查询SysDictionary", "parameters": [ { - "description": "更新SysDictionaryDetail", + "description": "ID或字典英名", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } @@ -2228,8 +2304,8 @@ } } }, - "/sysOperationRecord/createSysOperationRecord": { - "post": { + "/sysDictionary/getSysDictionaryList": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -2242,17 +2318,17 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionary" ], - "summary": "创建SysOperationRecord", + "summary": "分页获取SysDictionary列表", "parameters": [ { - "description": "创建SysOperationRecord", + "description": "页码, 每页大小, 搜索条件", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysOperationRecord" + "$ref": "#/definitions/request.SysDictionarySearch" } } ], @@ -2266,8 +2342,8 @@ } } }, - "/sysOperationRecord/deleteSysOperationRecord": { - "delete": { + "/sysDictionary/updateSysDictionary": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -2280,23 +2356,23 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionary" ], - "summary": "删除SysOperationRecord", + "summary": "更新SysDictionary", "parameters": [ { - "description": "SysOperationRecord模型", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysOperationRecord" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -2304,8 +2380,8 @@ } } }, - "/sysOperationRecord/deleteSysOperationRecordByIds": { - "delete": { + "/sysDictionaryDetail/createSysDictionaryDetail": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -2318,23 +2394,23 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionaryDetail" ], - "summary": "批量删除SysOperationRecord", + "summary": "创建SysDictionaryDetail", "parameters": [ { - "description": "批量删除SysOperationRecord", + "description": "SysDictionaryDetail模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.IdsReq" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } @@ -2342,8 +2418,8 @@ } } }, - "/sysOperationRecord/findSysOperationRecord": { - "get": { + "/sysDictionaryDetail/deleteSysDictionaryDetail": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -2356,23 +2432,23 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionaryDetail" ], - "summary": "用id查询SysOperationRecord", + "summary": "删除SysDictionaryDetail", "parameters": [ { - "description": "Id", + "description": "SysDictionaryDetail模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysOperationRecord" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -2380,7 +2456,7 @@ } } }, - "/sysOperationRecord/getSysOperationRecordList": { + "/sysDictionaryDetail/findSysDictionaryDetail": { "get": { "security": [ { @@ -2394,23 +2470,23 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysDictionaryDetail" ], - "summary": "分页获取SysOperationRecord列表", + "summary": "用id查询SysDictionaryDetail", "parameters": [ { - "description": "页码, 每页大小, 搜索条件", + "description": "用id查询SysDictionaryDetail", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.SysOperationRecordSearch" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } @@ -2418,20 +2494,34 @@ } } }, - "/system/getServerInfo": { - "post": { + "/sysDictionaryDetail/getSysDictionaryDetailList": { + "get": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "SysDictionaryDetail" + ], + "summary": "分页获取SysDictionaryDetail列表", + "parameters": [ + { + "description": "页码, 每页大小, 搜索条件", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SysDictionaryDetailSearch" + } + } ], - "summary": "获取服务器信息", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", @@ -2442,23 +2532,37 @@ } } }, - "/system/getSystemConfig": { - "post": { + "/sysDictionaryDetail/updateSysDictionaryDetail": { + "put": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "SysDictionaryDetail" + ], + "summary": "更新SysDictionaryDetail", + "parameters": [ + { + "description": "更新SysDictionaryDetail", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + } ], - "summary": "获取配置文件内容", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -2466,23 +2570,37 @@ } } }, - "/system/reloadSystem": { + "/sysOperationRecord/createSysOperationRecord": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "SysOperationRecord" + ], + "summary": "创建SysOperationRecord", + "parameters": [ + { + "description": "创建SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysOperationRecord" + } + } ], - "summary": "重启系统", "responses": { "200": { - "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -2490,28 +2608,252 @@ } } }, - "/system/setSystemConfig": { - "post": { + "/sysOperationRecord/deleteSysOperationRecord": { + "delete": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "System" + "SysOperationRecord" ], - "summary": "设置配置文件内容", + "summary": "删除SysOperationRecord", "parameters": [ { - "description": "设置配置文件内容", + "description": "SysOperationRecord模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.System" + "$ref": "#/definitions/system.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/deleteSysOperationRecordByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "批量删除SysOperationRecord", + "parameters": [ + { + "description": "批量删除SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/findSysOperationRecord": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "用id查询SysOperationRecord", + "parameters": [ + { + "description": "Id", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/getSysOperationRecordList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "分页获取SysOperationRecord列表", + "parameters": [ + { + "description": "页码, 每页大小, 搜索条件", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SysOperationRecordSearch" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/getServerInfo": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "获取服务器信息", + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/getSystemConfig": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "获取配置文件内容", + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/reloadSystem": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "重启系统", + "responses": { + "200": { + "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/setSystemConfig": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "设置配置文件内容", + "parameters": [ + { + "description": "设置配置文件内容", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.System" } } ], @@ -2652,7 +2994,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/request.Register" } } ], @@ -2728,7 +3070,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/system.SysUser" } } ], @@ -2744,6 +3086,27 @@ } }, "definitions": { + "autocode.AutoCodeExample": { + "type": "object", + "properties": { + "autoCodeExampleField": { + "description": "展示值", + "type": "string" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "id": { + "description": "主键ID", + "type": "integer" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + } + } + }, "config.AliyunOSS": { "type": "object", "properties": { @@ -2753,6 +3116,9 @@ "accessKeySecret": { "type": "string" }, + "basePath": { + "type": "string" + }, "bucketName": { "type": "string" }, @@ -2791,6 +3157,9 @@ "serverService": { "type": "string" }, + "transferRestart": { + "type": "boolean" + }, "web": { "type": "string" }, @@ -2931,10 +3300,11 @@ }, "logMode": { "description": "是否开启Gorm全局日志", - "type": "boolean" + "type": "string" }, "logZap": { - "type": "string" + "description": "是否通过zap写入日志文件", + "type": "boolean" }, "maxIdleConns": { "description": "空闲中的最大连接数", @@ -3169,55 +3539,16 @@ } } }, - "model.AutoCodeStruct": { + "example.ExaCustomer": { "type": "object", "properties": { - "abbreviation": { - "description": "Struct简称", + "createdAt": { + "description": "创建时间", "type": "string" }, - "autoCreateApiToSql": { - "description": "是否自动创建api", - "type": "boolean" - }, - "autoMoveFile": { - "description": "是否自动移动文件", - "type": "boolean" - }, - "description": { - "description": "Struct中文名称", - "type": "string" - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/model.Field" - } - }, - "packageName": { - "description": "文件名称", - "type": "string" - }, - "structName": { - "description": "Struct名称", - "type": "string" - }, - "tableName": { - "description": "表名", - "type": "string" - } - } - }, - "model.ExaCustomer": { - "type": "object", - "properties": { - "createdAt": { - "description": "创建时间", - "type": "string" - }, - "customerName": { - "description": "客户名", - "type": "string" + "customerName": { + "description": "客户名", + "type": "string" }, "customerPhoneData": { "description": "客户手机号", @@ -3229,7 +3560,7 @@ }, "sysUser": { "description": "管理详情", - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/system.SysUser" }, "sysUserAuthorityID": { "description": "管理角色ID", @@ -3245,7 +3576,7 @@ } } }, - "model.ExaFileUploadAndDownload": { + "example.ExaFileUploadAndDownload": { "type": "object", "properties": { "createdAt": { @@ -3278,7 +3609,7 @@ } } }, - "model.ExcelInfo": { + "example.ExcelInfo": { "type": "object", "properties": { "fileName": { @@ -3288,210 +3619,264 @@ "infoList": { "type": "array", "items": { - "$ref": "#/definitions/model.SysBaseMenu" + "$ref": "#/definitions/system.SysBaseMenu" } } } }, - "model.Field": { + "request.AddMenuAuthorityInfo": { "type": "object", "properties": { - "columnName": { - "description": "数据库字段", + "authorityId": { + "description": "角色ID", "type": "string" }, - "comment": { - "description": "数据库字段描述", + "menus": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenu" + } + } + } + }, + "request.AutoCodeExampleSearch": { + "type": "object", + "properties": { + "autoCodeExampleField": { + "description": "展示值", "type": "string" }, - "dataType": { - "description": "数据库字段类型", + "createdAt": { + "description": "创建时间", "type": "string" }, - "dataTypeLong": { - "description": "数据库字段长度", - "type": "string" + "id": { + "description": "主键ID", + "type": "integer" }, - "dictType": { - "description": "字典", - "type": "string" + "page": { + "description": "页码", + "type": "integer" }, - "fieldDesc": { - "description": "中文名", - "type": "string" + "pageSize": { + "description": "每页大小", + "type": "integer" }, - "fieldJson": { - "description": "FieldJson", + "updatedAt": { + "description": "更新时间", "type": "string" - }, - "fieldName": { - "description": "Field名", + } + } + }, + "request.AutoHistoryByID": { + "type": "object", + "properties": { + "id": { + "type": "integer" + } + } + }, + "request.CasbinInReceive": { + "type": "object", + "properties": { + "authorityId": { + "description": "权限id", "type": "string" }, - "fieldSearchType": { - "description": "搜索条件", + "casbinInfos": { + "type": "array", + "items": { + "$ref": "#/definitions/request.CasbinInfo" + } + } + } + }, + "request.CasbinInfo": { + "type": "object", + "properties": { + "method": { + "description": "方法", "type": "string" }, - "fieldType": { - "description": "Field数据类型", + "path": { + "description": "路径", "type": "string" } } }, - "model.SysApi": { + "request.ChangePasswordStruct": { "type": "object", "properties": { - "apiGroup": { - "description": "api组", + "newPassword": { + "description": "新密码", "type": "string" }, - "createdAt": { - "description": "创建时间", + "password": { + "description": "密码", "type": "string" }, - "description": { - "description": "api中文描述", + "username": { + "description": "用户名", "type": "string" - }, + } + } + }, + "request.Empty": { + "type": "object" + }, + "request.GetAuthorityId": { + "type": "object", + "properties": { + "authorityId": { + "description": "角色ID", + "type": "string" + } + } + }, + "request.GetById": { + "type": "object", + "properties": { "id": { "description": "主键ID", - "type": "integer" + "type": "number" + } + } + }, + "request.IdsReq": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.InitDB": { + "type": "object", + "required": [ + "dbName", + "userName" + ], + "properties": { + "dbName": { + "description": "数据库名", + "type": "string" }, - "method": { - "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE", + "host": { + "description": "服务器地址", "type": "string" }, - "path": { - "description": "api路径", + "password": { + "description": "数据库密码", "type": "string" }, - "updatedAt": { - "description": "更新时间", + "port": { + "description": "数据库连接端口", + "type": "string" + }, + "userName": { + "description": "数据库用户名", "type": "string" } } }, - "model.SysAuthority": { + "request.Login": { "type": "object", "properties": { - "authorityId": { - "description": "角色ID", + "captcha": { + "description": "验证码", "type": "string" }, - "authorityName": { - "description": "角色名", + "captchaId": { + "description": "验证码ID", "type": "string" }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysAuthority" - } - }, - "createdAt": { - "description": "创建时间", + "password": { + "description": "密码", "type": "string" }, - "dataAuthorityId": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysAuthority" - } + "username": { + "description": "用户名", + "type": "string" + } + } + }, + "request.PageInfo": { + "type": "object", + "properties": { + "page": { + "description": "页码", + "type": "integer" }, - "defaultRouter": { - "description": "默认菜单(默认dashboard)", + "pageSize": { + "description": "每页大小", + "type": "integer" + } + } + }, + "request.Register": { + "type": "object", + "properties": { + "authorityId": { "type": "string" }, - "deletedAt": { + "headerImg": { "type": "string" }, - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysBaseMenu" - } + "nickName": { + "type": "string" }, - "parentId": { - "description": "父角色ID", + "passWord": { "type": "string" }, - "updatedAt": { - "description": "更新时间", + "userName": { "type": "string" } } }, - "model.SysBaseMenu": { + "request.SearchApiParams": { "type": "object", "properties": { - "authoritys": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysAuthority" - } - }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysBaseMenu" - } - }, - "closeTab": { - "description": "自动关闭tab", - "type": "boolean" - }, - "component": { - "description": "对应前端文件路径", + "apiGroup": { + "description": "api组", "type": "string" }, "createdAt": { "description": "创建时间", "type": "string" }, - "defaultMenu": { - "description": "是否是基础路由(开发中)", - "type": "boolean" - }, - "hidden": { - "description": "是否在列表隐藏", + "desc": { + "description": "排序方式:升序false(默认)|降序true", "type": "boolean" }, - "icon": { - "description": "菜单图标", + "description": { + "description": "api中文描述", "type": "string" }, "id": { "description": "主键ID", "type": "integer" }, - "keepAlive": { - "description": "是否缓存", - "type": "boolean" - }, - "name": { - "description": "路由name", + "method": { + "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE", "type": "string" }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysBaseMenuParameter" - } - }, - "parentId": { - "description": "父菜单ID", + "orderKey": { + "description": "排序", "type": "string" }, - "path": { - "description": "路由path", - "type": "string" + "page": { + "description": "页码", + "type": "integer" }, - "sort": { - "description": "排序标记", + "pageSize": { + "description": "每页大小", "type": "integer" }, - "title": { - "description": "菜单名", + "path": { + "description": "api路径", "type": "string" }, "updatedAt": { @@ -3500,7 +3885,33 @@ } } }, - "model.SysBaseMenuParameter": { + "request.SetUserAuth": { + "type": "object", + "properties": { + "authorityId": { + "description": "角色ID", + "type": "string" + }, + "uuid": { + "description": "用户UUID", + "type": "string" + } + } + }, + "request.SysAutoHistory": { + "type": "object", + "properties": { + "page": { + "description": "页码", + "type": "integer" + }, + "pageSize": { + "description": "每页大小", + "type": "integer" + } + } + }, + "request.SysDictionaryDetailSearch": { "type": "object", "properties": { "createdAt": { @@ -3511,28 +3922,41 @@ "description": "主键ID", "type": "integer" }, - "key": { - "description": "地址栏携带参数的key", + "label": { + "description": "展示值", "type": "string" }, - "sysBaseMenuID": { + "page": { + "description": "页码", + "type": "integer" + }, + "pageSize": { + "description": "每页大小", + "type": "integer" + }, + "sort": { + "description": "排序标记", + "type": "integer" + }, + "status": { + "description": "启用状态", + "type": "boolean" + }, + "sysDictionaryID": { + "description": "关联标记", "type": "integer" }, - "type": { - "description": "地址栏携带参数为params还是query", - "type": "string" - }, "updatedAt": { "description": "更新时间", "type": "string" }, "value": { - "description": "地址栏携带参数的值", - "type": "string" + "description": "字典值", + "type": "integer" } } }, - "model.SysDictionary": { + "request.SysDictionarySearch": { "type": "object", "properties": { "createdAt": { @@ -3551,6 +3975,14 @@ "description": "字典名(中)", "type": "string" }, + "page": { + "description": "页码", + "type": "integer" + }, + "pageSize": { + "description": "每页大小", + "type": "integer" + }, "status": { "description": "状态", "type": "boolean" @@ -3558,7 +3990,7 @@ "sysDictionaryDetails": { "type": "array", "items": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysDictionaryDetail" } }, "type": { @@ -3571,44 +4003,7 @@ } } }, - "model.SysDictionaryDetail": { - "type": "object", - "properties": { - "createdAt": { - "description": "创建时间", - "type": "string" - }, - "id": { - "description": "主键ID", - "type": "integer" - }, - "label": { - "description": "展示值", - "type": "string" - }, - "sort": { - "description": "排序标记", - "type": "integer" - }, - "status": { - "description": "启用状态", - "type": "boolean" - }, - "sysDictionaryID": { - "description": "关联标记", - "type": "integer" - }, - "updatedAt": { - "description": "更新时间", - "type": "string" - }, - "value": { - "description": "字典值", - "type": "integer" - } - } - }, - "model.SysOperationRecord": { + "request.SysOperationRecordSearch": { "type": "object", "properties": { "agent": { @@ -3643,6 +4038,14 @@ "description": "请求方法", "type": "string" }, + "page": { + "description": "页码", + "type": "integer" + }, + "pageSize": { + "description": "每页大小", + "type": "integer" + }, "path": { "description": "请求路径", "type": "string" @@ -3660,7 +4063,7 @@ "type": "string" }, "user": { - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/system.SysUser" }, "user_id": { "description": "用户id", @@ -3668,210 +4071,107 @@ } } }, - "model.SysUser": { + "response.SysAuthorityCopyResponse": { "type": "object", "properties": { "authority": { - "$ref": "#/definitions/model.SysAuthority" - }, - "authorityId": { - "description": "用户角色ID", - "type": "string" - }, - "createdAt": { - "description": "创建时间", - "type": "string" - }, - "headerImg": { - "description": "用户头像", - "type": "string" - }, - "id": { - "description": "主键ID", - "type": "integer" - }, - "nickName": { - "description": "用户昵称", - "type": "string" - }, - "updatedAt": { - "description": "更新时间", - "type": "string" - }, - "userName": { - "description": "用户登录名", - "type": "string" + "$ref": "#/definitions/system.SysAuthority" }, - "uuid": { - "description": "用户UUID", + "oldAuthorityId": { + "description": "旧角色ID", "type": "string" } } }, - "model.System": { - "type": "object", - "properties": { - "config": { - "$ref": "#/definitions/config.Server" - } - } - }, - "request.AddMenuAuthorityInfo": { + "system.AutoCodeStruct": { "type": "object", "properties": { - "authorityId": { - "description": "角色ID", + "abbreviation": { + "description": "Struct简称", "type": "string" }, - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/model.SysBaseMenu" - } - } - } - }, - "request.CasbinInReceive": { - "type": "object", - "properties": { - "authorityId": { - "description": "权限id", + "autoCreateApiToSql": { + "description": "是否自动创建api", + "type": "boolean" + }, + "autoMoveFile": { + "description": "是否自动移动文件", + "type": "boolean" + }, + "description": { + "description": "Struct中文名称", "type": "string" }, - "casbinInfos": { + "fields": { "type": "array", "items": { - "$ref": "#/definitions/request.CasbinInfo" + "$ref": "#/definitions/system.Field" } - } - } - }, - "request.CasbinInfo": { - "type": "object", - "properties": { - "method": { - "description": "方法", - "type": "string" }, - "path": { - "description": "路径", - "type": "string" - } - } - }, - "request.ChangePasswordStruct": { - "type": "object", - "properties": { - "newPassword": { - "description": "新密码", + "humpPackageName": { + "description": "go文件名称", "type": "string" }, - "password": { - "description": "密码", + "packageName": { + "description": "文件名称", "type": "string" }, - "username": { - "description": "用户名", + "structName": { + "description": "Struct名称", "type": "string" - } - } - }, - "request.Empty": { - "type": "object" - }, - "request.GetAuthorityId": { - "type": "object", - "properties": { - "authorityId": { - "description": "角色ID", + }, + "tableName": { + "description": "表名", "type": "string" } } }, - "request.GetById": { - "type": "object", - "properties": { - "id": { - "description": "主键ID", - "type": "number" - } - } - }, - "request.IdsReq": { - "type": "object", - "properties": { - "ids": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, - "request.InitDB": { + "system.Field": { "type": "object", - "required": [ - "dbName", - "userName" - ], "properties": { - "dbName": { - "description": "数据库名", + "columnName": { + "description": "数据库字段", "type": "string" }, - "host": { - "description": "服务器地址", + "comment": { + "description": "数据库字段描述", "type": "string" }, - "password": { - "description": "数据库密码", + "dataType": { + "description": "数据库字段类型", "type": "string" }, - "port": { - "description": "数据库连接端口", + "dataTypeLong": { + "description": "数据库字段长度", "type": "string" }, - "userName": { - "description": "数据库用户名", - "type": "string" - } - } - }, - "request.Login": { - "type": "object", - "properties": { - "captcha": { - "description": "验证码", + "dictType": { + "description": "字典", "type": "string" }, - "captchaId": { - "description": "验证码ID", + "fieldDesc": { + "description": "中文名", "type": "string" }, - "password": { - "description": "密码", + "fieldJson": { + "description": "FieldJson", "type": "string" }, - "username": { - "description": "用户名", + "fieldName": { + "description": "Field名", + "type": "string" + }, + "fieldSearchType": { + "description": "搜索条件", "type": "string" - } - } - }, - "request.PageInfo": { - "type": "object", - "properties": { - "page": { - "description": "页码", - "type": "integer" }, - "pageSize": { - "description": "每页大小", - "type": "integer" + "fieldType": { + "description": "Field数据类型", + "type": "string" } } }, - "request.SearchApiParams": { + "system.SysApi": { "type": "object", "properties": { "apiGroup": { @@ -3882,10 +4182,6 @@ "description": "创建时间", "type": "string" }, - "desc": { - "description": "排序方式:升序false(默认)|降序true", - "type": "boolean" - }, "description": { "description": "api中文描述", "type": "string" @@ -3898,18 +4194,6 @@ "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE", "type": "string" }, - "orderKey": { - "description": "排序", - "type": "string" - }, - "page": { - "description": "页码", - "type": "integer" - }, - "pageSize": { - "description": "每页大小", - "type": "integer" - }, "path": { "description": "api路径", "type": "string" @@ -3920,65 +4204,168 @@ } } }, - "request.SetUserAuth": { + "system.SysAuthority": { "type": "object", "properties": { "authorityId": { "description": "角色ID", "type": "string" }, - "uuid": { - "description": "用户UUID", + "authorityName": { + "description": "角色名", + "type": "string" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysAuthority" + } + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "dataAuthorityId": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysAuthority" + } + }, + "defaultRouter": { + "description": "默认菜单(默认dashboard)", + "type": "string" + }, + "deletedAt": { + "type": "string" + }, + "menus": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenu" + } + }, + "parentId": { + "description": "父角色ID", + "type": "string" + }, + "updatedAt": { + "description": "更新时间", "type": "string" } } }, - "request.SysDictionaryDetailSearch": { + "system.SysBaseMenu": { "type": "object", "properties": { + "authoritys": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysAuthority" + } + }, + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenu" + } + }, + "closeTab": { + "description": "自动关闭tab", + "type": "boolean" + }, + "component": { + "description": "对应前端文件路径", + "type": "string" + }, "createdAt": { "description": "创建时间", "type": "string" }, + "defaultMenu": { + "description": "是否是基础路由(开发中)", + "type": "boolean" + }, + "hidden": { + "description": "是否在列表隐藏", + "type": "boolean" + }, + "icon": { + "description": "菜单图标", + "type": "string" + }, "id": { "description": "主键ID", "type": "integer" }, - "label": { - "description": "展示值", + "keepAlive": { + "description": "是否缓存", + "type": "boolean" + }, + "name": { + "description": "路由name", "type": "string" }, - "page": { - "description": "页码", - "type": "integer" + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenuParameter" + } }, - "pageSize": { - "description": "每页大小", - "type": "integer" + "parentId": { + "description": "父菜单ID", + "type": "string" + }, + "path": { + "description": "路由path", + "type": "string" }, "sort": { "description": "排序标记", "type": "integer" }, - "status": { - "description": "启用状态", - "type": "boolean" + "title": { + "description": "菜单名", + "type": "string" }, - "sysDictionaryID": { - "description": "关联标记", + "updatedAt": { + "description": "更新时间", + "type": "string" + } + } + }, + "system.SysBaseMenuParameter": { + "type": "object", + "properties": { + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "id": { + "description": "主键ID", + "type": "integer" + }, + "key": { + "description": "地址栏携带参数的key", + "type": "string" + }, + "sysBaseMenuID": { "type": "integer" }, + "type": { + "description": "地址栏携带参数为params还是query", + "type": "string" + }, "updatedAt": { "description": "更新时间", "type": "string" }, "value": { - "description": "字典值", - "type": "integer" + "description": "地址栏携带参数的值", + "type": "string" } } }, - "request.SysDictionarySearch": { + "system.SysDictionary": { "type": "object", "properties": { "createdAt": { @@ -3997,14 +4384,6 @@ "description": "字典名(中)", "type": "string" }, - "page": { - "description": "页码", - "type": "integer" - }, - "pageSize": { - "description": "每页大小", - "type": "integer" - }, "status": { "description": "状态", "type": "boolean" @@ -4012,7 +4391,7 @@ "sysDictionaryDetails": { "type": "array", "items": { - "$ref": "#/definitions/model.SysDictionaryDetail" + "$ref": "#/definitions/system.SysDictionaryDetail" } }, "type": { @@ -4025,7 +4404,44 @@ } } }, - "request.SysOperationRecordSearch": { + "system.SysDictionaryDetail": { + "type": "object", + "properties": { + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "id": { + "description": "主键ID", + "type": "integer" + }, + "label": { + "description": "展示值", + "type": "string" + }, + "sort": { + "description": "排序标记", + "type": "integer" + }, + "status": { + "description": "启用状态", + "type": "boolean" + }, + "sysDictionaryID": { + "description": "关联标记", + "type": "integer" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + }, + "value": { + "description": "字典值", + "type": "integer" + } + } + }, + "system.SysOperationRecord": { "type": "object", "properties": { "agent": { @@ -4060,14 +4476,6 @@ "description": "请求方法", "type": "string" }, - "page": { - "description": "页码", - "type": "integer" - }, - "pageSize": { - "description": "每页大小", - "type": "integer" - }, "path": { "description": "请求路径", "type": "string" @@ -4085,7 +4493,7 @@ "type": "string" }, "user": { - "$ref": "#/definitions/model.SysUser" + "$ref": "#/definitions/system.SysUser" }, "user_id": { "description": "用户id", @@ -4093,17 +4501,65 @@ } } }, - "response.SysAuthorityCopyResponse": { + "system.SysUser": { "type": "object", "properties": { + "activeColor": { + "description": "活跃颜色", + "type": "string" + }, "authority": { - "$ref": "#/definitions/model.SysAuthority" + "$ref": "#/definitions/system.SysAuthority" }, - "oldAuthorityId": { - "description": "旧角色ID", + "authorityId": { + "description": "用户角色ID", + "type": "string" + }, + "baseColor": { + "description": "基础颜色", + "type": "string" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "headerImg": { + "description": "用户头像", + "type": "string" + }, + "id": { + "description": "主键ID", + "type": "integer" + }, + "nickName": { + "description": "用户昵称", + "type": "string" + }, + "sideMode": { + "description": "用户侧边主题", + "type": "string" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + }, + "userName": { + "description": "用户登录名", + "type": "string" + }, + "uuid": { + "description": "用户UUID", "type": "string" } } + }, + "system.System": { + "type": "object", + "properties": { + "config": { + "$ref": "#/definitions/config.Server" + } + } } }, "securityDefinitions": { diff --git a/server/docs/swagger.yaml b/server/docs/swagger.yaml index c8299717..429aa6f5 100644 --- a/server/docs/swagger.yaml +++ b/server/docs/swagger.yaml @@ -1,11 +1,28 @@ basePath: / definitions: + autocode.AutoCodeExample: + properties: + autoCodeExampleField: + description: 展示值 + type: string + createdAt: + description: 创建时间 + type: string + id: + description: 主键ID + type: integer + updatedAt: + description: 更新时间 + type: string + type: object config.AliyunOSS: properties: accessKeyId: type: string accessKeySecret: type: string + basePath: + type: string bucketName: type: string bucketUrl: @@ -31,6 +48,8 @@ definitions: type: string serverService: type: string + transferRestart: + type: boolean web: type: string webApi: @@ -129,9 +148,10 @@ definitions: type: string logMode: description: 是否开启Gorm全局日志 - type: boolean - logZap: type: string + logZap: + description: 是否通过zap写入日志文件 + type: boolean maxIdleConns: description: 空闲中的最大连接数 type: integer @@ -296,35 +316,7 @@ definitions: description: 栈名 type: string type: object - model.AutoCodeStruct: - properties: - abbreviation: - description: Struct简称 - type: string - autoCreateApiToSql: - description: 是否自动创建api - type: boolean - autoMoveFile: - description: 是否自动移动文件 - type: boolean - description: - description: Struct中文名称 - type: string - fields: - items: - $ref: '#/definitions/model.Field' - type: array - packageName: - description: 文件名称 - type: string - structName: - description: Struct名称 - type: string - tableName: - description: 表名 - type: string - type: object - model.ExaCustomer: + example.ExaCustomer: properties: createdAt: description: 创建时间 @@ -339,7 +331,7 @@ definitions: description: 主键ID type: integer sysUser: - $ref: '#/definitions/model.SysUser' + $ref: '#/definitions/system.SysUser' description: 管理详情 sysUserAuthorityID: description: 管理角色ID @@ -351,7 +343,7 @@ definitions: description: 更新时间 type: string type: object - model.ExaFileUploadAndDownload: + example.ExaFileUploadAndDownload: properties: createdAt: description: 创建时间 @@ -375,217 +367,217 @@ definitions: description: 文件地址 type: string type: object - model.ExcelInfo: + example.ExcelInfo: properties: fileName: description: 文件名 type: string infoList: items: - $ref: '#/definitions/model.SysBaseMenu' + $ref: '#/definitions/system.SysBaseMenu' type: array type: object - model.Field: + request.AddMenuAuthorityInfo: properties: - columnName: - description: 数据库字段 - type: string - comment: - description: 数据库字段描述 - type: string - dataType: - description: 数据库字段类型 - type: string - dataTypeLong: - description: 数据库字段长度 - type: string - dictType: - description: 字典 - type: string - fieldDesc: - description: 中文名 - type: string - fieldJson: - description: FieldJson - type: string - fieldName: - description: Field名 - type: string - fieldSearchType: - description: 搜索条件 - type: string - fieldType: - description: Field数据类型 + authorityId: + description: 角色ID type: string + menus: + items: + $ref: '#/definitions/system.SysBaseMenu' + type: array type: object - model.SysApi: + request.AutoCodeExampleSearch: properties: - apiGroup: - description: api组 + autoCodeExampleField: + description: 展示值 type: string createdAt: description: 创建时间 type: string - description: - description: api中文描述 - type: string id: description: 主键ID type: integer + page: + description: 页码 + type: integer + pageSize: + description: 每页大小 + type: integer + updatedAt: + description: 更新时间 + type: string + type: object + request.AutoHistoryByID: + properties: + id: + type: integer + type: object + request.CasbinInReceive: + properties: + authorityId: + description: 权限id + type: string + casbinInfos: + items: + $ref: '#/definitions/request.CasbinInfo' + type: array + type: object + request.CasbinInfo: + properties: method: - description: 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE + description: 方法 type: string path: - description: api路径 + description: 路径 type: string - updatedAt: - description: 更新时间 + type: object + request.ChangePasswordStruct: + properties: + newPassword: + description: 新密码 + type: string + password: + description: 密码 + type: string + username: + description: 用户名 type: string type: object - model.SysAuthority: + request.Empty: + type: object + request.GetAuthorityId: properties: authorityId: description: 角色ID type: string - authorityName: - description: 角色名 - type: string - children: + type: object + request.GetById: + properties: + id: + description: 主键ID + type: number + type: object + request.IdsReq: + properties: + ids: items: - $ref: '#/definitions/model.SysAuthority' + type: integer type: array - createdAt: - description: 创建时间 + type: object + request.InitDB: + properties: + dbName: + description: 数据库名 type: string - dataAuthorityId: - items: - $ref: '#/definitions/model.SysAuthority' - type: array - defaultRouter: - description: 默认菜单(默认dashboard) + host: + description: 服务器地址 type: string - deletedAt: + password: + description: 数据库密码 type: string - menus: - items: - $ref: '#/definitions/model.SysBaseMenu' - type: array - parentId: - description: 父角色ID + port: + description: 数据库连接端口 type: string - updatedAt: - description: 更新时间 + userName: + description: 数据库用户名 type: string + required: + - dbName + - userName type: object - model.SysBaseMenu: + request.Login: properties: - authoritys: - items: - $ref: '#/definitions/model.SysAuthority' - type: array - children: - items: - $ref: '#/definitions/model.SysBaseMenu' - type: array - closeTab: - description: 自动关闭tab - type: boolean - component: - description: 对应前端文件路径 + captcha: + description: 验证码 type: string - createdAt: - description: 创建时间 + captchaId: + description: 验证码ID type: string - defaultMenu: - description: 是否是基础路由(开发中) - type: boolean - hidden: - description: 是否在列表隐藏 - type: boolean - icon: - description: 菜单图标 + password: + description: 密码 type: string - id: - description: 主键ID + username: + description: 用户名 + type: string + type: object + request.PageInfo: + properties: + page: + description: 页码 type: integer - keepAlive: - description: 是否缓存 - type: boolean - name: - description: 路由name + pageSize: + description: 每页大小 + type: integer + type: object + request.Register: + properties: + authorityId: type: string - parameters: - items: - $ref: '#/definitions/model.SysBaseMenuParameter' - type: array - parentId: - description: 父菜单ID + headerImg: type: string - path: - description: 路由path + nickName: type: string - sort: - description: 排序标记 - type: integer - title: - description: 菜单名 + passWord: type: string - updatedAt: - description: 更新时间 + userName: type: string type: object - model.SysBaseMenuParameter: + request.SearchApiParams: properties: + apiGroup: + description: api组 + type: string createdAt: description: 创建时间 type: string + desc: + description: 排序方式:升序false(默认)|降序true + type: boolean + description: + description: api中文描述 + type: string id: description: 主键ID type: integer - key: - description: 地址栏携带参数的key + method: + description: 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE type: string - sysBaseMenuID: + orderKey: + description: 排序 + type: string + page: + description: 页码 type: integer - type: - description: 地址栏携带参数为params还是query + pageSize: + description: 每页大小 + type: integer + path: + description: api路径 type: string updatedAt: description: 更新时间 type: string - value: - description: 地址栏携带参数的值 - type: string type: object - model.SysDictionary: + request.SetUserAuth: properties: - createdAt: - description: 创建时间 + authorityId: + description: 角色ID type: string - desc: - description: 描述 + uuid: + description: 用户UUID type: string - id: - description: 主键ID + type: object + request.SysAutoHistory: + properties: + page: + description: 页码 + type: integer + pageSize: + description: 每页大小 type: integer - name: - description: 字典名(中) - type: string - status: - description: 状态 - type: boolean - sysDictionaryDetails: - items: - $ref: '#/definitions/model.SysDictionaryDetail' - type: array - type: - description: 字典名(英) - type: string - updatedAt: - description: 更新时间 - type: string type: object - model.SysDictionaryDetail: + request.SysDictionaryDetailSearch: properties: createdAt: description: 创建时间 @@ -596,6 +588,12 @@ definitions: label: description: 展示值 type: string + page: + description: 页码 + type: integer + pageSize: + description: 每页大小 + type: integer sort: description: 排序标记 type: integer @@ -612,7 +610,41 @@ definitions: description: 字典值 type: integer type: object - model.SysOperationRecord: + request.SysDictionarySearch: + properties: + createdAt: + description: 创建时间 + type: string + desc: + description: 描述 + type: string + id: + description: 主键ID + type: integer + name: + description: 字典名(中) + type: string + page: + description: 页码 + type: integer + pageSize: + description: 每页大小 + type: integer + status: + description: 状态 + type: boolean + sysDictionaryDetails: + items: + $ref: '#/definitions/system.SysDictionaryDetail' + type: array + type: + description: 字典名(英) + type: string + updatedAt: + description: 更新时间 + type: string + type: object + request.SysOperationRecordSearch: properties: agent: description: 代理 @@ -638,6 +670,12 @@ definitions: method: description: 请求方法 type: string + page: + description: 页码 + type: integer + pageSize: + description: 每页大小 + type: integer path: description: 请求路径 type: string @@ -651,153 +689,84 @@ definitions: description: 更新时间 type: string user: - $ref: '#/definitions/model.SysUser' + $ref: '#/definitions/system.SysUser' user_id: description: 用户id type: integer type: object - model.SysUser: + response.SysAuthorityCopyResponse: properties: authority: - $ref: '#/definitions/model.SysAuthority' - authorityId: - description: 用户角色ID - type: string - createdAt: - description: 创建时间 - type: string - headerImg: - description: 用户头像 - type: string - id: - description: 主键ID - type: integer - nickName: - description: 用户昵称 - type: string - updatedAt: - description: 更新时间 - type: string - userName: - description: 用户登录名 - type: string - uuid: - description: 用户UUID + $ref: '#/definitions/system.SysAuthority' + oldAuthorityId: + description: 旧角色ID type: string type: object - model.System: + system.AutoCodeStruct: properties: - config: - $ref: '#/definitions/config.Server' - type: object - request.AddMenuAuthorityInfo: - properties: - authorityId: - description: 角色ID + abbreviation: + description: Struct简称 type: string - menus: - items: - $ref: '#/definitions/model.SysBaseMenu' - type: array - type: object - request.CasbinInReceive: - properties: - authorityId: - description: 权限id + autoCreateApiToSql: + description: 是否自动创建api + type: boolean + autoMoveFile: + description: 是否自动移动文件 + type: boolean + description: + description: Struct中文名称 type: string - casbinInfos: + fields: items: - $ref: '#/definitions/request.CasbinInfo' + $ref: '#/definitions/system.Field' type: array - type: object - request.CasbinInfo: - properties: - method: - description: 方法 + humpPackageName: + description: go文件名称 type: string - path: - description: 路径 - type: string - type: object - request.ChangePasswordStruct: - properties: - newPassword: - description: 新密码 + packageName: + description: 文件名称 type: string - password: - description: 密码 + structName: + description: Struct名称 type: string - username: - description: 用户名 + tableName: + description: 表名 type: string type: object - request.Empty: - type: object - request.GetAuthorityId: + system.Field: properties: - authorityId: - description: 角色ID + columnName: + description: 数据库字段 type: string - type: object - request.GetById: - properties: - id: - description: 主键ID - type: number - type: object - request.IdsReq: - properties: - ids: - items: - type: integer - type: array - type: object - request.InitDB: - properties: - dbName: - description: 数据库名 + comment: + description: 数据库字段描述 type: string - host: - description: 服务器地址 + dataType: + description: 数据库字段类型 type: string - password: - description: 数据库密码 + dataTypeLong: + description: 数据库字段长度 type: string - port: - description: 数据库连接端口 + dictType: + description: 字典 type: string - userName: - description: 数据库用户名 + fieldDesc: + description: 中文名 type: string - required: - - dbName - - userName - type: object - request.Login: - properties: - captcha: - description: 验证码 + fieldJson: + description: FieldJson type: string - captchaId: - description: 验证码ID + fieldName: + description: Field名 type: string - password: - description: 密码 + fieldSearchType: + description: 搜索条件 type: string - username: - description: 用户名 + fieldType: + description: Field数据类型 type: string type: object - request.PageInfo: - properties: - page: - description: 页码 - type: integer - pageSize: - description: 每页大小 - type: integer - type: object - request.SearchApiParams: + system.SysApi: properties: apiGroup: description: api组 @@ -805,9 +774,6 @@ definitions: createdAt: description: 创建时间 type: string - desc: - description: 排序方式:升序false(默认)|降序true - type: boolean description: description: api中文描述 type: string @@ -817,15 +783,6 @@ definitions: method: description: 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE type: string - orderKey: - description: 排序 - type: string - page: - description: 页码 - type: integer - pageSize: - description: 每页大小 - type: integer path: description: api路径 type: string @@ -833,49 +790,122 @@ definitions: description: 更新时间 type: string type: object - request.SetUserAuth: + system.SysAuthority: properties: authorityId: description: 角色ID type: string - uuid: - description: 用户UUID + authorityName: + description: 角色名 + type: string + children: + items: + $ref: '#/definitions/system.SysAuthority' + type: array + createdAt: + description: 创建时间 + type: string + dataAuthorityId: + items: + $ref: '#/definitions/system.SysAuthority' + type: array + defaultRouter: + description: 默认菜单(默认dashboard) + type: string + deletedAt: + type: string + menus: + items: + $ref: '#/definitions/system.SysBaseMenu' + type: array + parentId: + description: 父角色ID + type: string + updatedAt: + description: 更新时间 type: string type: object - request.SysDictionaryDetailSearch: + system.SysBaseMenu: properties: + authoritys: + items: + $ref: '#/definitions/system.SysAuthority' + type: array + children: + items: + $ref: '#/definitions/system.SysBaseMenu' + type: array + closeTab: + description: 自动关闭tab + type: boolean + component: + description: 对应前端文件路径 + type: string createdAt: description: 创建时间 type: string + defaultMenu: + description: 是否是基础路由(开发中) + type: boolean + hidden: + description: 是否在列表隐藏 + type: boolean + icon: + description: 菜单图标 + type: string id: description: 主键ID type: integer - label: - description: 展示值 + keepAlive: + description: 是否缓存 + type: boolean + name: + description: 路由name + type: string + parameters: + items: + $ref: '#/definitions/system.SysBaseMenuParameter' + type: array + parentId: + description: 父菜单ID + type: string + path: + description: 路由path type: string - page: - description: 页码 - type: integer - pageSize: - description: 每页大小 - type: integer sort: description: 排序标记 type: integer - status: - description: 启用状态 - type: boolean - sysDictionaryID: - description: 关联标记 + title: + description: 菜单名 + type: string + updatedAt: + description: 更新时间 + type: string + type: object + system.SysBaseMenuParameter: + properties: + createdAt: + description: 创建时间 + type: string + id: + description: 主键ID + type: integer + key: + description: 地址栏携带参数的key + type: string + sysBaseMenuID: type: integer + type: + description: 地址栏携带参数为params还是query + type: string updatedAt: description: 更新时间 type: string value: - description: 字典值 - type: integer + description: 地址栏携带参数的值 + type: string type: object - request.SysDictionarySearch: + system.SysDictionary: properties: createdAt: description: 创建时间 @@ -889,18 +919,12 @@ definitions: name: description: 字典名(中) type: string - page: - description: 页码 - type: integer - pageSize: - description: 每页大小 - type: integer status: description: 状态 type: boolean sysDictionaryDetails: items: - $ref: '#/definitions/model.SysDictionaryDetail' + $ref: '#/definitions/system.SysDictionaryDetail' type: array type: description: 字典名(英) @@ -909,7 +933,34 @@ definitions: description: 更新时间 type: string type: object - request.SysOperationRecordSearch: + system.SysDictionaryDetail: + properties: + createdAt: + description: 创建时间 + type: string + id: + description: 主键ID + type: integer + label: + description: 展示值 + type: string + sort: + description: 排序标记 + type: integer + status: + description: 启用状态 + type: boolean + sysDictionaryID: + description: 关联标记 + type: integer + updatedAt: + description: 更新时间 + type: string + value: + description: 字典值 + type: integer + type: object + system.SysOperationRecord: properties: agent: description: 代理 @@ -935,12 +986,6 @@ definitions: method: description: 请求方法 type: string - page: - description: 页码 - type: integer - pageSize: - description: 每页大小 - type: integer path: description: 请求路径 type: string @@ -954,18 +999,53 @@ definitions: description: 更新时间 type: string user: - $ref: '#/definitions/model.SysUser' + $ref: '#/definitions/system.SysUser' user_id: description: 用户id type: integer type: object - response.SysAuthorityCopyResponse: + system.SysUser: properties: + activeColor: + description: 活跃颜色 + type: string authority: - $ref: '#/definitions/model.SysAuthority' - oldAuthorityId: - description: 旧角色ID + $ref: '#/definitions/system.SysAuthority' + authorityId: + description: 用户角色ID + type: string + baseColor: + description: 基础颜色 type: string + createdAt: + description: 创建时间 + type: string + headerImg: + description: 用户头像 + type: string + id: + description: 主键ID + type: integer + nickName: + description: 用户昵称 + type: string + sideMode: + description: 用户侧边主题 + type: string + updatedAt: + description: 更新时间 + type: string + userName: + description: 用户登录名 + type: string + uuid: + description: 用户UUID + type: string + type: object + system.System: + properties: + config: + $ref: '#/definitions/config.Server' type: object info: contact: {} @@ -973,6 +1053,68 @@ info: title: Swagger Example API version: 0.0.1 paths: + /SimpleUploaderApi/checkFileMd5: + get: + parameters: + - description: md5 + in: query + name: md5 + required: true + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"查询成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 断点续传插件版示例 + tags: + - SimpleUploader + /SimpleUploaderApi/mergeFileMd5: + get: + parameters: + - description: md5 + in: query + name: md5 + required: true + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"合并成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 合并文件 + tags: + - SimpleUploader + /SimpleUploaderApi/upload: + post: + consumes: + - multipart/form-data + parameters: + - description: 断点续传插件版示例 + in: formData + name: file + required: true + type: file + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"切片创建成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 断点续传插件版示例 + tags: + - SimpleUploader /api/createApi: post: consumes: @@ -983,7 +1125,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysApi' + $ref: '#/definitions/system.SysApi' produces: - application/json responses: @@ -1006,7 +1148,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysApi' + $ref: '#/definitions/system.SysApi' produces: - application/json responses: @@ -1114,7 +1256,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysApi' + $ref: '#/definitions/system.SysApi' produces: - application/json responses: @@ -1160,7 +1302,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysAuthority' + $ref: '#/definitions/system.SysAuthority' produces: - application/json responses: @@ -1183,7 +1325,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysAuthority' + $ref: '#/definitions/system.SysAuthority' produces: - application/json responses: @@ -1229,7 +1371,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysAuthority' + $ref: '#/definitions/system.SysAuthority' produces: - application/json responses: @@ -1252,7 +1394,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysAuthority' + $ref: '#/definitions/system.SysAuthority' produces: - application/json responses: @@ -1275,7 +1417,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.AutoCodeStruct' + $ref: '#/definitions/system.AutoCodeStruct' produces: - application/json responses: @@ -1288,6 +1430,29 @@ paths: summary: 自动代码模板 tags: - AutoCode + /autoCode/delSysHistory: + post: + consumes: + - application/json + parameters: + - description: 删除回滚记录 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.AutoHistoryByID' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 删除回滚记录 + tags: + - AutoCode /autoCode/getColumn: get: consumes: @@ -1320,6 +1485,52 @@ paths: summary: 获取当前所有数据库 tags: - AutoCode + /autoCode/getMeta: + post: + consumes: + - application/json + parameters: + - description: 获取meta信息 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.AutoHistoryByID' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 回滚 + tags: + - AutoCode + /autoCode/getSysHistory: + post: + consumes: + - application/json + parameters: + - description: 查询回滚记录 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.SysAutoHistory' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 查询回滚记录 + tags: + - AutoCode /autoCode/getTables: get: consumes: @@ -1346,7 +1557,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.AutoCodeStruct' + $ref: '#/definitions/system.AutoCodeStruct' produces: - application/json responses: @@ -1359,6 +1570,144 @@ paths: summary: 预览创建后的代码 tags: - AutoCode + /autoCode/rollback: + post: + consumes: + - application/json + parameters: + - description: 回滚自动生成代码 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.AutoHistoryByID' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"回滚成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 回滚 + tags: + - AutoCode + /autoCodeExample/createAutoCodeExample: + post: + consumes: + - application/json + parameters: + - description: AutoCodeExample模型 + in: body + name: data + required: true + schema: + $ref: '#/definitions/autocode.AutoCodeExample' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"创建成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 创建AutoCodeExample + tags: + - AutoCodeExample + /autoCodeExample/deleteAutoCodeExample: + delete: + consumes: + - application/json + parameters: + - description: AutoCodeExample模型 + in: body + name: data + required: true + schema: + $ref: '#/definitions/autocode.AutoCodeExample' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 删除AutoCodeExample + tags: + - AutoCodeExample + /autoCodeExample/findAutoCodeExample: + get: + consumes: + - application/json + parameters: + - description: 用id查询AutoCodeExample + in: body + name: data + required: true + schema: + $ref: '#/definitions/autocode.AutoCodeExample' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"查询成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 用id查询AutoCodeExample + tags: + - AutoCodeExample + /autoCodeExample/getAutoCodeExampleList: + get: + consumes: + - application/json + parameters: + - description: 页码, 每页大小, 搜索条件 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.AutoCodeExampleSearch' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 分页获取AutoCodeExample列表 + tags: + - AutoCodeExample + /autoCodeExample/updateAutoCodeExample: + put: + consumes: + - application/json + parameters: + - description: 更新AutoCodeExample + in: body + name: data + required: true + schema: + $ref: '#/definitions/autocode.AutoCodeExample' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"更新成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 更新AutoCodeExample + tags: + - AutoCodeExample /base/captcha: post: consumes: @@ -1450,7 +1799,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.ExaCustomer' + $ref: '#/definitions/example.ExaCustomer' produces: - application/json responses: @@ -1472,7 +1821,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.ExaCustomer' + $ref: '#/definitions/example.ExaCustomer' produces: - application/json responses: @@ -1494,7 +1843,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.ExaCustomer' + $ref: '#/definitions/example.ExaCustomer' produces: - application/json responses: @@ -1516,7 +1865,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.ExaCustomer' + $ref: '#/definitions/example.ExaCustomer' produces: - application/json responses: @@ -1596,7 +1945,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.ExcelInfo' + $ref: '#/definitions/example.ExcelInfo' produces: - application/octet-stream responses: @@ -1673,7 +2022,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.ExaFileUploadAndDownload' + $ref: '#/definitions/example.ExaFileUploadAndDownload' produces: - application/json responses: @@ -1855,7 +2204,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysBaseMenu' + $ref: '#/definitions/system.SysBaseMenu' produces: - application/json responses: @@ -2012,7 +2361,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysBaseMenu' + $ref: '#/definitions/system.SysBaseMenu' produces: - application/json responses: @@ -2025,68 +2374,6 @@ paths: summary: 更新菜单 tags: - Menu - /simpleUploader/checkFileMd5: - get: - parameters: - - description: md5 - in: query - name: md5 - required: true - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"查询成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 断点续传插件版示例 - tags: - - SimpleUploader - /simpleUploader/mergeFileMd5: - get: - parameters: - - description: md5 - in: query - name: md5 - required: true - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"合并成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 合并文件 - tags: - - SimpleUploader - /simpleUploader/upload: - post: - consumes: - - multipart/form-data - parameters: - - description: 断点续传插件版示例 - in: formData - name: file - required: true - type: file - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"切片创建成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 断点续传插件版示例 - tags: - - SimpleUploader /sysDictionary/createSysDictionary: post: consumes: @@ -2097,7 +2384,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysDictionary' + $ref: '#/definitions/system.SysDictionary' produces: - application/json responses: @@ -2120,7 +2407,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysDictionary' + $ref: '#/definitions/system.SysDictionary' produces: - application/json responses: @@ -2143,7 +2430,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysDictionary' + $ref: '#/definitions/system.SysDictionary' produces: - application/json responses: @@ -2189,7 +2476,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysDictionary' + $ref: '#/definitions/system.SysDictionary' produces: - application/json responses: @@ -2212,7 +2499,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysDictionaryDetail' + $ref: '#/definitions/system.SysDictionaryDetail' produces: - application/json responses: @@ -2235,7 +2522,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysDictionaryDetail' + $ref: '#/definitions/system.SysDictionaryDetail' produces: - application/json responses: @@ -2258,7 +2545,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysDictionaryDetail' + $ref: '#/definitions/system.SysDictionaryDetail' produces: - application/json responses: @@ -2304,7 +2591,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysDictionaryDetail' + $ref: '#/definitions/system.SysDictionaryDetail' produces: - application/json responses: @@ -2327,7 +2614,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysOperationRecord' + $ref: '#/definitions/system.SysOperationRecord' produces: - application/json responses: @@ -2350,7 +2637,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysOperationRecord' + $ref: '#/definitions/system.SysOperationRecord' produces: - application/json responses: @@ -2396,7 +2683,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysOperationRecord' + $ref: '#/definitions/system.SysOperationRecord' produces: - application/json responses: @@ -2482,7 +2769,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.System' + $ref: '#/definitions/system.System' produces: - application/json responses: @@ -2570,7 +2857,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysUser' + $ref: '#/definitions/request.Register' produces: - application/json responses: @@ -2614,7 +2901,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/model.SysUser' + $ref: '#/definitions/system.SysUser' produces: - application/json responses: diff --git a/server/go.mod b/server/go.mod index df07108b..1dcc8ef4 100644 --- a/server/go.mod +++ b/server/go.mod @@ -10,14 +10,16 @@ require ( github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect github.com/casbin/casbin/v2 v2.11.0 github.com/casbin/gorm-adapter/v3 v3.0.2 + github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 // indirect github.com/fsnotify/fsnotify v1.4.9 github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6 github.com/gin-gonic/gin v1.6.3 github.com/go-ole/go-ole v1.2.4 // indirect - github.com/go-openapi/spec v0.19.7 // indirect - github.com/go-openapi/swag v0.19.8 // indirect + github.com/go-openapi/jsonreference v0.19.6 // indirect + github.com/go-openapi/spec v0.20.3 // indirect + github.com/go-openapi/swag v0.19.15 // indirect github.com/go-playground/validator/v10 v10.3.0 // indirect github.com/go-redis/redis v6.15.7+incompatible github.com/go-redis/redis/v8 v8.11.0 @@ -28,13 +30,14 @@ require ( github.com/json-iterator/go v1.1.10 // indirect github.com/lestrrat-go/file-rotatelogs v2.3.0+incompatible github.com/lestrrat-go/strftime v1.0.3 // indirect - github.com/mailru/easyjson v0.7.1 // indirect + github.com/mailru/easyjson v0.7.7 // indirect github.com/mitchellh/mapstructure v1.2.2 // indirect github.com/mojocn/base64Captcha v1.3.1 github.com/pelletier/go-toml v1.6.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/qiniu/api.v7/v7 v7.4.1 github.com/robfig/cron/v3 v3.0.1 + github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/satori/go.uuid v1.2.0 github.com/shirou/gopsutil v3.21.1+incompatible github.com/spf13/afero v1.2.2 // indirect @@ -42,14 +45,17 @@ require ( github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/viper v1.7.0 - github.com/swaggo/gin-swagger v1.2.0 - github.com/swaggo/swag v1.6.7 + github.com/swaggo/gin-swagger v1.3.0 + github.com/swaggo/swag v1.7.0 github.com/tebeka/strftime v0.1.3 // indirect github.com/tencentyun/cos-go-sdk-v5 v0.7.19 github.com/unrolled/secure v1.0.7 go.uber.org/zap v1.10.0 golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect + golang.org/x/net v0.0.0-20210716203947-853a461950ff // indirect golang.org/x/sync v0.0.0-20210220032951-036812b2e83c + golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect + golang.org/x/tools v0.1.5 // indirect google.golang.org/protobuf v1.24.0 // indirect gopkg.in/ini.v1 v1.55.0 // indirect gorm.io/driver/mysql v1.0.1