From 5f00d720ea52ababeb10954da4d33ab6c46e93b7 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 14 七月 2023 17:47:13 +0800
Subject: [PATCH] add

---
 docs/swagger.yaml |   89 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 89 insertions(+), 0 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 1a9724c..5a70e9f 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -384,6 +384,24 @@
       start_time:
         type: string
     type: object
+  model.Menu:
+    properties:
+      children:
+        items:
+          $ref: '#/definitions/model.Menu'
+        type: array
+      id:
+        description: 涓婚敭ID
+        type: integer
+      name:
+        type: string
+      parentId:
+        type: integer
+      path:
+        type: string
+      title:
+        type: string
+    type: object
   model.Plan:
     properties:
       clientId:
@@ -849,6 +867,11 @@
       userType:
         $ref: '#/definitions/constvar.UserType'
       username:
+        type: string
+    type: object
+  request.AddAuthority:
+    properties:
+      authorityName:
         type: string
     type: object
   request.AddCity:
@@ -2673,6 +2696,13 @@
           $ref: '#/definitions/model.MasterOrder'
         type: array
     type: object
+  response.MenuTreeResponse:
+    properties:
+      list:
+        items:
+          $ref: '#/definitions/model.Menu'
+        type: array
+    type: object
   response.PageResult:
     properties:
       list: {}
@@ -2810,6 +2840,29 @@
 info:
   contact: {}
 paths:
+  /api/authority/add:
+    post:
+      consumes:
+      - application/json
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddAuthority'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      security:
+      - ApiKeyAuth: []
+      summary: 鍒涘缓瑙掕壊
+      tags:
+      - Authority
   /api/base/captcha:
     post:
       produces:
@@ -3978,6 +4031,23 @@
       summary: 鏇存柊涓昏鍗�
       tags:
       - MasterOrder
+  /api/menu/getMenu:
+    get:
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            allOf:
+            - $ref: '#/definitions/contextx.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.MenuTreeResponse'
+              type: object
+      summary: 鑾峰彇鑿滃崟鏍�
+      tags:
+      - Menu
   /api/orderManage/add:
     post:
       parameters:
@@ -5684,4 +5754,23 @@
       summary: 璁剧疆鐢ㄦ埛淇℃伅
       tags:
       - User
+  /authority/setDataAuthority:
+    post:
+      consumes:
+      - application/json
+      parameters:
+      - description: 璁剧疆瑙掕壊璧勬簮鏉冮檺
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddAuthority'
+      produces:
+      - application/json
+      responses: {}
+      security:
+      - ApiKeyAuth: []
+      summary: 璁剧疆瑙掕壊璧勬簮鏉冮檺
+      tags:
+      - Authority
 swagger: "2.0"

--
Gitblit v1.8.0