From 25fcc66e4c844306489dcfec6880004157a2dff7 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 20 七月 2023 17:24:47 +0800
Subject: [PATCH] fix

---
 docs/swagger.yaml |  467 +++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 350 insertions(+), 117 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index c7dd501..9eb98ef 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -404,6 +404,8 @@
     type: object
   model.MasterOrder:
     properties:
+      client:
+        $ref: '#/definitions/model.Client'
       client_id:
         type: integer
       end_time:
@@ -577,6 +579,8 @@
         type: integer
       currency:
         $ref: '#/definitions/constvar.CurrencyType'
+      detail_address:
+        type: string
       disadvantages:
         type: string
       expected_time:
@@ -613,6 +617,8 @@
         type: integer
       regular_customers_id:
         type: integer
+      remark:
+        type: string
       sale_stage_id:
         type: integer
       sale_type_id:
@@ -650,6 +656,8 @@
         type: string
       addressee:
         type: string
+      client:
+        $ref: '#/definitions/model.Client'
       clientId:
         type: integer
       conditions:
@@ -747,7 +755,37 @@
       refundMethod:
         type: string
     type: object
+  model.SalesReturn:
+    properties:
+      clientId:
+        type: integer
+      id:
+        type: integer
+      memberId:
+        type: integer
+      number:
+        type: string
+      products:
+        items:
+          $ref: '#/definitions/model.Product'
+        type: array
+      reason:
+        type: string
+      repository:
+        type: string
+      returnDate:
+        type: string
+      status:
+        type: integer
+    type: object
   model.SalesSources:
+    properties:
+      id:
+        type: integer
+      name:
+        type: string
+    type: object
+  model.Satisfaction:
     properties:
       id:
         type: integer
@@ -845,6 +883,8 @@
     type: object
   model.SubOrder:
     properties:
+      client:
+        $ref: '#/definitions/model.Client'
       clientId:
         type: integer
       id:
@@ -874,7 +914,7 @@
       headerImg:
         type: string
       id:
-        type: string
+        type: integer
       menuIds:
         description: 鑿滃崟ID鍒楄〃
         items:
@@ -891,6 +931,8 @@
       userType:
         $ref: '#/definitions/constvar.UserType'
       username:
+        type: string
+      uuid:
         type: string
     type: object
   request.AddAuthority:
@@ -1128,7 +1170,7 @@
       member_id:
         type: integer
       money:
-        type: string
+        type: number
       number:
         type: string
       start_time:
@@ -1234,6 +1276,8 @@
         type: integer
       currency:
         type: integer
+      detail_address:
+        type: string
       disadvantages:
         type: string
       expected_time:
@@ -1264,6 +1308,8 @@
         type: integer
       regular_customers_id:
         type: integer
+      remark:
+        type: string
       sale_stage_id:
         type: integer
       sale_type_id:
@@ -1350,6 +1396,13 @@
     required:
     - name
     type: object
+  request.AddSatisfaction:
+    properties:
+      name:
+        type: string
+    required:
+    - name
+    type: object
   request.AddServiceContract:
     properties:
       clientId:
@@ -1389,16 +1442,77 @@
     type: object
   request.AddServiceFeeManage:
     properties:
-      client_id:
+      business_scope:
+        description: 缁忚惀鑼冨洿
+        type: string
+      city_id:
+        type: integer
+      client_level_id:
+        description: 瀹㈡埛绛夌骇ID
+        type: integer
+      client_origin_id:
+        description: 瀹㈡埛鏉ユ簮ID
+        type: integer
+      client_status_id:
+        description: 瀹㈡埛鐘舵�両D
+        type: integer
+      client_type_id:
+        description: 瀹㈡埛绫诲瀷ID
+        type: integer
+      contact:
+        $ref: '#/definitions/request.Contact'
+      country_id:
+        type: integer
+      detail_address:
+        description: 璇︾粏鍦板潃
+        type: string
+      enterprise_nature_id:
+        description: 浼佷笟鎬ц川
+        type: integer
+      enterprise_scale_id:
+        description: 浼佷笟瑙勬ā
         type: integer
       file:
         type: string
+      industry_id:
+        description: 鎵�灞炶涓�
+        type: integer
       latest_date:
         type: string
-      member_id:
-        type: integer
-      remark:
+      latest_service_time:
+        description: 鏈�鏅氭湇鍔℃椂闂�
         type: string
+      member_id:
+        description: 閿�鍞礋璐d汉ID
+        type: integer
+      name:
+        description: 鍏徃鍚嶇О
+        type: string
+      next_visit_time:
+        description: 涓嬫鍥炶鏃堕棿
+        type: string
+      number:
+        description: 鍏徃缂栧彿
+        type: string
+      province_id:
+        type: integer
+      region_id:
+        type: integer
+      registered_capital_id:
+        description: 娉ㄥ唽璧勯噾
+        type: integer
+      registration_time:
+        description: 娉ㄥ唽鏃堕棿
+        type: string
+      remark:
+        description: 澶囨敞
+        type: string
+      representative:
+        description: 娉曚汉浠h〃
+        type: string
+      service_member_id:
+        description: 鏈嶅姟璐熻矗浜篒D
+        type: integer
     type: object
   request.AddServiceFollowup:
     properties:
@@ -1438,8 +1552,37 @@
     type: object
   request.AddSubOrder:
     properties:
-      subOrder:
-        $ref: '#/definitions/request.SubOrder'
+      clientId:
+        type: integer
+      masterOrderId:
+        type: integer
+      memberId:
+        type: integer
+      number:
+        type: string
+      product:
+        items:
+          $ref: '#/definitions/model.Product'
+        type: array
+    type: object
+  request.AddVetting:
+    properties:
+      opinion:
+        type: string
+      status:
+        type: integer
+      userId:
+        type: integer
+      vettingId:
+        type: integer
+      vettingType:
+        type: integer
+    required:
+    - opinion
+    - status
+    - userId
+    - vettingId
+    - vettingType
     type: object
   request.CasbinInfo:
     properties:
@@ -1479,76 +1622,6 @@
       pos:
         description: 鐢ㄦ埛宀椾綅
         type: string
-    type: object
-  request.Client:
-    properties:
-      business_scope:
-        description: 缁忚惀鑼冨洿
-        type: string
-      city_id:
-        type: integer
-      client_level_id:
-        description: 瀹㈡埛绛夌骇ID
-        type: integer
-      client_origin_id:
-        description: 瀹㈡埛鏉ユ簮ID
-        type: integer
-      client_status_id:
-        description: 瀹㈡埛鐘舵�両D
-        type: integer
-      client_type_id:
-        description: 瀹㈡埛绫诲瀷ID
-        type: integer
-      contact:
-        $ref: '#/definitions/request.Contact'
-      country_id:
-        type: integer
-      detail_address:
-        description: 璇︾粏鍦板潃
-        type: string
-      enterprise_nature_id:
-        description: 浼佷笟鎬ц川
-        type: integer
-      enterprise_scale_id:
-        description: 浼佷笟瑙勬ā
-        type: integer
-      industry_id:
-        description: 鎵�灞炶涓�
-        type: integer
-      latest_service_time:
-        description: 鏈�鏅氭湇鍔℃椂闂�
-        type: string
-      member_id:
-        description: 閿�鍞礋璐d汉ID
-        type: integer
-      name:
-        description: 鍏徃鍚嶇О
-        type: string
-      next_visit_time:
-        description: 涓嬫鍥炶鏃堕棿
-        type: string
-      number:
-        description: 鍏徃缂栧彿
-        type: string
-      province_id:
-        type: integer
-      region_id:
-        type: integer
-      registered_capital_id:
-        description: 娉ㄥ唽璧勯噾
-        type: integer
-      registration_time:
-        description: 娉ㄥ唽鏃堕棿
-        type: string
-      remark:
-        description: 澶囨敞
-        type: string
-      representative:
-        description: 娉曚汉浠h〃
-        type: string
-      service_member_id:
-        description: 鏈嶅姟璐熻矗浜篒D
-        type: integer
     type: object
   request.Contact:
     properties:
@@ -1838,21 +1911,6 @@
         description: 鍦板尯ID鍒楄〃
         items:
           type: integer
-        type: array
-    type: object
-  request.SubOrder:
-    properties:
-      clientId:
-        type: integer
-      masterOrderId:
-        type: integer
-      memberId:
-        type: integer
-      number:
-        type: string
-      product:
-        items:
-          $ref: '#/definitions/model.Product'
         type: array
     type: object
   request.UpdateCities:
@@ -2202,7 +2260,7 @@
       member_id:
         type: integer
       money:
-        type: string
+        type: number
       number:
         type: string
       start_time:
@@ -2370,6 +2428,8 @@
         type: integer
       currency:
         type: integer
+      detail_address:
+        type: string
       disadvantages:
         type: string
       expected_time:
@@ -2402,6 +2462,8 @@
         type: integer
       regular_customers_id:
         type: integer
+      remark:
+        type: string
       sale_stage_id:
         type: integer
       sale_type_id:
@@ -2510,26 +2572,10 @@
     type: object
   request.UpdateSalesReturnRequest:
     properties:
-      clientId:
-        type: integer
       id:
         type: integer
-      memberId:
-        type: integer
-      number:
-        type: string
-      products:
-        items:
-          $ref: '#/definitions/model.Product'
-        type: array
-      reason:
-        type: string
-      repository:
-        type: string
-      returnDate:
-        type: string
-      status:
-        type: integer
+      salesReturn:
+        $ref: '#/definitions/request.SalesReturn'
     type: object
   request.UpdateSalesSources:
     properties:
@@ -2547,6 +2593,25 @@
         items:
           $ref: '#/definitions/request.UpdateSalesSources'
         type: array
+    type: object
+  request.UpdateSatisfaction:
+    properties:
+      id:
+        type: integer
+      name:
+        type: string
+    required:
+    - id
+    - name
+    type: object
+  request.UpdateSatisfactions:
+    properties:
+      satisfactions:
+        items:
+          $ref: '#/definitions/request.UpdateSatisfaction'
+        type: array
+    required:
+    - satisfactions
     type: object
   request.UpdateServiceContract:
     properties:
@@ -2589,20 +2654,77 @@
     type: object
   request.UpdateServiceFeeManage:
     properties:
-      client:
-        $ref: '#/definitions/request.Client'
-      client_id:
+      business_scope:
+        description: 缁忚惀鑼冨洿
+        type: string
+      city_id:
+        type: integer
+      client_level_id:
+        description: 瀹㈡埛绛夌骇ID
+        type: integer
+      client_origin_id:
+        description: 瀹㈡埛鏉ユ簮ID
+        type: integer
+      client_status_id:
+        description: 瀹㈡埛鐘舵�両D
+        type: integer
+      client_type_id:
+        description: 瀹㈡埛绫诲瀷ID
+        type: integer
+      contact:
+        $ref: '#/definitions/request.Contact'
+      country_id:
+        type: integer
+      detail_address:
+        description: 璇︾粏鍦板潃
+        type: string
+      enterprise_nature_id:
+        description: 浼佷笟鎬ц川
+        type: integer
+      enterprise_scale_id:
+        description: 浼佷笟瑙勬ā
         type: integer
       file:
         type: string
       id:
         type: integer
+      industry_id:
+        description: 鎵�灞炶涓�
+        type: integer
       latest_date:
+        type: string
+      latest_service_time:
+        description: 鏈�鏅氭湇鍔℃椂闂�
         type: string
       member_id:
         type: integer
+      name:
+        description: 鍏徃鍚嶇О
+        type: string
+      next_visit_time:
+        description: 涓嬫鍥炶鏃堕棿
+        type: string
+      number:
+        description: 鍏徃缂栧彿
+        type: string
+      province_id:
+        type: integer
+      region_id:
+        type: integer
+      registered_capital_id:
+        description: 娉ㄥ唽璧勯噾
+        type: integer
+      registration_time:
+        description: 娉ㄥ唽鏃堕棿
+        type: string
       remark:
         type: string
+      representative:
+        description: 娉曚汉浠h〃
+        type: string
+      service_member_id:
+        description: 鏈嶅姟璐熻矗浜篒D
+        type: integer
     type: object
   request.UpdateServiceFollowup:
     properties:
@@ -2979,11 +3101,25 @@
           $ref: '#/definitions/model.SalesRefund'
         type: array
     type: object
+  response.SalesReturnResponse:
+    properties:
+      list:
+        items:
+          $ref: '#/definitions/model.SalesReturn'
+        type: array
+    type: object
   response.SalesSourceResponse:
     properties:
       list:
         items:
           $ref: '#/definitions/model.SalesSources'
+        type: array
+    type: object
+  response.SatisfactionResponse:
+    properties:
+      list:
+        items:
+          $ref: '#/definitions/model.Satisfaction'
         type: array
     type: object
   response.ServiceContractsResponse:
@@ -5463,11 +5599,16 @@
         "200":
           description: OK
           schema:
-            $ref: '#/definitions/contextx.Response'
+            allOf:
+            - $ref: '#/definitions/contextx.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.SalesReturnResponse'
+              type: object
       summary: 鑾峰彇閿�鍞��璐у垪琛�
       tags:
       - SalesReturn
-  /api/salesReturn/update/{id}:
+  /api/salesReturn/update:
     put:
       parameters:
       - description: 鏌ヨ鍙傛暟
@@ -5559,6 +5700,79 @@
       summary: 鏇存柊鍟嗘満鏉ユ簮
       tags:
       - SalesSources
+  /api/satisfaction/add:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddSatisfaction'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 娣诲姞婊℃剰搴�
+      tags:
+      - Satisfaction
+  /api/satisfaction/delete/{id}:
+    delete:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: path
+        name: id
+        required: true
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 鍒犻櫎婊℃剰搴�
+      tags:
+      - Satisfaction
+  /api/satisfaction/list:
+    get:
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            allOf:
+            - $ref: '#/definitions/contextx.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.SatisfactionResponse'
+              type: object
+      summary: 婊℃剰搴﹀垪琛�
+      tags:
+      - Satisfaction
+  /api/satisfaction/update:
+    put:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.UpdateSatisfactions'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 鏇存柊婊℃剰搴�
+      tags:
+      - Satisfaction
   /api/serviceContract/add:
     post:
       parameters:
@@ -6074,4 +6288,23 @@
       summary: 璁剧疆鐢ㄦ埛淇℃伅
       tags:
       - User
+  /api/vetting/add:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddVetting'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 娣诲姞瀹℃壒
+      tags:
+      - Vetting
 swagger: "2.0"

--
Gitblit v1.8.0