From ccc4c924d81c3f8201e7a6c783a9a7148b21670d Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 12 九月 2023 17:43:42 +0800 Subject: [PATCH] 公司增删改查,业务类型增删改查 --- docs/docs.go | 666 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 666 insertions(+), 0 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 854c05e..5efc844 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -150,6 +150,294 @@ } } }, + "/api-wms/v1/company/company": { + "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.Company" + } + } + } + } + ] + } + } + } + }, + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鍏徃" + ], + "summary": "娣诲姞鍏徃", + "parameters": [ + { + "description": "鍏徃淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddCompany" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/company/company/{id}": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "鍏徃" + ], + "summary": "缂栬緫鍏徃", + "parameters": [ + { + "description": "鍏徃淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateCompany" + } + }, + { + "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/warehouse/jobType": { + "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.JobType" + } + } + } + } + ] + } + } + } + }, + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "浣滀笟绫诲瀷" + ], + "summary": "娣诲姞浣滀笟绫诲瀷", + "parameters": [ + { + "description": "浣滀笟绫诲瀷淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddJobType" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/warehouse/jobType/{id}": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "浣滀笟绫诲瀷" + ], + "summary": "缂栬緫浣滀笟绫诲瀷", + "parameters": [ + { + "description": "浣滀笟绫诲瀷淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateJobType" + } + }, + { + "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/warehouse/warehouse": { "get": { "produces": [ @@ -296,6 +584,78 @@ } }, "definitions": { + "constvar.BaseJobType": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-comments": { + "BaseJobTypeIncoming": "鏀惰揣", + "BaseJobTypeInternal": "鍐呴儴璋冩嫧", + "BaseJobTypeOutgoing": "浜よ揣" + }, + "x-enum-varnames": [ + "BaseJobTypeIncoming", + "BaseJobTypeOutgoing", + "BaseJobTypeInternal" + ] + }, + "constvar.ReservationMethod": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-comments": { + "ReservationMethodAtConfirm": "鍦ㄧ‘璁ゆ椂", + "ReservationMethodByDate": "鍦ㄩ瀹氭棩鏈熶箣鍓�", + "ReservationMethodManual": "鎵嬪姩" + }, + "x-enum-varnames": [ + "ReservationMethodAtConfirm", + "ReservationMethodManual", + "ReservationMethodByDate" + ] + }, + "constvar.WhetherType": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-comments": { + "ReservationNever": "浠庝笉", + "WhetherTypeAlways": "鎬绘槸", + "WhetherTypeAsk": "璇㈤棶" + }, + "x-enum-varnames": [ + "WhetherTypeAsk", + "WhetherTypeAlways", + "ReservationNever" + ] + }, + "models.Company": { + "type": "object", + "properties": { + "createTime": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "鍏徃鍚嶇О", + "type": "string" + }, + "updateTime": { + "type": "string" + } + } + }, "models.Department": { "type": "object", "properties": { @@ -334,6 +694,138 @@ } } }, + "models.JobType": { + "type": "object", + "properties": { + "ReservationDaysBeforePriority": { + "description": "鍦ㄤ紭鍏堢骇鐨勫墠鍑犲ぉ", + "type": "integer" + }, + "baseJobType": { + "description": "鍩虹浣滀笟绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/constvar.BaseJobType" + } + ] + }, + "company": { + "description": "鍏徃", + "allOf": [ + { + "$ref": "#/definitions/models.Company" + } + ] + }, + "companyId": { + "description": "鍏徃id", + "type": "integer" + }, + "createBackorder": { + "description": "鍒涘缓娆犲崟", + "allOf": [ + { + "$ref": "#/definitions/constvar.WhetherType" + } + ] + }, + "createTime": { + "type": "string" + }, + "defaultLocationDest": { + "description": "榛樿鐩爣浣嶇疆", + "allOf": [ + { + "$ref": "#/definitions/models.Location" + } + ] + }, + "defaultLocationDestId": { + "description": "榛樿鐩爣浣嶇疆id", + "type": "integer" + }, + "defaultLocationSrc": { + "description": "榛樿婧愪綅缃�", + "allOf": [ + { + "$ref": "#/definitions/models.Location" + } + ] + }, + "defaultLocationSrcId": { + "description": "榛樿婧愪綅缃甶d", + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "浠撳簱鍚嶇О", + "type": "string" + }, + "printLabel": { + "description": "鏄惁鎵撳嵃鏍囩", + "type": "boolean" + }, + "reservationDaysBefore": { + "description": "鏀惰揣鍓嶅嚑澶�", + "type": "integer" + }, + "reservationMethod": { + "description": "淇濈暀鏂瑰紡", + "allOf": [ + { + "$ref": "#/definitions/constvar.ReservationMethod" + } + ] + }, + "returnJobType": { + "description": "閫�璐х被鍨嬪悕绉�", + "type": "string" + }, + "returnJobTypeID": { + "description": "閫�璐х被鍨婭D", + "type": "integer" + }, + "showOperations": { + "description": "鏄剧ず浣滀笟璇︽儏", + "type": "boolean" + }, + "updateTime": { + "type": "string" + }, + "warehouse": { + "description": "浠撳簱", + "allOf": [ + { + "$ref": "#/definitions/models.Warehouse" + } + ] + }, + "warehouseId": { + "description": "浠撳簱id", + "type": "integer" + } + } + }, + "models.Location": { + "type": "object", + "properties": { + "createTime": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "浣嶇疆鍚嶇О", + "type": "string" + }, + "updateTime": { + "type": "string" + } + } + }, "models.Warehouse": { "type": "object", "required": [ @@ -354,8 +846,17 @@ "maxLength": 5, "minLength": 1 }, + "company": { + "$ref": "#/definitions/models.Company" + }, + "companyId": { + "type": "integer" + }, "createTime": { "type": "string" + }, + "id": { + "type": "integer" }, "name": { "description": "浠撳簱鍚嶇О", @@ -384,6 +885,15 @@ } } }, + "request.AddCompany": { + "type": "object", + "properties": { + "name": { + "description": "鍏徃鍚嶇О", + "type": "string" + } + } + }, "request.AddDepartment": { "type": "object", "properties": { @@ -402,6 +912,78 @@ "remark": { "description": "澶囨敞", "type": "string" + } + } + }, + "request.AddJobType": { + "type": "object", + "properties": { + "ReservationDaysBeforePriority": { + "description": "鍦ㄤ紭鍏堢骇鐨勫墠鍑犲ぉ", + "type": "integer" + }, + "baseJobType": { + "description": "鍩虹浣滀笟绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/constvar.BaseJobType" + } + ] + }, + "companyId": { + "description": "鍏徃id", + "type": "integer" + }, + "createBackorder": { + "description": "鍒涘缓娆犲崟", + "allOf": [ + { + "$ref": "#/definitions/constvar.WhetherType" + } + ] + }, + "defaultLocationDestId": { + "description": "榛樿鐩爣浣嶇疆id", + "type": "integer" + }, + "defaultLocationSrcId": { + "description": "榛樿婧愪綅缃甶d", + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "浠撳簱鍚嶇О", + "type": "string" + }, + "printLabel": { + "description": "鏄惁鎵撳嵃鏍囩", + "type": "boolean" + }, + "reservationDaysBefore": { + "description": "鏀惰揣鍓嶅嚑澶�", + "type": "integer" + }, + "reservationMethod": { + "description": "淇濈暀鏂瑰紡", + "allOf": [ + { + "$ref": "#/definitions/constvar.ReservationMethod" + } + ] + }, + "returnJobTypeID": { + "description": "閫�璐х被鍨婭D", + "type": "integer" + }, + "showOperations": { + "description": "鏄剧ず浣滀笟璇︽儏", + "type": "boolean" + }, + "warehouseId": { + "description": "浠撳簱id", + "type": "integer" } } }, @@ -442,6 +1024,18 @@ } } }, + "request.UpdateCompany": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "description": "鍏徃鍚嶇О", + "type": "string" + } + } + }, "request.UpdateDepartment": { "type": "object", "properties": { @@ -466,6 +1060,78 @@ } } }, + "request.UpdateJobType": { + "type": "object", + "properties": { + "ReservationDaysBeforePriority": { + "description": "鍦ㄤ紭鍏堢骇鐨勫墠鍑犲ぉ", + "type": "integer" + }, + "baseJobType": { + "description": "鍩虹浣滀笟绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/constvar.BaseJobType" + } + ] + }, + "companyId": { + "description": "鍏徃id", + "type": "integer" + }, + "createBackorder": { + "description": "鍒涘缓娆犲崟", + "allOf": [ + { + "$ref": "#/definitions/constvar.WhetherType" + } + ] + }, + "defaultLocationDestId": { + "description": "榛樿鐩爣浣嶇疆id", + "type": "integer" + }, + "defaultLocationSrcId": { + "description": "榛樿婧愪綅缃甶d", + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "浠撳簱鍚嶇О", + "type": "string" + }, + "printLabel": { + "description": "鏄惁鎵撳嵃鏍囩", + "type": "boolean" + }, + "reservationDaysBefore": { + "description": "鏀惰揣鍓嶅嚑澶�", + "type": "integer" + }, + "reservationMethod": { + "description": "淇濈暀鏂瑰紡", + "allOf": [ + { + "$ref": "#/definitions/constvar.ReservationMethod" + } + ] + }, + "returnJobTypeID": { + "description": "閫�璐х被鍨婭D", + "type": "integer" + }, + "showOperations": { + "description": "鏄剧ず浣滀笟璇︽儏", + "type": "boolean" + }, + "warehouseId": { + "description": "浠撳簱id", + "type": "integer" + } + } + }, "request.UpdateWarehouse": { "type": "object", "required": [ -- Gitblit v1.8.0