From 0ddbf564f6e2a33c4f73141423ad0905da4278d0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 19 四月 2024 16:36:33 +0800
Subject: [PATCH] 增加查询字段接口,保存字典接口

---
 docs/swagger.yaml |  632 ++++++++++-----------------------------------------------
 1 files changed, 112 insertions(+), 520 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index de94251..1bcaf08 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -393,20 +393,8 @@
         description: 鏍堝悕
         type: string
     type: object
-  constvar.BoolType:
+  constvar.MiniDictType:
     enum:
-    - 1
-    - 2
-    type: integer
-    x-enum-comments:
-      BoolTypeFalse: "false"
-      BoolTypeTrue: "true"
-    x-enum-varnames:
-    - BoolTypeTrue
-    - BoolTypeFalse
-  constvar.OutsourcingOrderStatus:
-    enum:
-    - 0
     - 1
     - 2
     - 3
@@ -414,31 +402,23 @@
     - 5
     - 6
     - 7
-    - 8
-    - 9
     type: integer
     x-enum-comments:
-      OutsourcingOrderStatusAssigned: 宸插垎閰嶅澶栧晢
-      OutsourcingOrderStatusClose: 鍏抽棴
-      OutsourcingOrderStatusCreate: 鏂板缓寰呭垎閰嶅澶栧晢
-      OutsourcingOrderStatusDeliveryFinish: 鍙戣揣瀹屾垚
-      OutsourcingOrderStatusFinish: 鐢熶骇瀹屾垚
-      OutsourcingOrderStatusMaterialApplying: 鐗╂枡鐢宠涓�/寰呴鏂欏鏍�
-      OutsourcingOrderStatusMaterialExamineRefused: 棰嗘枡瀹℃牳鎷掔粷
-      OutsourcingOrderStatusProducing: 鐢熶骇涓�
-      OutsourcingOrderStatusReceiveFinish: 鏀惰揣瀹屾垚
-      OutsourcingOrderStatusWaitProduce: 寰呯敓浜�
+      EarlyWarningDay: 棰勮澶╂暟
+      InspectionWayType: 璐ㄦ鏂瑰紡绫诲瀷
+      MiniDictTypeBomVersionType: Bom鐗堟湰绫诲瀷
+      MiniDictTypePlcBrand: PLC鍝佺墝
+      OutsourcingSupplierCreditGrade: 淇$敤绛夌骇
+      OutsourcingSupplierRange: 渚涜揣鑼冨洿
+      OutsourcingSupplierType: 濮斿渚涘簲鍟嗙被鍨�
     x-enum-varnames:
-    - OutsourcingOrderStatusCreate
-    - OutsourcingOrderStatusAssigned
-    - OutsourcingOrderStatusWaitProduce
-    - OutsourcingOrderStatusMaterialApplying
-    - OutsourcingOrderStatusMaterialExamineRefused
-    - OutsourcingOrderStatusProducing
-    - OutsourcingOrderStatusFinish
-    - OutsourcingOrderStatusDeliveryFinish
-    - OutsourcingOrderStatusReceiveFinish
-    - OutsourcingOrderStatusClose
+    - MiniDictTypePlcBrand
+    - MiniDictTypeBomVersionType
+    - EarlyWarningDay
+    - InspectionWayType
+    - OutsourcingSupplierType
+    - OutsourcingSupplierCreditGrade
+    - OutsourcingSupplierRange
   constvar.RecordStatus:
     enum:
     - 0
@@ -468,6 +448,25 @@
       valid:
         description: Valid is true if Time is not NULL
         type: boolean
+    type: object
+  model.MiniDict:
+    properties:
+      createdAt:
+        type: string
+      deletedAt:
+        $ref: '#/definitions/gorm.DeletedAt'
+      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:
@@ -512,152 +511,6 @@
         description: 鑱旂郴鏂瑰紡
         type: string
       updatedAt:
-        type: string
-    type: object
-  models.OutsourcingOrder:
-    properties:
-      createdAt:
-        type: string
-      deletedAt:
-        $ref: '#/definitions/gorm.DeletedAt'
-      deliveryDate:
-        type: string
-      enterpriseID:
-        description: 渚涘簲鍟咺D
-        type: integer
-      enterpriseName:
-        description: 渚涘簲鍟嗗悕绉�
-        type: string
-      enterpriseType:
-        description: 渚涘簲鍟嗙被鍨�
-        type: string
-      id:
-        type: integer
-      number:
-        description: 璁㈠崟缂栧彿
-        type: string
-      productQuantity:
-        description: 浜у搧鏁伴噺
-        type: integer
-      projectId:
-        type: string
-      projectOrderID:
-        type: string
-      reason:
-        type: string
-      salesDetailsNumber:
-        type: string
-      signTime:
-        type: string
-      status:
-        allOf:
-        - $ref: '#/definitions/constvar.OutsourcingOrderStatus'
-        description: 鐘舵��
-      updatedAt:
-        type: string
-    type: object
-  models.OutsourcingOrderProduct:
-    properties:
-      amount:
-        type: integer
-      bomID:
-        type: string
-      createdAt:
-        type: string
-      deletedAt:
-        $ref: '#/definitions/gorm.DeletedAt'
-      enterpriseID:
-        description: 渚涘簲鍟咺D
-        type: integer
-      finishAmount:
-        type: integer
-      id:
-        type: integer
-      outsourcingOrderID:
-        type: integer
-      productId:
-        type: string
-      productName:
-        type: string
-      specs:
-        type: string
-      type:
-        type: string
-      unit:
-        type: string
-      updatedAt:
-        type: string
-    type: object
-  outsourcingrequest.ChangeStatus:
-    properties:
-      outsourcingOrderNumber:
-        description: 濮斿璁㈠崟缂栫爜
-        type: string
-      reason:
-        type: string
-      status:
-        $ref: '#/definitions/constvar.OutsourcingOrderStatus'
-    type: object
-  outsourcingrequest.ConfirmDeliveryList:
-    properties:
-      outsourcingOrderDeliveryDetailsIds:
-        description: 鍙戣揣璁板綍id
-        items:
-          type: integer
-        type: array
-      outsourcingOrderID:
-        description: 濮斿璁㈠崟ID
-        type: integer
-      warehouseId:
-        description: 浠撳簱id
-        type: string
-    type: object
-  outsourcingrequest.GetDeliveryList:
-    properties:
-      isReceived:
-        allOf:
-        - $ref: '#/definitions/constvar.BoolType'
-        description: 鏄惁纭鏀惰揣 1 宸茬‘璁� 2鏈‘璁� 浼�0鎴栦笉浼犺幏鍙栧叏閮�
-      outsourcingOrderID:
-        description: 濮斿璁㈠崟ID
-        type: integer
-    type: object
-  outsourcingrequest.GetInventoryInputDetails:
-    properties:
-      outsourcingOrderID:
-        description: 濮斿璁㈠崟ID
-        type: integer
-    type: object
-  outsourcingrequest.GetMaterialApplyList:
-    properties:
-      keyword:
-        description: 鍏抽敭瀛�
-        type: string
-      number:
-        description: 濮斿璁㈠崟缂栫爜
-        type: string
-      page:
-        description: 椤电爜
-        type: integer
-      pageSize:
-        description: 姣忛〉澶у皬
-        type: integer
-    type: object
-  outsourcingrequest.MaterialApply:
-    properties:
-      amount:
-        type: number
-      materialName:
-        type: string
-      materialNumber:
-        type: string
-      outsourcingOrderNumber:
-        type: string
-      specs:
-        type: string
-      type:
-        type: string
-      unit:
         type: string
     type: object
   outsourcingrequest.OutsourcingEnterprise:
@@ -714,38 +567,6 @@
       total:
         description: 鎬婚噺
         type: integer
-    type: object
-  outsourcingrequest.OutsourcingOrderAssign:
-    properties:
-      enterpriseID:
-        type: integer
-      orderID:
-        type: integer
-      orderIDs:
-        items:
-          type: integer
-        type: array
-    required:
-    - enterpriseID
-    type: object
-  outsourcingrequest.OutsourcingOrderOverview:
-    properties:
-      hasAssigned:
-        description: 宸插垎閰嶆暟閲�
-        type: integer
-      total:
-        description: 鎬婚噺
-        type: integer
-      waitAssigned:
-        description: 寰呭垎閰嶆暟閲�
-        type: integer
-    type: object
-  outsourcingrequest.SaveMaterialApply:
-    properties:
-      applyList:
-        items:
-          $ref: '#/definitions/outsourcingrequest.MaterialApply'
-        type: array
     type: object
   purchase.OrderStatus:
     enum:
@@ -1547,6 +1368,29 @@
       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
@@ -1795,6 +1639,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:
@@ -2333,46 +2232,6 @@
       summary: 浼佷笟缁熻
       tags:
       - 濮斿浼佷笟绠$悊
-  /outsourcing/enterprise/productList:
-    get:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - in: query
-        name: enterpriseID
-        required: true
-        type: integer
-      - in: query
-        name: keyword
-        type: string
-      - description: 椤电爜
-        in: query
-        name: page
-        type: integer
-      - description: 姣忛〉澶у皬
-        in: query
-        name: pageSize
-        type: integer
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            allOf:
-            - $ref: '#/definitions/utils.ResponseList'
-            - properties:
-                data:
-                  items:
-                    $ref: '#/definitions/models.OutsourcingOrderProduct'
-                  type: array
-              type: object
-      summary: 濮斿浼佷笟渚涜揣鍘嗗彶
-      tags:
-      - 濮斿浼佷笟绠$悊
   /outsourcing/enterprise/update:
     post:
       parameters:
@@ -2395,273 +2254,6 @@
           schema:
             $ref: '#/definitions/contextx.Response'
       summary: 浼佷笟淇敼
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/assign:
-    post:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - description: 鏌ヨ鍙傛暟
-        in: body
-        name: object
-        required: true
-        schema:
-          $ref: '#/definitions/outsourcingrequest.OutsourcingOrderAssign'
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            $ref: '#/definitions/contextx.Response'
-      summary: 濮斿璁㈠崟鍒嗛厤浼佷笟
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/changeStatus:
-    post:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - description: 鍙傛暟
-        in: body
-        name: object
-        required: true
-        schema:
-          $ref: '#/definitions/outsourcingrequest.ChangeStatus'
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            $ref: '#/definitions/utils.Response'
-      summary: 淇敼鐘舵��
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/confirmReceipt:
-    post:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - description: 鍙傛暟
-        in: body
-        name: object
-        required: true
-        schema:
-          $ref: '#/definitions/outsourcingrequest.ConfirmDeliveryList'
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            $ref: '#/definitions/utils.ResponseList'
-      summary: 濮斿鍏ュ簱 纭鍏ュ簱
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/deliveryList:
-    post:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - description: 鍙傛暟
-        in: body
-        name: object
-        required: true
-        schema:
-          $ref: '#/definitions/outsourcingrequest.GetDeliveryList'
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            $ref: '#/definitions/utils.ResponseList'
-      summary: 鑾峰彇鍙戣揣鍒楄〃
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/getInventoryInputDetails:
-    post:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - description: 鍙傛暟
-        in: body
-        name: object
-        required: true
-        schema:
-          $ref: '#/definitions/outsourcingrequest.GetInventoryInputDetails'
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            $ref: '#/definitions/utils.ResponseList'
-      summary: 鑾峰彇濮斿鍏ュ簱鏄庣粏
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/getMaterialApplyList:
-    post:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - description: 鍙傛暟
-        in: body
-        name: object
-        required: true
-        schema:
-          $ref: '#/definitions/outsourcingrequest.GetMaterialApplyList'
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            $ref: '#/definitions/utils.ResponseList'
-      summary: 鑾峰彇鐗╂枡鐢宠鍗�
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/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
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            allOf:
-            - $ref: '#/definitions/utils.ResponseList'
-            - properties:
-                data:
-                  items:
-                    $ref: '#/definitions/models.OutsourcingOrder'
-                  type: array
-              type: object
-      summary: 濮斿璁㈠崟鍒楄〃
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/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.OutsourcingOrderOverview'
-              type: object
-      summary: 璁㈠崟缁熻
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/productList:
-    get:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - in: query
-        name: keyword
-        type: string
-      - in: query
-        name: outsourcingOrderId
-        required: true
-        type: integer
-      - description: 椤电爜
-        in: query
-        name: page
-        type: integer
-      - description: 姣忛〉澶у皬
-        in: query
-        name: pageSize
-        type: integer
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            allOf:
-            - $ref: '#/definitions/utils.ResponseList'
-            - properties:
-                data:
-                  items:
-                    $ref: '#/definitions/models.OutsourcingOrderProduct'
-                  type: array
-              type: object
-      summary: 濮斿璁㈠崟浜у搧鍒楄〃
-      tags:
-      - 濮斿浼佷笟绠$悊
-  /outsourcing/order/saveMaterialApply:
-    post:
-      parameters:
-      - description: token
-        in: header
-        name: Authorization
-        required: true
-        type: string
-      - description: 鍙傛暟
-        in: body
-        name: object
-        required: true
-        schema:
-          $ref: '#/definitions/outsourcingrequest.SaveMaterialApply'
-      produces:
-      - application/json
-      responses:
-        "200":
-          description: 鎴愬姛
-          schema:
-            $ref: '#/definitions/utils.Response'
-      summary: 淇濆瓨鐗╂枡鐢宠鍗�
       tags:
       - 濮斿浼佷笟绠$悊
   /p/createProduct:

--
Gitblit v1.8.0