From c950586b718ae6fc198bedf424609a4ac94cb5d1 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 04 七月 2024 18:16:07 +0800 Subject: [PATCH] 增加根据位置或仓库查询产品及库存列表 --- docs/swagger.yaml | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 6dd0214..b575f22 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -526,9 +526,7 @@ location: $ref: '#/definitions/models.Location' locationId: - description: |- - LocationProductId int `json:"locationProductId" gorm:"type:int;not null;comment:涓婃灦瑙勫垯id"` //涓婃灦瑙勫垯id - LocationProduct LocationProduct `json:"locationProduct" gorm:"foreignKey:LocationProductId;references:Id"` + description: 浣嶇疆id type: integer product: $ref: '#/definitions/models.Material' @@ -542,6 +540,8 @@ type: string updateTime: type: string + warehouseId: + type: integer type: object models.LogisticCompany: properties: @@ -1778,6 +1778,21 @@ type: integer warehouseId: description: 浠撳簱ID + type: integer + type: object + request.GetLocationProductList: + properties: + keyword: + type: string + locationId: + type: integer + page: + description: 椤电爜 + type: integer + pageSize: + description: 姣忛〉澶у皬 + type: integer + warehouseId: type: integer type: object request.GetMiniDictList: @@ -3537,6 +3552,30 @@ summary: 搴撳瓨鐩樼偣鍒楄〃 tags: - 搴撳瓨鐩樼偣 + /api-wms/v1/locationProductAmount/locationProductList: + post: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.GetLocationProductList' + - description: token + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 鑾峰彇浣嶇疆瀵瑰簲浜у搧鍒楄〃 + tags: + - 搴撳瓨鐩樼偣 /api-wms/v1/locationProductAmount/update: post: parameters: -- Gitblit v1.8.0