From fdde31710cf0b94560583e1039088c90a21de5d6 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 18 七月 2023 15:12:56 +0800
Subject: [PATCH] add

---
 docs/swagger.yaml |  224 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 204 insertions(+), 20 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 5a70e9f..9ebebbd 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -60,6 +60,22 @@
       msg:
         type: string
     type: object
+  model.Authority:
+    properties:
+      authorityName:
+        description: 瑙掕壊鍚�
+        type: string
+      defaultRouter:
+        description: 榛樿鑿滃崟(榛樿dashboard)
+        type: string
+      id:
+        description: 瑙掕壊ID
+        type: integer
+      menus:
+        items:
+          $ref: '#/definitions/model.Menu'
+        type: array
+    type: object
   model.City:
     properties:
       id:
@@ -79,12 +95,20 @@
         $ref: '#/definitions/model.City'
       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
       contacts:
@@ -329,10 +353,14 @@
     type: object
   model.FollowRecord:
     properties:
+      client:
+        $ref: '#/definitions/model.Client'
       client_id:
         type: integer
       client_status_id:
         type: integer
+      contact:
+        $ref: '#/definitions/model.Contact'
       contact_id:
         type: integer
       contact_information_id:
@@ -827,6 +855,11 @@
     type: object
   model.User:
     properties:
+      authority:
+        $ref: '#/definitions/model.Authority'
+      authorityId:
+        description: 鐢ㄦ埛瑙掕壊ID
+        type: integer
       companyName:
         type: string
       createAt:
@@ -873,6 +906,10 @@
     properties:
       authorityName:
         type: string
+      casbinInfos:
+        items:
+          $ref: '#/definitions/request.CasbinInfo'
+        type: array
     type: object
   request.AddCity:
     properties:
@@ -1406,6 +1443,15 @@
       subOrder:
         $ref: '#/definitions/request.SubOrder'
     type: object
+  request.CasbinInfo:
+    properties:
+      method:
+        description: 鏂规硶
+        type: string
+      path:
+        description: 璺緞
+        type: string
+    type: object
   request.ChangePasswordReq:
     properties:
       newPassword:
@@ -1743,6 +1789,15 @@
         type: string
       status:
         type: integer
+    type: object
+  request.SetAuthorityMenu:
+    properties:
+      authorityId:
+        type: integer
+      menus:
+        items:
+          type: integer
+        type: array
     type: object
   request.SetCity:
     properties:
@@ -2652,6 +2707,89 @@
           $ref: '#/definitions/model.Country'
         type: array
     type: object
+  response.DataResponse:
+    properties:
+      city:
+        description: 鍩庡競鏁版嵁
+        items:
+          $ref: '#/definitions/model.City'
+        type: array
+      client_level:
+        description: 瀹㈡埛绛夌骇
+        items:
+          $ref: '#/definitions/model.ClientLevel'
+        type: array
+      client_origin:
+        description: 瀹㈡埛鏉ユ簮
+        items:
+          $ref: '#/definitions/model.ClientOrigin'
+        type: array
+      client_status:
+        description: 瀹㈡埛鐘舵��
+        items:
+          $ref: '#/definitions/model.ClientStatus'
+        type: array
+      client_type:
+        description: 瀹㈡埛绫诲瀷
+        items:
+          $ref: '#/definitions/model.ClientType'
+        type: array
+      country:
+        description: 鍥藉鏁版嵁
+        items:
+          $ref: '#/definitions/model.Country'
+        type: array
+      enterprise_nature:
+        description: 浼佷笟鎬ц川
+        items:
+          $ref: '#/definitions/model.EnterpriseNature'
+        type: array
+      enterprise_scale:
+        description: 浼佷笟瑙勬ā
+        items:
+          $ref: '#/definitions/model.EnterpriseScale'
+        type: array
+      industry:
+        description: 琛屼笟
+        items:
+          $ref: '#/definitions/model.Industry'
+        type: array
+      province:
+        description: 鐪佷唤鏁版嵁
+        items:
+          $ref: '#/definitions/model.Province'
+        type: array
+      region:
+        description: 鍖哄煙鏁版嵁
+        items:
+          $ref: '#/definitions/model.Region'
+        type: array
+      registered_capital:
+        description: 娉ㄥ唽璧勯噾
+        items:
+          $ref: '#/definitions/model.RegisteredCapital'
+        type: array
+      regular_customers:
+        description: 鑰佸鎴疯惀閿�
+        items:
+          $ref: '#/definitions/model.RegularCustomers'
+        type: array
+      sale_stage:
+        description: 閿�鍞樁娈�
+        items:
+          $ref: '#/definitions/model.SaleStage'
+        type: array
+      sale_type:
+        description: 閿�鍞被鍨�
+        items:
+          $ref: '#/definitions/model.SaleType'
+        type: array
+      sales_source:
+        description: 鍟嗘満鏉ユ簮
+        items:
+          $ref: '#/definitions/model.SalesSources'
+        type: array
+    type: object
   response.EnterpriseNatureResponse:
     properties:
       list:
@@ -2863,6 +3001,29 @@
       summary: 鍒涘缓瑙掕壊
       tags:
       - Authority
+  /api/authority/setMenuAuthority:
+    post:
+      consumes:
+      - application/json
+      parameters:
+      - description: 璁剧疆瑙掕壊璧勬簮鏉冮檺
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/request.SetAuthorityMenu'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      security:
+      - ApiKeyAuth: []
+      summary: 璁剧疆瑙掕壊鑿滃崟
+      tags:
+      - Authority
   /api/base/captcha:
     post:
       produces:
@@ -2943,6 +3104,11 @@
       - City
   /api/city/list:
     get:
+      parameters:
+      - description: 鐪佷唤ID
+        in: query
+        name: province_id
+        type: integer
       produces:
       - application/json
       responses:
@@ -3051,7 +3217,7 @@
       tags:
       - Client
   /api/client/update:
-    post:
+    put:
       parameters:
       - description: 鏌ヨ鍙傛暟
         in: body
@@ -3649,6 +3815,23 @@
       summary: 鏇存柊瀹㈡湇鍗�
       tags:
       - CustomerServiceSheet
+  /api/data/getAllData:
+    get:
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            allOf:
+            - $ref: '#/definitions/contextx.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.DataResponse'
+              type: object
+      summary: 鑾峰彇鎵�鏈夋暟鎹�
+      tags:
+      - Data
   /api/enterpriseNature/add:
     post:
       parameters:
@@ -4033,6 +4216,12 @@
       - MasterOrder
   /api/menu/getMenu:
     get:
+      parameters:
+      - description: Authorization
+        in: header
+        name: Authorization
+        required: true
+        type: string
       produces:
       - application/json
       responses:
@@ -4045,6 +4234,8 @@
                 data:
                   $ref: '#/definitions/response.MenuTreeResponse'
               type: object
+      security:
+      - ApiKeyAuth: []
       summary: 鑾峰彇鑿滃崟鏍�
       tags:
       - Menu
@@ -4301,6 +4492,12 @@
       - Province
   /api/province/list:
     get:
+      parameters:
+      - description: 鍥藉ID
+        in: query
+        name: country_id
+        required: true
+        type: integer
       produces:
       - application/json
       responses:
@@ -4466,6 +4663,12 @@
       - Region
   /api/region/list:
     get:
+      parameters:
+      - description: 鍩庡競ID
+        in: query
+        name: city_id
+        required: true
+        type: integer
       produces:
       - application/json
       responses:
@@ -5754,23 +5957,4 @@
       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