From 0ddbf564f6e2a33c4f73141423ad0905da4278d0 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 19 四月 2024 16:36:33 +0800 Subject: [PATCH] 增加查询字段接口,保存字典接口 --- docs/docs.go | 968 ++++++++++---------------------------------------------- 1 files changed, 170 insertions(+), 798 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index faba80d..baca9f2 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -417,6 +417,95 @@ } } }, + "/dict/getMiniDictList": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏁版嵁瀛楀吀" + ], + "summary": "鑾峰彇杩蜂綘瀛楀吀鍒楄〃", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.GetMiniDictList" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/utils.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.MiniDict" + } + } + } + } + ] + } + } + } + } + }, + "/dict/saveMiniDict": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏁版嵁瀛楀吀" + ], + "summary": "鏇存柊杩蜂綘瀛楀吀", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SaveMiniDict" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/utils.Response" + } + } + } + } + }, "/downloadContract": { "get": { "security": [ @@ -1298,72 +1387,6 @@ } } }, - "/outsourcing/enterprise/productList": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "濮斿浼佷笟渚涜揣鍘嗗彶", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "type": "integer", - "name": "enterpriseID", - "in": "query", - "required": true - }, - { - "type": "string", - "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/utils.ResponseList" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/models.OutsourcingOrderProduct" - } - } - } - } - ] - } - } - } - } - }, "/outsourcing/enterprise/update": { "post": { "produces": [ @@ -1396,431 +1419,6 @@ "description": "鎴愬姛", "schema": { "$ref": "#/definitions/contextx.Response" - } - } - } - } - }, - "/outsourcing/order/assign": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "濮斿璁㈠崟鍒嗛厤浼佷笟", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "鏌ヨ鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/outsourcingrequest.OutsourcingOrderAssign" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/contextx.Response" - } - } - } - } - }, - "/outsourcing/order/changeStatus": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "淇敼鐘舵��", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/outsourcingrequest.ChangeStatus" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/utils.Response" - } - } - } - } - }, - "/outsourcing/order/confirmReceipt": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "濮斿鍏ュ簱 纭鍏ュ簱", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/outsourcingrequest.ConfirmDeliveryList" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/utils.ResponseList" - } - } - } - } - }, - "/outsourcing/order/deliveryList": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "鑾峰彇鍙戣揣鍒楄〃", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/outsourcingrequest.GetDeliveryList" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/utils.ResponseList" - } - } - } - } - }, - "/outsourcing/order/getInventoryInputDetails": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "鑾峰彇濮斿鍏ュ簱鏄庣粏", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/outsourcingrequest.GetInventoryInputDetails" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/utils.ResponseList" - } - } - } - } - }, - "/outsourcing/order/getMaterialApplyList": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "鑾峰彇鐗╂枡鐢宠鍗�", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/outsourcingrequest.GetMaterialApplyList" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/utils.ResponseList" - } - } - } - } - }, - "/outsourcing/order/list": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "濮斿璁㈠崟鍒楄〃", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "type": "string", - "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/utils.ResponseList" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/models.OutsourcingOrder" - } - } - } - } - ] - } - } - } - } - }, - "/outsourcing/order/overview": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "璁㈠崟缁熻", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/utils.ResponseList" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/outsourcingrequest.OutsourcingOrderOverview" - } - } - } - ] - } - } - } - } - }, - "/outsourcing/order/productList": { - "get": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "濮斿璁㈠崟浜у搧鍒楄〃", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "type": "string", - "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "name": "outsourcingOrderId", - "in": "query", - "required": true - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/utils.ResponseList" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/models.OutsourcingOrderProduct" - } - } - } - } - ] - } - } - } - } - }, - "/outsourcing/order/saveMaterialApply": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "濮斿浼佷笟绠$悊" - ], - "summary": "淇濆瓨鐗╂枡鐢宠鍗�", - "parameters": [ - { - "type": "string", - "description": "token", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/outsourcingrequest.SaveMaterialApply" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/utils.Response" } } } @@ -4663,58 +4261,34 @@ } } }, - "constvar.BoolType": { + "constvar.MiniDictType": { "type": "integer", "enum": [ - 1, - 2 - ], - "x-enum-comments": { - "BoolTypeFalse": "false", - "BoolTypeTrue": "true" - }, - "x-enum-varnames": [ - "BoolTypeTrue", - "BoolTypeFalse" - ] - }, - "constvar.OutsourcingOrderStatus": { - "type": "integer", - "enum": [ - 0, 1, 2, 3, 4, 5, 6, - 7, - 8, - 9 + 7 ], "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": { @@ -4756,6 +4330,35 @@ "valid": { "description": "Valid is true if Time is not NULL", "type": "boolean" + } + } + }, + "model.MiniDict": { + "type": "object", + "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" } } }, @@ -4820,225 +4423,6 @@ "type": "string" }, "updatedAt": { - "type": "string" - } - } - }, - "models.OutsourcingOrder": { - "type": "object", - "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": { - "description": "鐘舵��", - "allOf": [ - { - "$ref": "#/definitions/constvar.OutsourcingOrderStatus" - } - ] - }, - "updatedAt": { - "type": "string" - } - } - }, - "models.OutsourcingOrderProduct": { - "type": "object", - "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" - } - } - }, - "outsourcingrequest.ChangeStatus": { - "type": "object", - "properties": { - "outsourcingOrderNumber": { - "description": "濮斿璁㈠崟缂栫爜", - "type": "string" - }, - "reason": { - "type": "string" - }, - "status": { - "$ref": "#/definitions/constvar.OutsourcingOrderStatus" - } - } - }, - "outsourcingrequest.ConfirmDeliveryList": { - "type": "object", - "properties": { - "outsourcingOrderDeliveryDetailsIds": { - "description": "鍙戣揣璁板綍id", - "type": "array", - "items": { - "type": "integer" - } - }, - "outsourcingOrderID": { - "description": "濮斿璁㈠崟ID", - "type": "integer" - }, - "warehouseId": { - "description": "浠撳簱id", - "type": "string" - } - } - }, - "outsourcingrequest.GetDeliveryList": { - "type": "object", - "properties": { - "isReceived": { - "description": "鏄惁纭鏀惰揣 1 宸茬‘璁� 2鏈‘璁� 浼�0鎴栦笉浼犺幏鍙栧叏閮�", - "allOf": [ - { - "$ref": "#/definitions/constvar.BoolType" - } - ] - }, - "outsourcingOrderID": { - "description": "濮斿璁㈠崟ID", - "type": "integer" - } - } - }, - "outsourcingrequest.GetInventoryInputDetails": { - "type": "object", - "properties": { - "outsourcingOrderID": { - "description": "濮斿璁㈠崟ID", - "type": "integer" - } - } - }, - "outsourcingrequest.GetMaterialApplyList": { - "type": "object", - "properties": { - "keyword": { - "description": "鍏抽敭瀛�", - "type": "string" - }, - "number": { - "description": "濮斿璁㈠崟缂栫爜", - "type": "string" - }, - "page": { - "description": "椤电爜", - "type": "integer" - }, - "pageSize": { - "description": "姣忛〉澶у皬", - "type": "integer" - } - } - }, - "outsourcingrequest.MaterialApply": { - "type": "object", - "properties": { - "amount": { - "type": "number" - }, - "materialName": { - "type": "string" - }, - "materialNumber": { - "type": "string" - }, - "outsourcingOrderNumber": { - "type": "string" - }, - "specs": { - "type": "string" - }, - "type": { - "type": "string" - }, - "unit": { "type": "string" } } @@ -5118,54 +4502,6 @@ "total": { "description": "鎬婚噺", "type": "integer" - } - } - }, - "outsourcingrequest.OutsourcingOrderAssign": { - "type": "object", - "required": [ - "enterpriseID" - ], - "properties": { - "enterpriseID": { - "type": "integer" - }, - "orderID": { - "type": "integer" - }, - "orderIDs": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, - "outsourcingrequest.OutsourcingOrderOverview": { - "type": "object", - "properties": { - "hasAssigned": { - "description": "宸插垎閰嶆暟閲�", - "type": "integer" - }, - "total": { - "description": "鎬婚噺", - "type": "integer" - }, - "waitAssigned": { - "description": "寰呭垎閰嶆暟閲�", - "type": "integer" - } - } - }, - "outsourcingrequest.SaveMaterialApply": { - "type": "object", - "properties": { - "applyList": { - "type": "array", - "items": { - "$ref": "#/definitions/outsourcingrequest.MaterialApply" - } } } }, @@ -6328,6 +5664,42 @@ "type": "integer" } } + }, + "v1.GetMiniDictList": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/constvar.MiniDictType" + } + } + }, + "v1.MiniDict": { + "type": "object", + "properties": { + "isDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "v1.SaveMiniDict": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.MiniDict" + } + }, + "type": { + "$ref": "#/definitions/constvar.MiniDictType" + } + } } }, "securityDefinitions": { -- Gitblit v1.8.0