| | |
| | | // Code generated by swaggo/swag. DO NOT EDIT. |
| | | |
| | | // Package docs Code generated by swaggo/swag. DO NOT EDIT |
| | | package docs |
| | | |
| | | import "github.com/swaggo/swag" |
| | |
| | | "附件管理" |
| | | ], |
| | | "summary": "上传附件", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attribute/attribute": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "属性值和对象" |
| | | ], |
| | | "summary": "添加属性值和对象", |
| | | "parameters": [ |
| | | { |
| | | "description": "属性值和对象信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AttributeList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "属性" |
| | | ], |
| | | "summary": "添加属性", |
| | | "parameters": [ |
| | | { |
| | | "description": "属性信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddAttribute" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attribute/delete/{id}": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "属性" |
| | | ], |
| | | "summary": "删除属性", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "属性id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attribute/primary/{id}": { |
| | | "get": { |
| | | "tags": [ |
| | | "属性值和对象" |
| | | ], |
| | | "summary": "查询属性值和对象 通过主键ID查询", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attribute/updateAttribute/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "属性" |
| | | ], |
| | | "summary": "编辑属性", |
| | | "parameters": [ |
| | | { |
| | | "description": "属性信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateAttribute" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "属性id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attributeValue/add": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "属性值和对象" |
| | | ], |
| | | "summary": "添加属性值和对象", |
| | | "parameters": [ |
| | | { |
| | | "description": "属性值和对象信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddAttributeValue" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attributeValue/delete/{id}": { |
| | | "delete": { |
| | | "tags": [ |
| | | "属性值和对象" |
| | | ], |
| | | "summary": "删除属性值和对象", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attributeValue/list": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "属性值和对象" |
| | | ], |
| | | "summary": "查询属性值和对象 分页条件筛选Value like '%v%' 模糊查询", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attributeValue/primary/{id}": { |
| | | "get": { |
| | | "tags": [ |
| | | "属性值和对象" |
| | | ], |
| | | "summary": "查询属性值和对象 通过主键ID查询", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attributeValue/update": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "属性值和对象" |
| | | ], |
| | | "summary": "更新属性值和对象", |
| | | "parameters": [ |
| | | { |
| | | "description": "属性值和对象信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateAttributeValue" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "删除产品", |
| | | "summary": "通过产品/商品/物料 ID删除产品", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/deleteProductByBarCode/{barCode}": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "通过产品/商品/物料 条形码删除产品", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "barCode", |
| | | "name": "barCode", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "获取产品详情", |
| | | "summary": "通过产品/商品/物料 ID获取产品详情", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/models.Material" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/getProductDetailsByBarCode/{barCode}": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "通过产品/商品/物料 条形码 获取产品详情", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "barCode", |
| | | "name": "barCode", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/inputProduct": { |
| | | "post": { |
| | | "consumes": [ |
| | | "multipart/form-data" |
| | | ], |
| | | "produces": [ |
| | | "application/xlsx" |
| | | ], |
| | | "tags": [ |
| | | "物料管理" |
| | | ], |
| | | "summary": "导入物料", |
| | | "parameters": [ |
| | | { |
| | | "type": "file", |
| | | "description": "file", |
| | | "name": "file", |
| | | "in": "formData", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | |
| | | "CostingMethodAverageCost" |
| | | ] |
| | | }, |
| | | "constvar.FileTemplateCategory": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2 |
| | | ], |
| | | "x-enum-comments": { |
| | | "FileTemplateCategory_Output": "出库", |
| | | "FileTemplateCategory_Selfmade": "入库-自制" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "FileTemplateCategory_Selfmade", |
| | | "FileTemplateCategory_Output" |
| | | ] |
| | | }, |
| | | "constvar.FileType": { |
| | | "type": "string", |
| | | "enum": [ |
| | |
| | | "autoIncr": { |
| | | "type": "integer" |
| | | }, |
| | | "barCode": { |
| | | "description": "创建人", |
| | | "type": "string" |
| | | }, |
| | | "barcode": { |
| | | "description": "条码", |
| | | "type": "string" |
| | |
| | | "cost": { |
| | | "description": "成本", |
| | | "type": "number" |
| | | }, |
| | | "createBy": { |
| | | "description": "创建人", |
| | | "type": "string" |
| | | }, |
| | | "currencyName": { |
| | | "description": "币种名称", |
| | |
| | | } |
| | | ] |
| | | }, |
| | | "checkedAt": { |
| | | "type": "string" |
| | | }, |
| | | "checkedBy": { |
| | | "type": "string" |
| | | }, |
| | |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "isInternalOutput": { |
| | | "description": "是否调拨产生的出库", |
| | | "type": "boolean" |
| | | }, |
| | | "location": { |
| | | "description": "源位置", |
| | |
| | | "receiverPhone": { |
| | | "type": "string" |
| | | }, |
| | | "remark": { |
| | | "type": "string" |
| | | }, |
| | | "salesDetailsNumber": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "auxiliaryUnit": { |
| | | "type": "string" |
| | | }, |
| | | "cost": { |
| | | "description": "成本单价", |
| | | "type": "number" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "note": { |
| | | "type": "string" |
| | | "isInternalOutput": { |
| | | "description": "是否调拨产生的出库", |
| | | "type": "boolean" |
| | | }, |
| | | "operationId": { |
| | | "description": "操作id", |
| | |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "string" |
| | | }, |
| | | "remark": { |
| | | "type": "string" |
| | | }, |
| | | "salePrice": { |
| | | "description": "销售单价", |
| | | "type": "number" |
| | | }, |
| | | "toLocation": { |
| | | "description": "目标位置", |
| | |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "fileTemplateCategoryIn": { |
| | | "$ref": "#/definitions/constvar.FileTemplateCategory" |
| | | }, |
| | | "fileTemplateCategoryOut": { |
| | | "$ref": "#/definitions/constvar.FileTemplateCategory" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | }, |
| | | "warehouseLocation": { |
| | | "description": "库存位置", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.AddAttribute": { |
| | | "type": "object", |
| | | "properties": { |
| | | "dataType": { |
| | | "description": "值类型(1字符串 2 int 3 下拉框 )", |
| | | "type": "integer" |
| | | }, |
| | | "entityType": { |
| | | "description": "给谁用的 1 物料(产品)", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "属性名称", |
| | | "type": "string" |
| | | }, |
| | | "selectValues": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "request.AddAttributeValue": { |
| | | "type": "object", |
| | | "properties": { |
| | | "attributeId": { |
| | | "type": "integer" |
| | | }, |
| | | "entityId": { |
| | | "type": "string" |
| | | }, |
| | | "value": { |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.AttributeList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "entityType": { |
| | | "type": "integer" |
| | | }, |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.DoMonthStats": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "description": "辅助单位", |
| | | "type": "string" |
| | | }, |
| | | "cost": { |
| | | "description": "成本单价", |
| | | "type": "number" |
| | | }, |
| | | "fromLocationId": { |
| | | "description": "Unit string ` + "`" + `json:\"unit\" gorm:\"type:varchar(31);comment:单位\"` + "`" + ` //单位\nProduct models.Material ` + "`" + `json:\"product\" gorm:\"foreignKey:ProductId;references:ID\"` + "`" + `", |
| | | "type": "integer" |
| | |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "string" |
| | | }, |
| | | "remark": { |
| | | "type": "string" |
| | | }, |
| | | "salePrice": { |
| | | "description": "销售单价", |
| | | "type": "number" |
| | | }, |
| | | "toLocationId": { |
| | | "description": "目标位置id", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateAttribute": { |
| | | "type": "object", |
| | | "properties": { |
| | | "dataType": { |
| | | "description": "值类型(1字符串 2 int 3 下拉框 )", |
| | | "type": "integer" |
| | | }, |
| | | "entityType": { |
| | | "description": "给谁用的 1 物料(产品)", |
| | | "type": "integer" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "属性名称", |
| | | "type": "string" |
| | | }, |
| | | "selectValues": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateAttributeValue": { |
| | | "type": "object", |
| | | "properties": { |
| | | "attributeId": { |
| | | "type": "integer" |
| | | }, |
| | | "entityId": { |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "value": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateCompany": { |
| | | "type": "object", |
| | | "properties": { |