From 114b298c2af545e7b63ed5888142dabf5fa62e06 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 17 七月 2023 18:28:23 +0800 Subject: [PATCH] fix --- docs/docs.go | 172 +++++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 141 insertions(+), 31 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 63dbcf3..55e80a2 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -54,6 +54,44 @@ } } }, + "/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": [ @@ -194,6 +232,14 @@ "City" ], "summary": "鑾峰彇鍩庡競鍒楄〃", + "parameters": [ + { + "type": "integer", + "description": "鐪佷唤ID", + "name": "provinceId", + "in": "query" + } + ], "responses": { "200": { "description": "鎴愬姛", @@ -1965,6 +2011,11 @@ }, "/api/menu/getMenu": { "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], "produces": [ "application/json" ], @@ -1972,6 +2023,15 @@ "Menu" ], "summary": "鑾峰彇鑿滃崟鏍�", + "parameters": [ + { + "type": "string", + "description": "Authorization", + "name": "Authorization", + "in": "header", + "required": true + } + ], "responses": { "200": { "description": "OK", @@ -4757,37 +4817,6 @@ } } } - }, - "/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": { @@ -4868,6 +4897,29 @@ } } }, + "model.Authority": { + "type": "object", + "properties": { + "authorityName": { + "description": "瑙掕壊鍚�", + "type": "string" + }, + "defaultRouter": { + "description": "榛樿鑿滃崟(榛樿dashboard)", + "type": "string" + }, + "id": { + "description": "瑙掕壊ID", + "type": "integer" + }, + "menus": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Menu" + } + } + } + }, "model.City": { "type": "object", "properties": { @@ -4897,14 +4949,26 @@ "city_id": { "type": "integer" }, + "client_level": { + "$ref": "#/definitions/model.ClientLevel" + }, "client_level_id": { "type": "integer" + }, + "client_origin": { + "$ref": "#/definitions/model.ClientOrigin" }, "client_origin_id": { "type": "integer" }, + "client_status": { + "$ref": "#/definitions/model.ClientStatus" + }, "client_status_id": { "type": "integer" + }, + "client_type": { + "$ref": "#/definitions/model.ClientType" }, "client_type_id": { "type": "integer" @@ -5278,11 +5342,17 @@ "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" @@ -6036,6 +6106,13 @@ "model.User": { "type": "object", "properties": { + "authority": { + "$ref": "#/definitions/model.Authority" + }, + "authorityId": { + "description": "鐢ㄦ埛瑙掕壊ID", + "type": "integer" + }, "companyName": { "type": "string" }, @@ -6103,6 +6180,12 @@ "properties": { "authorityName": { "type": "string" + }, + "casbinInfos": { + "type": "array", + "items": { + "$ref": "#/definitions/request.CasbinInfo" + } } } }, @@ -6898,6 +6981,19 @@ } } }, + "request.CasbinInfo": { + "type": "object", + "properties": { + "method": { + "description": "鏂规硶", + "type": "string" + }, + "path": { + "description": "璺緞", + "type": "string" + } + } + }, "request.ChangePasswordReq": { "type": "object", "properties": { @@ -7383,6 +7479,20 @@ } } }, + "request.SetAuthorityMenu": { + "type": "object", + "properties": { + "authorityId": { + "type": "integer" + }, + "menus": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, "request.SetCity": { "type": "object", "properties": { -- Gitblit v1.8.0