From 9c7551a7a752c07db11b0fd23bfba8da1ad062e0 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 21 六月 2024 20:39:12 +0800 Subject: [PATCH] fix 404 --- docs/docs.go | 401 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 396 insertions(+), 5 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 56ac84f..a30715f 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -166,6 +166,251 @@ } } }, + "/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": "灞炴�d", + "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": "灞炴�d", + "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": "鏌ヨ灞炴�у�煎拰瀵硅薄 鍒嗛〉鏉′欢绛涢�塚alue 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": [ @@ -2423,6 +2668,25 @@ } } }, + "/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": [ @@ -3827,6 +4091,10 @@ "description": "鎴愭湰", "type": "number" }, + "createBy": { + "description": "鍒涘缓浜�", + "type": "string" + }, "currencyName": { "description": "甯佺鍚嶇О", "type": "string" @@ -4215,9 +4483,6 @@ } ] }, - "checkedAt": { - "type": "string" - }, "checkedBy": { "type": "string" }, @@ -4256,6 +4521,10 @@ }, "id": { "type": "integer" + }, + "isInternalOutput": { + "description": "鏄惁璋冩嫧浜х敓鐨勫嚭搴�", + "type": "boolean" }, "location": { "description": "婧愪綅缃�", @@ -4374,6 +4643,10 @@ "auxiliaryUnit": { "type": "string" }, + "cost": { + "description": "鎴愭湰鍗曚环", + "type": "number" + }, "createTime": { "type": "string" }, @@ -4392,8 +4665,9 @@ "id": { "type": "integer" }, - "note": { - "type": "string" + "isInternalOutput": { + "description": "鏄惁璋冩嫧浜х敓鐨勫嚭搴�", + "type": "boolean" }, "operationId": { "description": "鎿嶄綔id", @@ -4410,6 +4684,13 @@ "productId": { "description": "浜у搧id", "type": "string" + }, + "remark": { + "type": "string" + }, + "salePrice": { + "description": "閿�鍞崟浠�", + "type": "number" }, "toLocation": { "description": "鐩爣浣嶇疆", @@ -4651,6 +4932,43 @@ }, "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" } } @@ -4984,6 +5302,25 @@ } } }, + "request.AttributeList": { + "type": "object", + "properties": { + "entityType": { + "type": "integer" + }, + "keyword": { + "type": "string" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + } + } + }, "request.DoMonthStats": { "type": "object", "properties": { @@ -5296,6 +5633,10 @@ "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" @@ -5303,6 +5644,13 @@ "productId": { "description": "浜у搧id", "type": "string" + }, + "remark": { + "type": "string" + }, + "salePrice": { + "description": "閿�鍞崟浠�", + "type": "number" }, "toLocationId": { "description": "鐩爣浣嶇疆id", @@ -5426,6 +5774,49 @@ } } }, + "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": { -- Gitblit v1.8.0