From ccc4c924d81c3f8201e7a6c783a9a7148b21670d Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 12 九月 2023 17:43:42 +0800 Subject: [PATCH] 公司增删改查,业务类型增删改查 --- docs/swagger.yaml | 430 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 430 insertions(+), 0 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 034292b..5a1e9a2 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1,4 +1,58 @@ definitions: + constvar.BaseJobType: + enum: + - 1 + - 2 + - 3 + type: integer + x-enum-comments: + BaseJobTypeIncoming: 鏀惰揣 + BaseJobTypeInternal: 鍐呴儴璋冩嫧 + BaseJobTypeOutgoing: 浜よ揣 + x-enum-varnames: + - BaseJobTypeIncoming + - BaseJobTypeOutgoing + - BaseJobTypeInternal + constvar.ReservationMethod: + enum: + - 1 + - 2 + - 3 + type: integer + x-enum-comments: + ReservationMethodAtConfirm: 鍦ㄧ‘璁ゆ椂 + ReservationMethodByDate: 鍦ㄩ瀹氭棩鏈熶箣鍓� + ReservationMethodManual: 鎵嬪姩 + x-enum-varnames: + - ReservationMethodAtConfirm + - ReservationMethodManual + - ReservationMethodByDate + constvar.WhetherType: + enum: + - 1 + - 2 + - 3 + type: integer + x-enum-comments: + ReservationNever: 浠庝笉 + WhetherTypeAlways: 鎬绘槸 + WhetherTypeAsk: 璇㈤棶 + x-enum-varnames: + - WhetherTypeAsk + - WhetherTypeAlways + - ReservationNever + models.Company: + properties: + createTime: + type: string + id: + type: integer + name: + description: 鍏徃鍚嶇О + type: string + updateTime: + type: string + type: object models.Department: properties: children: @@ -26,6 +80,88 @@ description: 鎺掑簭 type: integer type: object + models.JobType: + properties: + ReservationDaysBeforePriority: + description: 鍦ㄤ紭鍏堢骇鐨勫墠鍑犲ぉ + type: integer + baseJobType: + allOf: + - $ref: '#/definitions/constvar.BaseJobType' + description: 鍩虹浣滀笟绫诲瀷 + company: + allOf: + - $ref: '#/definitions/models.Company' + description: 鍏徃 + companyId: + description: 鍏徃id + type: integer + createBackorder: + allOf: + - $ref: '#/definitions/constvar.WhetherType' + description: 鍒涘缓娆犲崟 + createTime: + type: string + defaultLocationDest: + allOf: + - $ref: '#/definitions/models.Location' + description: 榛樿鐩爣浣嶇疆 + defaultLocationDestId: + description: 榛樿鐩爣浣嶇疆id + type: integer + defaultLocationSrc: + allOf: + - $ref: '#/definitions/models.Location' + description: 榛樿婧愪綅缃� + defaultLocationSrcId: + description: 榛樿婧愪綅缃甶d + type: integer + id: + type: integer + name: + description: 浠撳簱鍚嶇О + type: string + printLabel: + description: 鏄惁鎵撳嵃鏍囩 + type: boolean + reservationDaysBefore: + description: 鏀惰揣鍓嶅嚑澶� + type: integer + reservationMethod: + allOf: + - $ref: '#/definitions/constvar.ReservationMethod' + description: 淇濈暀鏂瑰紡 + returnJobType: + description: 閫�璐х被鍨嬪悕绉� + type: string + returnJobTypeID: + description: 閫�璐х被鍨婭D + type: integer + showOperations: + description: 鏄剧ず浣滀笟璇︽儏 + type: boolean + updateTime: + type: string + warehouse: + allOf: + - $ref: '#/definitions/models.Warehouse' + description: 浠撳簱 + warehouseId: + description: 浠撳簱id + type: integer + type: object + models.Location: + properties: + createTime: + type: string + id: + type: integer + name: + description: 浣嶇疆鍚嶇О + type: string + updateTime: + type: string + type: object models.Warehouse: properties: active: @@ -39,8 +175,14 @@ maxLength: 5 minLength: 1 type: string + company: + $ref: '#/definitions/models.Company' + companyId: + type: integer createTime: type: string + id: + type: integer name: description: 浠撳簱鍚嶇О type: string @@ -62,6 +204,12 @@ required: - code type: object + request.AddCompany: + properties: + name: + description: 鍏徃鍚嶇О + type: string + type: object request.AddDepartment: properties: name: @@ -76,6 +224,53 @@ remark: description: 澶囨敞 type: string + type: object + request.AddJobType: + properties: + ReservationDaysBeforePriority: + description: 鍦ㄤ紭鍏堢骇鐨勫墠鍑犲ぉ + type: integer + baseJobType: + allOf: + - $ref: '#/definitions/constvar.BaseJobType' + description: 鍩虹浣滀笟绫诲瀷 + companyId: + description: 鍏徃id + type: integer + createBackorder: + allOf: + - $ref: '#/definitions/constvar.WhetherType' + description: 鍒涘缓娆犲崟 + 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: + allOf: + - $ref: '#/definitions/constvar.ReservationMethod' + description: 淇濈暀鏂瑰紡 + returnJobTypeID: + description: 閫�璐х被鍨婭D + type: integer + showOperations: + description: 鏄剧ず浣滀笟璇︽儏 + type: boolean + warehouseId: + description: 浠撳簱id + type: integer type: object request.AddWarehouse: properties: @@ -104,6 +299,14 @@ required: - code type: object + request.UpdateCompany: + properties: + id: + type: integer + name: + description: 鍏徃鍚嶇О + type: string + type: object request.UpdateDepartment: properties: id: @@ -120,6 +323,53 @@ remark: description: 澶囨敞 type: string + type: object + request.UpdateJobType: + properties: + ReservationDaysBeforePriority: + description: 鍦ㄤ紭鍏堢骇鐨勫墠鍑犲ぉ + type: integer + baseJobType: + allOf: + - $ref: '#/definitions/constvar.BaseJobType' + description: 鍩虹浣滀笟绫诲瀷 + companyId: + description: 鍏徃id + type: integer + createBackorder: + allOf: + - $ref: '#/definitions/constvar.WhetherType' + description: 鍒涘缓娆犲崟 + 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: + allOf: + - $ref: '#/definitions/constvar.ReservationMethod' + description: 淇濈暀鏂瑰紡 + returnJobTypeID: + description: 閫�璐х被鍨婭D + type: integer + showOperations: + description: 鏄剧ず浣滀笟璇︽儏 + type: boolean + warehouseId: + description: 浠撳簱id + type: integer type: object request.UpdateWarehouse: properties: @@ -258,6 +508,186 @@ summary: 缂栬緫閮ㄩ棬淇℃伅 tags: - 閮ㄩ棬淇℃伅 + /api-wms/v1/company/company: + get: + parameters: + - in: query + name: keyword + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/util.ResponseList' + - properties: + data: + items: + $ref: '#/definitions/models.Company' + type: array + type: object + summary: 鏌ヨ鍏徃鍒楄〃 + tags: + - 鍏徃 + post: + parameters: + - description: 鍏徃淇℃伅 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.AddCompany' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 娣诲姞鍏徃 + tags: + - 鍏徃 + /api-wms/v1/company/company/{id}: + delete: + parameters: + - description: 鍏徃id + in: path + name: id + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 鍒犻櫎鍏徃 + tags: + - 鍏徃 + put: + parameters: + - description: 鍏徃淇℃伅 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.UpdateCompany' + - 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/warehouse/jobType: + get: + parameters: + - in: query + name: keyword + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/util.ResponseList' + - properties: + data: + items: + $ref: '#/definitions/models.JobType' + type: array + type: object + summary: 鏌ヨ浣滀笟绫诲瀷鍒楄〃 + tags: + - 浣滀笟绫诲瀷 + post: + parameters: + - description: 浣滀笟绫诲瀷淇℃伅 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.AddJobType' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 娣诲姞浣滀笟绫诲瀷 + tags: + - 浣滀笟绫诲瀷 + /api-wms/v1/warehouse/jobType/{id}: + delete: + parameters: + - description: 浣滀笟绫诲瀷id + in: path + name: id + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 鍒犻櫎浣滀笟绫诲瀷 + tags: + - 浣滀笟绫诲瀷 + put: + parameters: + - description: 浣滀笟绫诲瀷淇℃伅 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.UpdateJobType' + - 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/warehouse/warehouse: get: parameters: -- Gitblit v1.8.0