| | |
| | | // @Produce application/json |
| | | // @Param object body request.AddOperationType true "作业类型信息" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-wms/v1/warehouse/operationType [post] |
| | | // @Router /api-wms/v1/operationType/operationType [post] |
| | | func (slf OperationTypeController) Add(c *gin.Context) { |
| | | var reqParams request.AddOperationType |
| | | var params models.OperationType |
| | |
| | | // @Param object body request.UpdateOperationType true "作业类型信息" |
| | | // @Param id path string true "作业类型id" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-wms/v1/warehouse/operationType/{id} [put] |
| | | // @Router /api-wms/v1/operationType/operationType/{id} [put] |
| | | func (slf OperationTypeController) Update(c *gin.Context) { |
| | | id := cast.ToUint(c.Param("id")) |
| | | if id == 0 { |
| | |
| | | // @Produce application/json |
| | | // @Param object query request.GetOperationTypeList true "查询参数" |
| | | // @Success 200 {object} util.ResponseList{data=[]models.OperationType} "成功" |
| | | // @Router /api-wms/v1/warehouse/operationType [get] |
| | | // @Router /api-wms/v1/operationType/operationType [get] |
| | | func (slf OperationTypeController) List(c *gin.Context) { |
| | | var params request.GetOperationTypeList |
| | | if err := c.ShouldBindQuery(¶ms); err != nil { |
| | |
| | | // @Produce application/json |
| | | // @Param id path string true "作业类型id" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-wms/v1/warehouse/operationType/{id} [delete] |
| | | // @Router /api-wms/v1/operationType/operationType/{id} [delete] |
| | | func (slf OperationTypeController) Delete(c *gin.Context) { |
| | | id := cast.ToUint(c.Param("id")) |
| | | if id == 0 { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operationType/operationType": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "查询作业类型列表", |
| | | "parameters": [ |
| | | { |
| | | "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/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OperationType" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "添加作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddOperationType" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operationType/operationType/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "编辑作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateOperationType" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "删除作业类型", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/addProduct": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "schema": { |
| | | "$ref": "#/definitions/models.ProductCategory" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/operationType": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "查询作业类型列表", |
| | | "parameters": [ |
| | | { |
| | | "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/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OperationType" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "添加作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddOperationType" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/operationType/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "编辑作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateOperationType" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "删除作业类型", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "是否购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | |
| | | "maxLength": 5, |
| | | "minLength": 1 |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | | "type": "integer" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operationType/operationType": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "查询作业类型列表", |
| | | "parameters": [ |
| | | { |
| | | "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/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OperationType" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "添加作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddOperationType" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operationType/operationType/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "编辑作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateOperationType" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "删除作业类型", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/addProduct": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "schema": { |
| | | "$ref": "#/definitions/models.ProductCategory" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/operationType": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "查询作业类型列表", |
| | | "parameters": [ |
| | | { |
| | | "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/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OperationType" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "添加作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddOperationType" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/operationType/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "编辑作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateOperationType" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "删除作业类型", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "是否购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | |
| | | "maxLength": 5, |
| | | "minLength": 1 |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | | "type": "integer" |
| | |
| | | active: |
| | | description: 是否启用,传true就行 |
| | | type: boolean |
| | | address: |
| | | description: 地址 |
| | | type: string |
| | | buyToResupply: |
| | | description: 是否购买补给,已购买产品能够发送到此仓库 |
| | | type: boolean |
| | |
| | | type: string |
| | | id: |
| | | type: integer |
| | | inboundTransportation: |
| | | description: 入向运输 |
| | | type: integer |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | | outboundTransportation: |
| | | description: 出库运输 |
| | | type: integer |
| | | partnerId: |
| | | description: 合作伙伴id |
| | | type: integer |
| | |
| | | active: |
| | | description: 是否启用,传true就行 |
| | | type: boolean |
| | | address: |
| | | description: 地址 |
| | | type: string |
| | | buyToResupply: |
| | | description: 购买补给,已购买产品能够发送到此仓库 |
| | | type: boolean |
| | |
| | | maxLength: 5 |
| | | minLength: 1 |
| | | type: string |
| | | inboundTransportation: |
| | | description: 入向运输 |
| | | type: integer |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | | outboundTransportation: |
| | | description: 出库运输 |
| | | type: integer |
| | | partnerId: |
| | | description: 合作伙伴id |
| | | type: integer |
| | |
| | | active: |
| | | description: 是否启用,传true就行 |
| | | type: boolean |
| | | address: |
| | | description: 地址 |
| | | type: string |
| | | buyToResupply: |
| | | description: 购买补给,已购买产品能够发送到此仓库 |
| | | type: boolean |
| | |
| | | type: string |
| | | id: |
| | | type: integer |
| | | inboundTransportation: |
| | | description: 入向运输 |
| | | type: integer |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | | outboundTransportation: |
| | | description: 出库运输 |
| | | type: integer |
| | | partnerId: |
| | | description: 合作伙伴id |
| | | type: integer |
| | |
| | | summary: 修改入库/出库信息 |
| | | tags: |
| | | - 入库/出库 |
| | | /api-wms/v1/operationType/operationType: |
| | | get: |
| | | parameters: |
| | | - 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/util.ResponseList' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/models.OperationType' |
| | | type: array |
| | | type: object |
| | | summary: 查询作业类型列表 |
| | | tags: |
| | | - 作业类型 |
| | | post: |
| | | parameters: |
| | | - description: 作业类型信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddOperationType' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 添加作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | /api-wms/v1/operationType/operationType/{id}: |
| | | delete: |
| | | parameters: |
| | | - description: 作业类型id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 删除作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | put: |
| | | parameters: |
| | | - description: 作业类型信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateOperationType' |
| | | - description: 作业类型id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 编辑作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | /api-wms/v1/product/addProduct: |
| | | post: |
| | | parameters: |
| | |
| | | summary: 修改产品类型 |
| | | tags: |
| | | - 产品类型 |
| | | /api-wms/v1/warehouse/operationType: |
| | | get: |
| | | parameters: |
| | | - 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/util.ResponseList' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/models.OperationType' |
| | | type: array |
| | | type: object |
| | | summary: 查询作业类型列表 |
| | | tags: |
| | | - 作业类型 |
| | | post: |
| | | parameters: |
| | | - description: 作业类型信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddOperationType' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 添加作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | /api-wms/v1/warehouse/operationType/{id}: |
| | | delete: |
| | | parameters: |
| | | - description: 作业类型id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 删除作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | put: |
| | | parameters: |
| | | - description: 作业类型信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateOperationType' |
| | | - description: 作业类型id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 编辑作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | /api-wms/v1/warehouse/warehouse: |
| | | get: |
| | | parameters: |
| | |
| | | // Warehouse 仓库 |
| | | Warehouse struct { |
| | | WmsModel |
| | | Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` |
| | | Name string `json:"name" gorm:"index;type:varchar(255);not null;comment:仓库名称"` //仓库名称 |
| | | Active bool `json:"active" gorm:"type:tinyint(1);not null;comment:是否激活"` //是否启用,传true就行 |
| | | Code string `json:"code" binding:"required,min=1,max=5" gorm:"index;type:varchar(255);not null;comment:仓库编码"` //仓库编码 |
| | | PartnerID int `json:"partnerId" gorm:"type:int;not null;comment:合作伙伴id"` //合作伙伴id |
| | | BuyToResupply bool `json:"buyToResupply" gorm:"type:tinyint(1);not null;comment:是否购买补给"` //是否购买补给,已购买产品能够发送到此仓库 |
| | | ResupplyWhIdsStr string `json:"-" gorm:"column:resupply_wh_ids;type:varchar(255);not null;comment:补给来源仓库ID"` //补给来源仓库ID |
| | | ResupplyWhIds []string `json:"resupplyWhIds" gorm:"-"` //补给来源仓库ID |
| | | ResupplyWh []*Warehouse `json:"resupplyWh" gorm:"-"` //补给来源仓库 |
| | | CompanyId int `json:"companyId" gorm:"type:int;not null;comment:公司id"` |
| | | Company Company `json:"company" gorm:"foreignKey:CompanyId"` |
| | | Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` |
| | | Name string `json:"name" gorm:"index;type:varchar(255);not null;comment:仓库名称"` //仓库名称 |
| | | Active bool `json:"active" gorm:"type:tinyint(1);not null;comment:是否激活"` //是否启用,传true就行 |
| | | Code string `json:"code" binding:"required,min=1,max=5" gorm:"index;type:varchar(255);not null;comment:仓库编码"` //仓库编码 |
| | | PartnerID int `json:"partnerId" gorm:"type:int;not null;comment:合作伙伴id"` //合作伙伴id |
| | | BuyToResupply bool `json:"buyToResupply" gorm:"type:tinyint(1);not null;comment:是否购买补给"` //是否购买补给,已购买产品能够发送到此仓库 |
| | | ResupplyWhIdsStr string `json:"-" gorm:"column:resupply_wh_ids;type:varchar(255);not null;comment:补给来源仓库ID"` //补给来源仓库ID |
| | | ResupplyWhIds []string `json:"resupplyWhIds" gorm:"-"` //补给来源仓库ID |
| | | ResupplyWh []*Warehouse `json:"resupplyWh" gorm:"-"` //补给来源仓库 |
| | | CompanyId int `json:"companyId" gorm:"type:int;not null;comment:公司id"` |
| | | Company Company `json:"company" gorm:"foreignKey:CompanyId"` |
| | | Address string `json:"address" gorm:"type:varchar(512);comment:地址"` //地址 |
| | | InboundTransportation int `json:"inboundTransportation" gorm:"type:int;comment:入向运输"` //入向运输 |
| | | OutboundTransportation int `json:"outboundTransportation" gorm:"type:int;comment:出库运输"` //出库运输 |
| | | } |
| | | |
| | | WarehouseSearch struct { |
| | |
| | | } |
| | | |
| | | type AddWarehouse struct { |
| | | Name string `json:"name" gorm:"index;type:varchar(255);not null;comment:仓库名称"` //仓库名称 |
| | | Active bool `json:"active" gorm:"type:tinyint(1);not null;comment:是否激活"` //是否启用,传true就行 |
| | | Code string `json:"code" binding:"required,min=1,max=5" gorm:"index;type:varchar(255);not null;comment:仓库编码"` //仓库编码 |
| | | PartnerID int `json:"partnerId" gorm:"type:int;not null;comment:合作伙伴id"` //合作伙伴id |
| | | BuyToResupply bool `json:"buyToResupply"` //购买补给,已购买产品能够发送到此仓库 |
| | | ResupplyWhIds []string `json:"resupplyWhIds"` //补给来源仓库ID |
| | | Name string `json:"name" gorm:"index;type:varchar(255);not null;comment:仓库名称"` //仓库名称 |
| | | Active bool `json:"active" gorm:"type:tinyint(1);not null;comment:是否激活"` //是否启用,传true就行 |
| | | Code string `json:"code" binding:"required,min=1,max=5" gorm:"index;type:varchar(255);not null;comment:仓库编码"` //仓库编码 |
| | | PartnerID int `json:"partnerId" gorm:"type:int;not null;comment:合作伙伴id"` //合作伙伴id |
| | | BuyToResupply bool `json:"buyToResupply"` //购买补给,已购买产品能够发送到此仓库 |
| | | ResupplyWhIds []string `json:"resupplyWhIds"` //补给来源仓库ID |
| | | Address string `json:"address" gorm:"type:varchar(512);comment:地址"` //地址 |
| | | InboundTransportation int `json:"inboundTransportation" gorm:"type:int;comment:入向运输"` //入向运输 |
| | | OutboundTransportation int `json:"outboundTransportation" gorm:"type:int;comment:出库运输"` //出库运输 |
| | | } |
| | | |
| | | type UpdateWarehouse struct { |