From 0579d8ed7f53a1883dde8b6cb9df258370348e1e Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 27 六月 2024 18:23:15 +0800 Subject: [PATCH] 新增wms系统设置表,保存库存结算时间点,给前端提供查询和保存配置接口 --- docs/docs.go | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 159 insertions(+), 4 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 4ef8f28..3297b01 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -3273,6 +3273,99 @@ } } }, + "/api-wms/v1/systemConfig/get": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆" + ], + "summary": "鏍规嵁璁剧疆绫诲瀷鏌ヨ绯荤粺璁剧疆", + "parameters": [ + { + "enum": [ + 1 + ], + "type": "integer", + "x-enum-comments": { + "SystemConfigTypeInventoryCutOffPoint": "搴撳瓨缁撶畻鏃堕棿鐐�" + }, + "x-enum-varnames": [ + "SystemConfigTypeInventoryCutOffPoint" + ], + "description": "1 姣忔湀搴撳瓨缁撶畻鏃堕棿鐐�", + "name": "configType", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.SystemConfig" + } + } + } + ] + } + } + } + } + }, + "/api-wms/v1/systemConfig/save": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆" + ], + "summary": "淇濆瓨绯荤粺璁剧疆", + "parameters": [ + { + "description": "绯荤粺璁剧疆淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SystemConfig" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, "/api-wms/v1/warehouse/getWarehouseDetails/{id}": { "get": { "produces": [ @@ -3848,6 +3941,18 @@ "RuleType_ProductCategory" ] }, + "constvar.SystemConfigType": { + "type": "integer", + "enum": [ + 1 + ], + "x-enum-comments": { + "SystemConfigTypeInventoryCutOffPoint": "搴撳瓨缁撶畻鏃堕棿鐐�" + }, + "x-enum-varnames": [ + "SystemConfigTypeInventoryCutOffPoint" + ] + }, "constvar.WhetherType": { "type": "integer", "enum": [ @@ -4198,10 +4303,6 @@ "type": "integer" }, "barCode": { - "description": "鍒涘缓浜�", - "type": "string" - }, - "barcode": { "description": "鏉$爜", "type": "string" }, @@ -4982,6 +5083,36 @@ "type": "string" }, "updateTime": { + "type": "string" + } + } + }, + "models.SystemConfig": { + "type": "object", + "properties": { + "configType": { + "description": "姣忔湀搴撳瓨缁撶畻鏃堕棿鐐�", + "allOf": [ + { + "$ref": "#/definitions/constvar.SystemConfigType" + } + ] + }, + "createTime": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "璁剧疆鍚嶇О", + "type": "string" + }, + "updateTime": { + "type": "string" + }, + "val": { + "description": "璁剧疆鍊�", "type": "string" } } @@ -5926,6 +6057,30 @@ } } }, + "request.SystemConfig": { + "type": "object", + "properties": { + "ID": { + "type": "integer" + }, + "configType": { + "description": "1 姣忔湀搴撳瓨缁撶畻鏃堕棿鐐�", + "allOf": [ + { + "$ref": "#/definitions/constvar.SystemConfigType" + } + ] + }, + "name": { + "description": "璁剧疆鍚嶇О", + "type": "string" + }, + "val": { + "description": "璁剧疆鍊�", + "type": "string" + } + } + }, "request.UnitDict": { "type": "object", "properties": { -- Gitblit v1.8.0