| | |
| | | // @Tags 属性值和对象 |
| | | // @Summary 添加属性值和对象 |
| | | // @Produce application/json |
| | | // @Param object body request.GetAttributeList true "属性值和对象信息" |
| | | // @Param object body request.AttributeList true "属性值和对象信息" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-wms/v1/attribute/list [post] |
| | | // @Router /api-wms/v1/attribute/attribute [post] |
| | | func (slf AttributeController) ListAttribute(c *gin.Context) { |
| | | var params request.AttributeList |
| | | if err := c.ShouldBind(¶ms); err != nil { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attribute/attribute": { |
| | | "post": { |
| | | "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" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/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": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/code/getAutoCode": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/inputProduct": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/xlsx" |
| | | ], |
| | | "tags": [ |
| | | "物料管理" |
| | | ], |
| | | "summary": "导入物料", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/listDisuse": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "description": "成本", |
| | | "type": "number" |
| | | }, |
| | | "createBy": { |
| | | "description": "创建人", |
| | | "type": "string" |
| | | }, |
| | | "currencyName": { |
| | | "description": "币种名称", |
| | | "type": "string" |
| | |
| | | } |
| | | ] |
| | | }, |
| | | "checkedAt": { |
| | | "type": "string" |
| | | }, |
| | | "checkedBy": { |
| | | "type": "string" |
| | | }, |
| | |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "isInternalOutput": { |
| | | "description": "是否调拨产生的出库", |
| | | "type": "boolean" |
| | | }, |
| | | "location": { |
| | | "description": "源位置", |
| | |
| | | "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": "目标位置", |
| | |
| | | }, |
| | | "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": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attribute/attribute": { |
| | | "post": { |
| | | "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" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/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": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/code/getAutoCode": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/inputProduct": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/xlsx" |
| | | ], |
| | | "tags": [ |
| | | "物料管理" |
| | | ], |
| | | "summary": "导入物料", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/listDisuse": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "description": "成本", |
| | | "type": "number" |
| | | }, |
| | | "createBy": { |
| | | "description": "创建人", |
| | | "type": "string" |
| | | }, |
| | | "currencyName": { |
| | | "description": "币种名称", |
| | | "type": "string" |
| | |
| | | } |
| | | ] |
| | | }, |
| | | "checkedAt": { |
| | | "type": "string" |
| | | }, |
| | | "checkedBy": { |
| | | "type": "string" |
| | | }, |
| | |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "isInternalOutput": { |
| | | "description": "是否调拨产生的出库", |
| | | "type": "boolean" |
| | | }, |
| | | "location": { |
| | | "description": "源位置", |
| | |
| | | "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": "目标位置", |
| | |
| | | }, |
| | | "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": { |
| | |
| | | cost: |
| | | description: 成本 |
| | | type: number |
| | | createBy: |
| | | description: 创建人 |
| | | type: string |
| | | currencyName: |
| | | description: 币种名称 |
| | | type: string |
| | |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.BaseOperationType' |
| | | description: 基础作业类型 |
| | | checkedAt: |
| | | type: string |
| | | checkedBy: |
| | | type: string |
| | | comment: |
| | |
| | | type: array |
| | | id: |
| | | type: integer |
| | | isInternalOutput: |
| | | description: 是否调拨产生的出库 |
| | | type: boolean |
| | | location: |
| | | allOf: |
| | | - $ref: '#/definitions/models.Location' |
| | |
| | | type: number |
| | | auxiliaryUnit: |
| | | type: string |
| | | cost: |
| | | description: 成本单价 |
| | | type: number |
| | | createTime: |
| | | type: string |
| | | fromLocation: |
| | |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | note: |
| | | type: string |
| | | isInternalOutput: |
| | | description: 是否调拨产生的出库 |
| | | type: boolean |
| | | operationId: |
| | | description: 操作id |
| | | type: integer |
| | |
| | | productId: |
| | | description: 产品id |
| | | type: string |
| | | remark: |
| | | type: string |
| | | salePrice: |
| | | description: 销售单价 |
| | | type: number |
| | | toLocation: |
| | | allOf: |
| | | - $ref: '#/definitions/models.Location' |
| | |
| | | type: string |
| | | warehouseLocation: |
| | | description: 库存位置 |
| | | type: string |
| | | type: object |
| | | request.AddAttribute: |
| | | properties: |
| | | dataType: |
| | | description: 值类型(1字符串 2 int 3 下拉框 ) |
| | | type: integer |
| | | entityType: |
| | | description: 给谁用的 1 物料(产品) |
| | | type: integer |
| | | name: |
| | | description: 属性名称 |
| | | type: string |
| | | selectValues: |
| | | items: |
| | | type: string |
| | | type: array |
| | | type: object |
| | | request.AddAttributeValue: |
| | | properties: |
| | | attributeId: |
| | | type: integer |
| | | entityId: |
| | | type: string |
| | | value: |
| | | type: string |
| | | type: object |
| | | request.AddCompany: |
| | |
| | | required: |
| | | - code |
| | | type: object |
| | | request.AttributeList: |
| | | properties: |
| | | entityType: |
| | | type: integer |
| | | keyword: |
| | | type: string |
| | | page: |
| | | description: 页码 |
| | | type: integer |
| | | pageSize: |
| | | description: 每页大小 |
| | | type: integer |
| | | type: object |
| | | request.DoMonthStats: |
| | | properties: |
| | | token: |
| | |
| | | auxiliaryUnit: |
| | | description: 辅助单位 |
| | | type: string |
| | | cost: |
| | | description: 成本单价 |
| | | type: number |
| | | fromLocationId: |
| | | description: |- |
| | | Unit string `json:"unit" gorm:"type:varchar(31);comment:单位"` //单位 |
| | |
| | | productId: |
| | | description: 产品id |
| | | type: string |
| | | remark: |
| | | type: string |
| | | salePrice: |
| | | description: 销售单价 |
| | | type: number |
| | | toLocationId: |
| | | description: 目标位置id |
| | | type: integer |
| | |
| | | isDefault: |
| | | type: boolean |
| | | name: |
| | | type: string |
| | | type: object |
| | | request.UpdateAttribute: |
| | | properties: |
| | | dataType: |
| | | description: 值类型(1字符串 2 int 3 下拉框 ) |
| | | type: integer |
| | | entityType: |
| | | description: 给谁用的 1 物料(产品) |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | name: |
| | | description: 属性名称 |
| | | type: string |
| | | selectValues: |
| | | items: |
| | | type: string |
| | | type: array |
| | | type: object |
| | | request.UpdateAttributeValue: |
| | | properties: |
| | | attributeId: |
| | | type: integer |
| | | entityId: |
| | | type: string |
| | | id: |
| | | type: integer |
| | | value: |
| | | type: string |
| | | type: object |
| | | request.UpdateCompany: |
| | |
| | | summary: 上传附件 |
| | | tags: |
| | | - 附件管理 |
| | | /api-wms/v1/attribute/attribute: |
| | | post: |
| | | parameters: |
| | | - description: 属性值和对象信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AttributeList' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 添加属性值和对象 |
| | | tags: |
| | | - 属性值和对象 |
| | | /api-wms/v1/attribute/delete/{id}: |
| | | delete: |
| | | parameters: |
| | | - description: token |
| | | in: header |
| | | name: Authorization |
| | | required: true |
| | | type: string |
| | | - 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/attribute/primary/{id}: |
| | | get: |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 查询属性值和对象 通过主键ID查询 |
| | | tags: |
| | | - 属性值和对象 |
| | | /api-wms/v1/attribute/updateAttribute/{id}: |
| | | put: |
| | | parameters: |
| | | - description: 属性信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateAttribute' |
| | | - description: 属性id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | - 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/attributeValue/add: |
| | | post: |
| | | parameters: |
| | | - description: 属性值和对象信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddAttributeValue' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 添加属性值和对象 |
| | | tags: |
| | | - 属性值和对象 |
| | | /api-wms/v1/attributeValue/delete/{id}: |
| | | delete: |
| | | parameters: |
| | | - description: id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 删除属性值和对象 |
| | | tags: |
| | | - 属性值和对象 |
| | | /api-wms/v1/attributeValue/list: |
| | | post: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 查询属性值和对象 分页条件筛选Value like '%v%' 模糊查询 |
| | | tags: |
| | | - 属性值和对象 |
| | | /api-wms/v1/attributeValue/primary/{id}: |
| | | get: |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 查询属性值和对象 通过主键ID查询 |
| | | tags: |
| | | - 属性值和对象 |
| | | /api-wms/v1/attributeValue/update: |
| | | post: |
| | | parameters: |
| | | - description: 属性值和对象信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateAttributeValue' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 更新属性值和对象 |
| | | tags: |
| | | - 属性值和对象 |
| | | /api-wms/v1/code/getAutoCode: |
| | | post: |
| | | parameters: |
| | |
| | | summary: 获取登录用户信息 |
| | | tags: |
| | | - 产品 |
| | | /api-wms/v1/product/inputProduct: |
| | | post: |
| | | produces: |
| | | - application/xlsx |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 导入物料 |
| | | tags: |
| | | - 物料管理 |
| | | /api-wms/v1/product/listDisuse: |
| | | post: |
| | | parameters: |
| | |
| | | attributeAPI.POST("attribute", attributeController.Add) // 添加属性 |
| | | attributeAPI.PUT("updateAttribute/:id", attributeController.Update) // 修改属性 |
| | | attributeAPI.DELETE("delete/:id", attributeController.Delete) // 删除属性 |
| | | attributeAPI.POST("list", attributeController.ListAttribute) // 获取属性 |
| | | attributeAPI.POST("attribute", attributeController.ListAttribute) // 获取属性 |
| | | attributeAPI.GET("primary/:id", attributeController.PrimaryAttribute) //删除 |
| | | //attributeAPI.GET("attribute/:id", attributeController.GetAttributeDetail) // 获取属性 |
| | | } |