From 6dec2342316aecf4084c8f4efb43f33fbb72892f Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 09 四月 2024 14:07:43 +0800 Subject: [PATCH] 更新计量单位字典 --- docs/swagger.yaml | 75 +++++++++++++++++++++++++++++++++++-- 1 files changed, 70 insertions(+), 5 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7c2ffd4..7ffb926 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -184,6 +184,29 @@ - MaterialModeConsumables - MaterialModeOther - MaterialModeVirtual + constvar.OperationSource: + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + type: integer + x-enum-comments: + OperationSourceOutsourcing: 濮斿鍏ュ簱 + OperationSourceOutsourcingApply: 濮斿棰嗘枡 + OperationSourceProduction: 鐢熶骇鍏ュ簱 + OperationSourceProductionApply: 鐢熶骇棰嗘枡 + OperationSourcePurchase: 閲囪喘鍏ュ簱 + OperationSourceSaleDelivery: 閿�鍞彂璐� + x-enum-varnames: + - OperationSourcePurchase + - OperationSourceProduction + - OperationSourceOutsourcing + - OperationSourceProductionApply + - OperationSourceOutsourcingApply + - OperationSourceSaleDelivery constvar.OperationStatus: enum: - 1 @@ -394,6 +417,13 @@ gorm:"foreignKey:CompanyId"` //鍏徃 updateTime: type: string + warehouse: + allOf: + - $ref: '#/definitions/models.Warehouse' + description: 浠撳簱 + warehouseId: + description: 浠撳簱ID + type: integer type: object models.LogisticCompany: properties: @@ -653,6 +683,10 @@ ToLocationID int `json:"toLocationId" gorm:"type:int;not null;comment:鐩爣浣嶇疆id"` //鐩爣浣嶇疆id ToLocation Location `json:"toLocation" gorm:"foreignKey:ToLocationID;references:Id"` //鐩爣浣嶇疆 type: string + operationSource: + allOf: + - $ref: '#/definitions/constvar.OperationSource' + description: 鎿嶄綔鏉ユ簮 operationTypeId: description: 浣滀笟绫诲瀷id type: integer @@ -664,6 +698,8 @@ receiverName: type: string receiverPhone: + type: string + salesDetailsNumber: type: string source: type: string @@ -825,8 +861,6 @@ type: boolean code: description: 浠撳簱缂栫爜 - maxLength: 5 - minLength: 1 type: string company: $ref: '#/definitions/models.Company' @@ -843,7 +877,7 @@ description: 鍏ュ悜杩愯緭 type: integer locationId: - description: 浣嶇疆id + description: 榛樿浣嶇疆id type: integer name: description: 浠撳簱鍚嶇О @@ -869,8 +903,6 @@ warehouseLocation: description: 搴撳瓨浣嶇疆 type: string - required: - - code type: object request.AddCompany: properties: @@ -1331,6 +1363,20 @@ description: 姣忛〉澶у皬 type: integer productId: + type: string + type: object + request.SaveUnitDict: + properties: + data: + items: + $ref: '#/definitions/request.UnitDict' + type: array + type: object + request.UnitDict: + properties: + isDefault: + type: boolean + name: type: string type: object request.UpdateCompany: @@ -2981,6 +3027,25 @@ summary: 浜у搧鍘嗗彶鍑哄叆搴撲俊鎭� tags: - 浜у搧 + /api-wms/v1/product/saveUnitDict: + post: + parameters: + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.SaveUnitDict' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 鏇存柊璁¢噺鍗曚綅瀛楀吀 + tags: + - 鏁版嵁瀛楀吀 /api-wms/v1/product/updateDisuse: post: parameters: -- Gitblit v1.8.0