|
@@ -1,6 +1,6 @@
|
|
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
// This file was generated by swaggo/swag at
|
|
// This file was generated by swaggo/swag at
|
|
-// 2019-09-08 16:14:12.6903257 +0800 CST m=+0.106563301
|
|
|
|
|
|
+// 2019-09-21 22:57:49.3172136 +0800 CST m=+0.048845201
|
|
|
|
|
|
package docs
|
|
package docs
|
|
|
|
|
|
@@ -104,6 +104,84 @@ var doc = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "/api/getApiList": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "api"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "分页获取角色列表",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "分页获取用户列表",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/modelInterface.PageInfo"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "/api/setAuthAndPath": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "Api"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "创建api和角色关系",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "创建api和角色关系",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/api.AuthAndPathIn"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"/authority/createAuthority": {
|
|
"/authority/createAuthority": {
|
|
"post": {
|
|
"post": {
|
|
"security": [
|
|
"security": [
|
|
@@ -182,6 +260,45 @@ var doc = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "/authority/getAuthorityList": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "authority"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "分页获取角色列表",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "分页获取用户列表",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/modelInterface.PageInfo"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"/base/login": {
|
|
"/base/login": {
|
|
"post": {
|
|
"post": {
|
|
"produces": [
|
|
"produces": [
|
|
@@ -244,6 +361,234 @@ var doc = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "/menu/addBaseMenu": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "menu"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "分页获取基础menu列表",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "分页获取基础menu列表",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/modelInterface.PageInfo"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "/menu/addMenuAuthority": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "authorityAndMenu"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "获取指定角色menu",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "增加menu和角色关联关系",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/api.AuthorityIdInfo"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "/menu/deleteBaseMenu": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "menu"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "获取指定角色menu",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "删除菜单",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/api.IdInfo"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "/menu/getBaseMenuTree": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "authorityAndMenu"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "获取用户动态路由",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "可以什么都不填",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/api.RegistAndLoginStuct"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "/menu/getMenu": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "authorityAndMenu"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "获取用户动态路由",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "可以什么都不填",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/api.RegistAndLoginStuct"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "/menu/getMenuList": {
|
|
|
|
+ "post": {
|
|
|
|
+ "security": [
|
|
|
|
+ {
|
|
|
|
+ "ApiKeyAuth": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "consumes": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "produces": [
|
|
|
|
+ "application/json"
|
|
|
|
+ ],
|
|
|
|
+ "tags": [
|
|
|
|
+ "menu"
|
|
|
|
+ ],
|
|
|
|
+ "summary": "分页获取基础menu列表",
|
|
|
|
+ "parameters": [
|
|
|
|
+ {
|
|
|
|
+ "description": "分页获取基础menu列表",
|
|
|
|
+ "name": "data",
|
|
|
|
+ "in": "body",
|
|
|
|
+ "required": true,
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "$ref": "#/definitions/modelInterface.PageInfo"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "responses": {
|
|
|
|
+ "200": {
|
|
|
|
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
|
|
|
|
+ "schema": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"/user/changePassword": {
|
|
"/user/changePassword": {
|
|
"post": {
|
|
"post": {
|
|
"security": [
|
|
"security": [
|
|
@@ -364,6 +709,42 @@ var doc = `{
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"definitions": {
|
|
"definitions": {
|
|
|
|
+ "api.AddMenuAuthorityInfo": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "authorityId": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "menus": {
|
|
|
|
+ "type": "array",
|
|
|
|
+ "items": {
|
|
|
|
+ "$ref": "#/definitions/dbModel.BaseMenu"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "api.AuthAndPathIn": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "apis": {
|
|
|
|
+ "type": "array",
|
|
|
|
+ "items": {
|
|
|
|
+ "$ref": "#/definitions/dbModel.Api"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "authorityId": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "api.AuthorityIdInfo": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "authorityId": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"api.ChangePasswordStutrc": {
|
|
"api.ChangePasswordStutrc": {
|
|
"type": "object",
|
|
"type": "object",
|
|
"properties": {
|
|
"properties": {
|
|
@@ -393,7 +774,7 @@ var doc = `{
|
|
"type": "object",
|
|
"type": "object",
|
|
"properties": {
|
|
"properties": {
|
|
"authorityId": {
|
|
"authorityId": {
|
|
- "type": "integer"
|
|
|
|
|
|
+ "type": "string"
|
|
},
|
|
},
|
|
"authorityName": {
|
|
"authorityName": {
|
|
"type": "string"
|
|
"type": "string"
|
|
@@ -411,6 +792,14 @@ var doc = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "api.IdInfo": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "id": {
|
|
|
|
+ "type": "number"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"api.RegistAndLoginStuct": {
|
|
"api.RegistAndLoginStuct": {
|
|
"type": "object",
|
|
"type": "object",
|
|
"properties": {
|
|
"properties": {
|
|
@@ -422,6 +811,52 @@ var doc = `{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "dbModel.Api": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "description": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "path": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "dbModel.BaseMenu": {
|
|
|
|
+ "type": "object",
|
|
|
|
+ "properties": {
|
|
|
|
+ "children": {
|
|
|
|
+ "type": "array",
|
|
|
|
+ "items": {
|
|
|
|
+ "$ref": "#/definitions/dbModel.BaseMenu"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "component": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "hidden": {
|
|
|
|
+ "type": "boolean"
|
|
|
|
+ },
|
|
|
|
+ "icon": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "name": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "nickName": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "parentId": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "path": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ },
|
|
|
|
+ "title": {
|
|
|
|
+ "type": "string"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"modelInterface.PageInfo": {
|
|
"modelInterface.PageInfo": {
|
|
"type": "object",
|
|
"type": "object",
|
|
"properties": {
|
|
"properties": {
|