From 30f137e85a76420d872a96c30b2177f59e9706d2 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 17 七月 2023 16:13:59 +0800 Subject: [PATCH] add --- docs/docs.go | 122 ++++++++++++++++++++++++++++++---------- 1 files changed, 91 insertions(+), 31 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 63dbcf3..ac27a6c 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": [ @@ -1965,6 +2003,11 @@ }, "/api/menu/getMenu": { "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], "produces": [ "application/json" ], @@ -1972,6 +2015,15 @@ "Menu" ], "summary": "鑾峰彇鑿滃崟鏍�", + "parameters": [ + { + "type": "string", + "description": "Authorization", + "name": "Authorization", + "in": "header", + "required": true + } + ], "responses": { "200": { "description": "OK", @@ -4757,37 +4809,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": { @@ -5278,11 +5299,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" @@ -6103,6 +6130,12 @@ "properties": { "authorityName": { "type": "string" + }, + "casbinInfos": { + "type": "array", + "items": { + "$ref": "#/definitions/request.CasbinInfo" + } } } }, @@ -6898,6 +6931,19 @@ } } }, + "request.CasbinInfo": { + "type": "object", + "properties": { + "method": { + "description": "鏂规硶", + "type": "string" + }, + "path": { + "description": "璺緞", + "type": "string" + } + } + }, "request.ChangePasswordReq": { "type": "object", "properties": { @@ -7383,6 +7429,20 @@ } } }, + "request.SetAuthorityMenu": { + "type": "object", + "properties": { + "authorityId": { + "type": "integer" + }, + "menus": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, "request.SetCity": { "type": "object", "properties": { -- Gitblit v1.8.0