From 624d15a1baedef4b872dfea64331532c9ef31b4e Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 21 七月 2023 13:43:59 +0800
Subject: [PATCH] add

---
 docs/swagger.yaml |  154 +++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 136 insertions(+), 18 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 099f6ba..1520f1c 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1,21 +1,4 @@
 definitions:
-  constvar.CurrencyType:
-    enum:
-    - 1
-    - 2
-    - 3
-    - 4
-    type: integer
-    x-enum-comments:
-      CurrencyTypeCNY: 浜烘皯甯�
-      CurrencyTypeEUR: 娆у厓
-      CurrencyTypeGBP: 鑻遍晳
-      CurrencyTypeUSD: 缇庡厓
-    x-enum-varnames:
-    - CurrencyTypeCNY
-    - CurrencyTypeUSD
-    - CurrencyTypeEUR
-    - CurrencyTypeGBP
   constvar.SalesStatus:
     enum:
     - 1
@@ -327,6 +310,13 @@
           $ref: '#/definitions/model.Province'
         type: array
     type: object
+  model.Currency:
+    properties:
+      id:
+        type: integer
+      name:
+        type: string
+    type: object
   model.CustomerServiceSheet:
     properties:
       handleStatus:
@@ -634,7 +624,7 @@
       country_id:
         type: integer
       currency:
-        $ref: '#/definitions/constvar.CurrencyType'
+        type: integer
       detail_address:
         type: string
       disadvantages:
@@ -965,6 +955,13 @@
       name:
         type: string
     type: object
+  model.Status:
+    properties:
+      id:
+        type: integer
+      name:
+        type: string
+    type: object
   model.SubOrder:
     properties:
       client:
@@ -1210,6 +1207,13 @@
       name:
         description: 鍥藉鍚嶇О
         type: string
+    type: object
+  request.AddCurrency:
+    properties:
+      name:
+        type: string
+    required:
+    - name
     type: object
   request.AddCustomerServiceSheet:
     properties:
@@ -2354,6 +2358,25 @@
         description: 鍥藉鍚嶇О
         type: string
     type: object
+  request.UpdateCurrency:
+    properties:
+      id:
+        type: integer
+      name:
+        type: string
+    required:
+    - id
+    - name
+    type: object
+  request.UpdateCurrencys:
+    properties:
+      currency:
+        items:
+          $ref: '#/definitions/request.UpdateCurrency'
+        type: array
+    required:
+    - currency
+    type: object
   request.UpdateCustomerServiceSheet:
     properties:
       handleStatus:
@@ -3292,6 +3315,13 @@
           $ref: '#/definitions/model.Country'
         type: array
     type: object
+  response.CurrencyResponse:
+    properties:
+      list:
+        items:
+          $ref: '#/definitions/model.Currency'
+        type: array
+    type: object
   response.DataResponse:
     properties:
       accountId:
@@ -3328,6 +3358,11 @@
         description: 鍥藉鏁版嵁
         items:
           $ref: '#/definitions/model.Country'
+        type: array
+      currency:
+        description: 甯佺
+        items:
+          $ref: '#/definitions/model.Currency'
         type: array
       department:
         description: 閮ㄩ棬
@@ -3368,6 +3403,11 @@
         description: 宸ュ崟绫诲瀷
         items:
           $ref: '#/definitions/model.OrderType'
+        type: array
+      possibility:
+        description: 鍙兘鎬�
+        items:
+          $ref: '#/definitions/model.Possibility'
         type: array
       province:
         description: 鐪佷唤鏁版嵁
@@ -3448,6 +3488,11 @@
         description: 瑙e喅鐜�
         items:
           $ref: '#/definitions/model.SolveRate'
+        type: array
+      status:
+        description: 鐘舵��
+        items:
+          $ref: '#/definitions/model.Status'
         type: array
       timely_rate:
         description: 鍙婃椂鐜�
@@ -4590,6 +4635,79 @@
       summary: 鏇存柊鍥藉
       tags:
       - Country
+  /api/currency/add:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddCurrency'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 娣诲姞甯佺
+      tags:
+      - Currency
+  /api/currency/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:
+      - Currency
+  /api/currency/list:
+    get:
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            allOf:
+            - $ref: '#/definitions/contextx.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.CurrencyResponse'
+              type: object
+      summary: 鑾峰彇甯佺鍒楄〃
+      tags:
+      - Currency
+  /api/currency/update:
+    put:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.UpdateCurrencys'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 鏇存柊甯佺
+      tags:
+      - Currency
   /api/customerServiceSheet/add:
     post:
       parameters:

--
Gitblit v1.8.0