用户头像由上传模式改为 媒体库选择模式
This commit is contained in:
+19
-176
@@ -33,7 +33,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysApi"
|
||||
}
|
||||
}
|
||||
@@ -72,7 +71,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysApi"
|
||||
}
|
||||
}
|
||||
@@ -138,7 +136,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.GetById"
|
||||
}
|
||||
}
|
||||
@@ -177,7 +174,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.SearchApiParams"
|
||||
}
|
||||
}
|
||||
@@ -216,7 +212,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysApi"
|
||||
}
|
||||
}
|
||||
@@ -255,7 +250,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/response.SysAuthorityCopyResponse"
|
||||
}
|
||||
}
|
||||
@@ -294,7 +288,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysAuthority"
|
||||
}
|
||||
}
|
||||
@@ -333,7 +326,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysAuthority"
|
||||
}
|
||||
}
|
||||
@@ -372,7 +364,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.PageInfo"
|
||||
}
|
||||
}
|
||||
@@ -411,7 +402,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysAuthority"
|
||||
}
|
||||
}
|
||||
@@ -450,7 +440,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysAuthority"
|
||||
}
|
||||
}
|
||||
@@ -489,7 +478,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.AutoCodeStruct"
|
||||
}
|
||||
}
|
||||
@@ -574,7 +562,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.RegisterAndLoginStruct"
|
||||
}
|
||||
}
|
||||
@@ -605,7 +592,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysUser"
|
||||
}
|
||||
}
|
||||
@@ -620,45 +606,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/casbin/CasbinTest": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"casbin"
|
||||
],
|
||||
"summary": "casb RBAC RESTFUL测试路由",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "获取权限列表",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.CasbinInReceive"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/casbin/UpdateCasbin": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -683,7 +630,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.CasbinInReceive"
|
||||
}
|
||||
}
|
||||
@@ -722,7 +668,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.CasbinInReceive"
|
||||
}
|
||||
}
|
||||
@@ -761,7 +706,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.ExaCustomer"
|
||||
}
|
||||
}
|
||||
@@ -798,7 +742,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.ExaCustomer"
|
||||
}
|
||||
}
|
||||
@@ -835,7 +778,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.ExaCustomer"
|
||||
}
|
||||
}
|
||||
@@ -872,7 +814,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.ExaCustomer"
|
||||
}
|
||||
}
|
||||
@@ -911,7 +852,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.PageInfo"
|
||||
}
|
||||
}
|
||||
@@ -983,7 +923,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.ExaFileUploadAndDownload"
|
||||
}
|
||||
}
|
||||
@@ -1058,7 +997,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.PageInfo"
|
||||
}
|
||||
}
|
||||
@@ -1196,7 +1134,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.AuthorityIdInfo"
|
||||
}
|
||||
}
|
||||
@@ -1235,7 +1172,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysBaseMenu"
|
||||
}
|
||||
}
|
||||
@@ -1274,7 +1210,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.AddMenuAuthorityInfo"
|
||||
}
|
||||
}
|
||||
@@ -1313,7 +1248,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.GetById"
|
||||
}
|
||||
}
|
||||
@@ -1352,7 +1286,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.GetById"
|
||||
}
|
||||
}
|
||||
@@ -1388,7 +1321,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.RegisterAndLoginStruct"
|
||||
}
|
||||
}
|
||||
@@ -1424,7 +1356,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.RegisterAndLoginStruct"
|
||||
}
|
||||
}
|
||||
@@ -1463,7 +1394,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.PageInfo"
|
||||
}
|
||||
}
|
||||
@@ -1502,7 +1432,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysBaseMenu"
|
||||
}
|
||||
}
|
||||
@@ -1634,7 +1563,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysDictionary"
|
||||
}
|
||||
}
|
||||
@@ -1673,7 +1601,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysDictionary"
|
||||
}
|
||||
}
|
||||
@@ -1712,7 +1639,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysDictionary"
|
||||
}
|
||||
}
|
||||
@@ -1751,7 +1677,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.SysDictionarySearch"
|
||||
}
|
||||
}
|
||||
@@ -1790,7 +1715,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysDictionary"
|
||||
}
|
||||
}
|
||||
@@ -1829,7 +1753,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysDictionaryDetail"
|
||||
}
|
||||
}
|
||||
@@ -1868,7 +1791,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysDictionaryDetail"
|
||||
}
|
||||
}
|
||||
@@ -1907,7 +1829,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysDictionaryDetail"
|
||||
}
|
||||
}
|
||||
@@ -1946,7 +1867,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.SysDictionaryDetailSearch"
|
||||
}
|
||||
}
|
||||
@@ -1985,7 +1905,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysDictionaryDetail"
|
||||
}
|
||||
}
|
||||
@@ -2024,7 +1943,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysOperationRecord"
|
||||
}
|
||||
}
|
||||
@@ -2063,7 +1981,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysOperationRecord"
|
||||
}
|
||||
}
|
||||
@@ -2102,7 +2019,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.IdsReq"
|
||||
}
|
||||
}
|
||||
@@ -2141,7 +2057,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysOperationRecord"
|
||||
}
|
||||
}
|
||||
@@ -2180,7 +2095,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.SysOperationRecordSearch"
|
||||
}
|
||||
}
|
||||
@@ -2195,45 +2109,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/sysOperationRecord/updateSysOperationRecord": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"SysOperationRecord"
|
||||
],
|
||||
"summary": "更新SysOperationRecord",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "更新SysOperationRecord",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysOperationRecord"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/system/ReloadSystem": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -2255,7 +2130,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.System"
|
||||
}
|
||||
}
|
||||
@@ -2315,7 +2189,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.System"
|
||||
}
|
||||
}
|
||||
@@ -2351,7 +2224,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.ChangePasswordStruct"
|
||||
}
|
||||
}
|
||||
@@ -2390,7 +2262,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.GetById"
|
||||
}
|
||||
}
|
||||
@@ -2429,7 +2300,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.PageInfo"
|
||||
}
|
||||
}
|
||||
@@ -2468,7 +2338,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/request.SetUserAuth"
|
||||
}
|
||||
}
|
||||
@@ -2483,49 +2352,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/uploadHeaderImg": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"SysUser"
|
||||
],
|
||||
"summary": "用户上传头像",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "file",
|
||||
"description": "用户上传头像",
|
||||
"name": "headerImg",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "用户上传头像",
|
||||
"name": "username",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/workflow/createWorkFlow": {
|
||||
"post": {
|
||||
"produces": [
|
||||
@@ -2542,7 +2368,6 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/model.SysWorkflow"
|
||||
}
|
||||
}
|
||||
@@ -2589,6 +2414,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.LocalUpload": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avatarPath": {
|
||||
"type": "string"
|
||||
},
|
||||
"filePath": {
|
||||
"type": "string"
|
||||
},
|
||||
"local": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config.Log": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2681,6 +2520,10 @@
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/config.JWT"
|
||||
},
|
||||
"localUpload": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/config.LocalUpload"
|
||||
},
|
||||
"log": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/config.Log"
|
||||
@@ -2963,7 +2806,7 @@
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"sysBaseMenuId": {
|
||||
"sysBaseMenuID": {
|
||||
"type": "integer"
|
||||
},
|
||||
"type": {
|
||||
|
||||
Reference in New Issue
Block a user