| | |
| | | // @Tags 位置 |
| | | // @Summary 获取位置列表 |
| | | // @Produce application/json |
| | | // @Param object body request.GetProductList true "查询参数" |
| | | // @Param object body request.GetLocationList true "查询参数" |
| | | // @Success 200 {object} util.ResponseList{data=[]models.Location} "成功" |
| | | // @Router /api-wms/v1/location/getLocationList [post] |
| | | func (slf LocationController) GetLocationList(c *gin.Context) { |
| | |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetProductList" |
| | | "$ref": "#/definitions/request.GetLocationList" |
| | | } |
| | | } |
| | | ], |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.GetLocationList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "jointName": { |
| | | "description": "拼接名称", |
| | | "type": "string" |
| | | }, |
| | | "keyWord": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "type": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.GetProductList": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetProductList" |
| | | "$ref": "#/definitions/request.GetLocationList" |
| | | } |
| | | } |
| | | ], |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.GetLocationList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "jointName": { |
| | | "description": "拼接名称", |
| | | "type": "string" |
| | | }, |
| | | "keyWord": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "type": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.GetProductList": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | wareHouseCode: |
| | | type: string |
| | | type: object |
| | | request.GetLocationList: |
| | | properties: |
| | | jointName: |
| | | description: 拼接名称 |
| | | type: string |
| | | keyWord: |
| | | type: string |
| | | page: |
| | | description: 页码 |
| | | type: integer |
| | | pageSize: |
| | | description: 每页大小 |
| | | type: integer |
| | | type: |
| | | type: integer |
| | | type: object |
| | | request.GetProductList: |
| | | properties: |
| | | categoryId: |
| | |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.GetProductList' |
| | | $ref: '#/definitions/request.GetLocationList' |
| | | produces: |
| | | - application/json |
| | | responses: |