From cdb38521ea1f662b53bafb87412c38dfd0d5e11d Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 19 四月 2024 17:06:12 +0800
Subject: [PATCH] 更新文档

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

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 37c765c..5a769cb 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -393,6 +393,179 @@
         description: 鏍堝悕
         type: string
     type: object
+  constvar.MiniDictType:
+    enum:
+    - 1
+    - 2
+    - 3
+    - 4
+    - 5
+    - 6
+    - 7
+    type: integer
+    x-enum-comments:
+      EarlyWarningDay: 棰勮澶╂暟
+      InspectionWayType: 璐ㄦ鏂瑰紡绫诲瀷
+      MiniDictTypeBomVersionType: Bom鐗堟湰绫诲瀷
+      MiniDictTypePlcBrand: PLC鍝佺墝
+      OutsourcingSupplierCreditGrade: 淇$敤绛夌骇
+      OutsourcingSupplierRange: 渚涜揣鑼冨洿
+      OutsourcingSupplierType: 濮斿渚涘簲鍟嗙被鍨�
+    x-enum-varnames:
+    - MiniDictTypePlcBrand
+    - MiniDictTypeBomVersionType
+    - EarlyWarningDay
+    - InspectionWayType
+    - OutsourcingSupplierType
+    - OutsourcingSupplierCreditGrade
+    - OutsourcingSupplierRange
+  constvar.RecordStatus:
+    enum:
+    - 0
+    - 1
+    - 2
+    type: integer
+    x-enum-comments:
+      RecordStatusActive: 鍚敤
+      RecordStatusCreate: 鏂板缓
+      RecordStatusInactive: 鍋滅敤
+    x-enum-varnames:
+    - RecordStatusCreate
+    - RecordStatusActive
+    - RecordStatusInactive
+  contextx.Response:
+    properties:
+      code:
+        type: integer
+      data: {}
+      msg:
+        type: string
+    type: object
+  gorm.DeletedAt:
+    properties:
+      time:
+        type: string
+      valid:
+        description: Valid is true if Time is not NULL
+        type: boolean
+    type: object
+  model.MiniDict:
+    properties:
+      createdAt:
+        type: string
+      id:
+        type: integer
+      isDefault:
+        type: boolean
+      name:
+        type: string
+      type:
+        $ref: '#/definitions/constvar.MiniDictType'
+      updatedAt:
+        type: string
+      value:
+        type: string
+    type: object
+  models.OutsourcingEnterprise:
+    properties:
+      address:
+        description: 鍦板潃
+        type: string
+      contact:
+        description: 鑱旂郴浜�
+        type: string
+      createdAt:
+        type: string
+      creditGrade:
+        description: 淇$敤绛夌骇
+        type: string
+      deletedAt:
+        $ref: '#/definitions/gorm.DeletedAt'
+      enterpriseType:
+        description: 浼佷笟绫诲瀷
+        type: string
+      id:
+        type: integer
+      name:
+        description: 濮斿浼佷笟缂栧彿鍚嶇О
+        type: string
+      number:
+        description: 濮斿浼佷笟缂栧彿
+        type: string
+      organizationCode:
+        description: 缁勭粐鏈烘瀯浠g爜
+        type: string
+      status:
+        allOf:
+        - $ref: '#/definitions/constvar.RecordStatus'
+        description: 鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤
+      supplyCapacity:
+        description: 渚涜揣鑳藉姏
+        type: string
+      supplyRange:
+        description: 渚涜揣鑼冨洿
+        type: string
+      tel:
+        description: 鑱旂郴鏂瑰紡
+        type: string
+      updatedAt:
+        type: string
+    type: object
+  outsourcingrequest.OutsourcingEnterprise:
+    properties:
+      address:
+        description: 鍦板潃
+        type: string
+      contact:
+        description: 鑱旂郴浜�
+        type: string
+      creditGrade:
+        description: 淇$敤绛夌骇
+        type: string
+      enterpriseType:
+        description: 浼佷笟绫诲瀷
+        type: string
+      id:
+        type: integer
+      name:
+        description: 濮斿渚涘簲鍟嗙紪鍙峰悕绉�
+        type: string
+      number:
+        description: 濮斿渚涘簲鍟嗙紪鍙�
+        type: string
+      organizationCode:
+        description: 缁勭粐鏈烘瀯浠g爜
+        type: string
+      status:
+        allOf:
+        - $ref: '#/definitions/constvar.RecordStatus'
+        description: 鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤
+      supplyCapacity:
+        description: 渚涜揣鑳藉姏
+        type: string
+      supplyRange:
+        description: 渚涜揣鑼冨洿
+        type: string
+      tel:
+        description: 鑱旂郴鏂瑰紡
+        type: string
+    required:
+    - enterpriseType
+    - name
+    - number
+    type: object
+  outsourcingrequest.OutsourcingEnterpriseOverview:
+    properties:
+      close:
+        description: 鍋滅敤鏁伴噺
+        type: integer
+      open:
+        description: 鍚敤鏁伴噺
+        type: integer
+      total:
+        description: 鎬婚噺
+        type: integer
+    type: object
   purchase.OrderStatus:
     enum:
     - 1
@@ -1171,6 +1344,51 @@
       updated_at:
         type: string
     type: object
+  utils.Response:
+    properties:
+      code:
+        type: integer
+      data: {}
+      msg:
+        type: string
+    type: object
+  utils.ResponseList:
+    properties:
+      code:
+        type: integer
+      data: {}
+      msg:
+        type: string
+      page:
+        type: integer
+      pageSize:
+        type: integer
+      total:
+        type: integer
+    type: object
+  v1.GetMiniDictList:
+    properties:
+      type:
+        $ref: '#/definitions/constvar.MiniDictType'
+    type: object
+  v1.MiniDict:
+    properties:
+      isDefault:
+        type: boolean
+      name:
+        type: string
+      value:
+        type: string
+    type: object
+  v1.SaveMiniDict:
+    properties:
+      list:
+        items:
+          $ref: '#/definitions/v1.MiniDict'
+        type: array
+      type:
+        $ref: '#/definitions/constvar.MiniDictType'
+    type: object
 info:
   contact: {}
   description: This is a sample Server pets
@@ -1419,6 +1637,61 @@
       summary: 鏇存柊Contract
       tags:
       - Contract
+  /dict/getMiniDictList:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/v1.GetMiniDictList'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/utils.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/model.MiniDict'
+                  type: array
+              type: object
+      summary: 鑾峰彇杩蜂綘瀛楀吀鍒楄〃
+      tags:
+      - 鏁版嵁瀛楀吀
+  /dict/saveMiniDict:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/v1.SaveMiniDict'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/utils.Response'
+      summary: 鏇存柊杩蜂綘瀛楀吀
+      tags:
+      - 鏁版嵁瀛楀吀
   /downloadContract:
     get:
       consumes:
@@ -1858,6 +2131,129 @@
       summary: 鏇存柊Member
       tags:
       - Member
+  /outsourcing/enterprise/add:
+    post:
+      parameters:
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/outsourcingrequest.OutsourcingEnterprise'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 浼佷笟鏂板
+      tags:
+      - 濮斿浼佷笟绠$悊
+  /outsourcing/enterprise/list:
+    get:
+      parameters:
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - in: query
+        name: keyword
+        type: string
+      - description: 椤电爜
+        in: query
+        name: page
+        type: integer
+      - description: 姣忛〉澶у皬
+        in: query
+        name: pageSize
+        type: integer
+      - description: 鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤
+        enum:
+        - 0
+        - 1
+        - 2
+        in: query
+        name: status
+        type: integer
+        x-enum-comments:
+          RecordStatusActive: 鍚敤
+          RecordStatusCreate: 鏂板缓
+          RecordStatusInactive: 鍋滅敤
+        x-enum-varnames:
+        - RecordStatusCreate
+        - RecordStatusActive
+        - RecordStatusInactive
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/utils.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/models.OutsourcingEnterprise'
+                  type: array
+              type: object
+      summary: 浼佷笟鍒楄〃
+      tags:
+      - 濮斿浼佷笟绠$悊
+  /outsourcing/enterprise/overview:
+    get:
+      parameters:
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/utils.ResponseList'
+            - properties:
+                data:
+                  $ref: '#/definitions/outsourcingrequest.OutsourcingEnterpriseOverview'
+              type: object
+      summary: 浼佷笟缁熻
+      tags:
+      - 濮斿浼佷笟绠$悊
+  /outsourcing/enterprise/update:
+    post:
+      parameters:
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/outsourcingrequest.OutsourcingEnterprise'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 浼佷笟淇敼
+      tags:
+      - 濮斿浼佷笟绠$悊
   /p/createProduct:
     post:
       consumes:

--
Gitblit v1.8.0