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/swagger.yaml | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 261 insertions(+), 4 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 206520a..f99e6fd 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -572,6 +572,9 @@ cost: description: 鎴愭湰 type: number + createBy: + description: 鍒涘缓浜� + type: string currencyName: description: 甯佺鍚嶇О type: string @@ -850,8 +853,6 @@ allOf: - $ref: '#/definitions/constvar.BaseOperationType' description: 鍩虹浣滀笟绫诲瀷 - checkedAt: - type: string checkedBy: type: string comment: @@ -878,6 +879,9 @@ type: array id: type: integer + isInternalOutput: + description: 鏄惁璋冩嫧浜х敓鐨勫嚭搴� + type: boolean location: allOf: - $ref: '#/definitions/models.Location' @@ -959,6 +963,9 @@ type: number auxiliaryUnit: type: string + cost: + description: 鎴愭湰鍗曚环 + type: number createTime: type: string fromLocation: @@ -970,8 +977,9 @@ type: integer id: type: integer - note: - type: string + isInternalOutput: + description: 鏄惁璋冩嫧浜х敓鐨勫嚭搴� + type: boolean operationId: description: 鎿嶄綔id type: integer @@ -982,6 +990,11 @@ productId: description: 浜у搧id type: string + remark: + type: string + salePrice: + description: 閿�鍞崟浠� + type: number toLocation: allOf: - $ref: '#/definitions/models.Location' @@ -1145,6 +1158,31 @@ 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: @@ -1376,6 +1414,19 @@ 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: @@ -1593,6 +1644,9 @@ auxiliaryUnit: description: 杈呭姪鍗曚綅 type: string + cost: + description: 鎴愭湰鍗曚环 + type: number fromLocationId: description: |- Unit string `json:"unit" gorm:"type:varchar(31);comment:鍗曚綅"` //鍗曚綅 @@ -1601,6 +1655,11 @@ productId: description: 浜у搧id type: string + remark: + type: string + salePrice: + description: 閿�鍞崟浠� + type: number toLocationId: description: 鐩爣浣嶇疆id type: integer @@ -1682,6 +1741,35 @@ 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: @@ -2128,6 +2216,163 @@ 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: 灞炴�d + 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: 灞炴�d + 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: 鏌ヨ灞炴�у�煎拰瀵硅薄 鍒嗛〉鏉′欢绛涢�塚alue 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: @@ -3506,6 +3751,18 @@ 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: -- Gitblit v1.8.0