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 |  321 ++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 244 insertions(+), 77 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 3d51f94..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:
@@ -654,6 +656,8 @@
         type: string
       addressee:
         type: string
+      client:
+        $ref: '#/definitions/model.Client'
       clientId:
         type: integer
       conditions:
@@ -781,6 +785,13 @@
       name:
         type: string
     type: object
+  model.Satisfaction:
+    properties:
+      id:
+        type: integer
+      name:
+        type: string
+    type: object
   model.ServiceContract:
     properties:
       clientId:
@@ -872,6 +883,8 @@
     type: object
   model.SubOrder:
     properties:
+      client:
+        $ref: '#/definitions/model.Client'
       clientId:
         type: integer
       id:
@@ -1383,6 +1396,13 @@
     required:
     - name
     type: object
+  request.AddSatisfaction:
+    properties:
+      name:
+        type: string
+    required:
+    - name
+    type: object
   request.AddServiceContract:
     properties:
       clientId:
@@ -1422,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:
@@ -1541,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:
@@ -2583,6 +2594,25 @@
           $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:
       clientId:
@@ -2624,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:
@@ -3026,6 +3113,13 @@
       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:
@@ -5606,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:

--
Gitblit v1.8.0