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

---
 docs/swagger.yaml |  129 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 129 insertions(+), 0 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index f9dc27a..83d99fd 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -266,6 +266,23 @@
       wechat:
         type: string
     type: object
+  model.Contract:
+    properties:
+      clientId:
+        type: integer
+      file:
+        type: string
+      id:
+        type: integer
+      memberId:
+        type: integer
+      number:
+        type: string
+      quotationId:
+        type: integer
+      statusId:
+        type: integer
+    type: object
   model.Country:
     properties:
       id:
@@ -846,6 +863,21 @@
       wechat:
         description: 寰俊鍙�
         type: string
+    type: object
+  request.AddContract:
+    properties:
+      client_id:
+        type: integer
+      file:
+        type: string
+      member_id:
+        type: integer
+      number:
+        type: string
+      quotation_id:
+        type: integer
+      status_id:
+        type: integer
     type: object
   request.AddCountry:
     properties:
@@ -1607,6 +1639,23 @@
         description: 寰俊鍙�
         type: string
     type: object
+  request.UpdateContract:
+    properties:
+      client_id:
+        type: integer
+      file:
+        type: string
+      id:
+        type: integer
+      member_id:
+        type: integer
+      number:
+        type: string
+      quotation_id:
+        type: integer
+      status_id:
+        type: integer
+    type: object
   request.UpdateCountry:
     properties:
       id:
@@ -2088,6 +2137,13 @@
       list:
         items:
           $ref: '#/definitions/model.ContactDetail'
+        type: array
+    type: object
+  response.ContractResponse:
+    properties:
+      list:
+        items:
+          $ref: '#/definitions/model.Contract'
         type: array
     type: object
   response.CountryResponse:
@@ -2821,6 +2877,79 @@
       summary: 鏇存柊鑱旂郴浜�
       tags:
       - Contact
+  /api/contract/add:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddContract'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 娣诲姞鍚堝悓
+      tags:
+      - Contract
+  /api/contract/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:
+      - Contract
+  /api/contract/list:
+    get:
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            allOf:
+            - $ref: '#/definitions/contextx.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.ContractResponse'
+              type: object
+      summary: 鑾峰彇鍚堝悓鍒楄〃
+      tags:
+      - Contract
+  /api/contract/update:
+    put:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.UpdateContract'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 鏇存柊鍚堝悓
+      tags:
+      - Contract
   /api/country/add:
     post:
       parameters:

--
Gitblit v1.8.0