| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/authority/setMenuAuthority": { |
| | | "post": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "consumes": [ |
| | | "application/json" |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Authority" |
| | | ], |
| | | "summary": "设置角色菜单", |
| | | "parameters": [ |
| | | { |
| | | "description": "设置角色资源权限", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.SetAuthorityMenu" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/base/captcha": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | }, |
| | | "/api/menu/getMenu": { |
| | | "get": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | |
| | | "Menu" |
| | | ], |
| | | "summary": "获取菜单树", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "Authorization", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/authority/setDataAuthority": { |
| | | "post": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "consumes": [ |
| | | "application/json" |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Authority" |
| | | ], |
| | | "summary": "设置角色资源权限", |
| | | "parameters": [ |
| | | { |
| | | "description": "设置角色资源权限", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddAuthority" |
| | | } |
| | | } |
| | | ], |
| | | "responses": {} |
| | | } |
| | | } |
| | | }, |
| | | "definitions": { |
| | |
| | | "model.FollowRecord": { |
| | | "type": "object", |
| | | "properties": { |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "client_status_id": { |
| | | "type": "integer" |
| | | }, |
| | | "contact": { |
| | | "$ref": "#/definitions/model.Contact" |
| | | }, |
| | | "contact_id": { |
| | | "type": "integer" |
| | |
| | | "properties": { |
| | | "authorityName": { |
| | | "type": "string" |
| | | }, |
| | | "casbinInfos": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/request.CasbinInfo" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.CasbinInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "method": { |
| | | "description": "方法", |
| | | "type": "string" |
| | | }, |
| | | "path": { |
| | | "description": "路径", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.ChangePasswordReq": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.SetAuthorityMenu": { |
| | | "type": "object", |
| | | "properties": { |
| | | "authorityId": { |
| | | "type": "integer" |
| | | }, |
| | | "menus": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "request.SetCity": { |
| | | "type": "object", |
| | | "properties": { |