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 |  119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 119 insertions(+), 0 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index afe66fa..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:
@@ -1377,6 +1390,13 @@
         $ref: '#/definitions/request.SalesReturn'
     type: object
   request.AddSalesSources:
+    properties:
+      name:
+        type: string
+    required:
+    - name
+    type: object
+  request.AddSatisfaction:
     properties:
       name:
         type: string
@@ -2574,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:
@@ -3074,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:
@@ -5654,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