From 30ecf91d875042d461457cdade7b55113a8ec4ab Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期三, 09 八月 2023 14:30:59 +0800 Subject: [PATCH] Merge branch 'master' into fly --- docs/swagger.yaml | 215 +++++++++++++++++++++++++++++++++-------------------- 1 files changed, 135 insertions(+), 80 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 0d41be3..9c4a623 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -46,18 +46,6 @@ type: string x-enum-varnames: - FaqQueryClassExpireLessThen60Days - constvar.FileKeywordType: - enum: - - "" - type: string - x-enum-varnames: - - FileKeywordCustomerName - constvar.FileQueryClass: - enum: - - "" - type: string - x-enum-varnames: - - FileQueryClassExpireLessThen60Days constvar.InvoiceKeywordType: enum: - "" @@ -601,38 +589,6 @@ id: type: integer name: - type: string - type: object - model.File: - properties: - bucket: - description: 瀵硅薄瀛樺偍bucket - type: string - downloadCount: - description: 涓嬫娆℃暟 - type: integer - filePath: - description: 鏂囦欢璺緞 - type: string - fileType: - description: 鏂囦欢绫诲瀷 - type: string - key: - description: 瀵硅薄瀛樺偍key - type: string - name: - type: string - previewCount: - description: 棰勮娆℃暟 - type: integer - size: - description: 鏂囦欢澶у皬 - type: integer - sourceId: - description: 鏉ユ簮id - type: integer - sourceType: - description: 闄勪欢鏉ユ簮 type: string type: object model.FollowRecord: @@ -1625,6 +1581,33 @@ username: type: string uuid: + type: string + type: object + product.Product: + properties: + Amount: + description: 搴撳瓨鍓╀綑閲� + type: number + IsSale: + description: 鏄惁閿�鍞� + type: boolean + MaterialMode: + description: 鐗╂枡绫诲瀷 + type: string + MinInventory: + description: 瀹夊叏搴撳瓨 + type: integer + Name: + type: string + Number: + type: string + PurchaseType: + description: 閲囪喘绫诲瀷 + type: string + SalePrice: + description: 閿�鍞环鏍� + type: number + Unit: type: string type: object request.AddAccountId: @@ -2788,6 +2771,26 @@ items: type: integer type: array + type: object + request.DownloadFile: + properties: + id: + description: 闄勪欢id + type: integer + key: + description: 闄勪欢瀛樺偍key + type: string + sourceId: + description: 鏉ユ簮id + type: integer + sourceType: + description: 闄勪欢鏉ユ簮 + type: string + required: + - id + - key + - sourceId + - sourceType type: object request.FollowRecord: properties: @@ -6960,49 +6963,42 @@ summary: 鍒犻櫎闄勪欢 tags: - 闄勪欢绠$悊 - /api/file/list: - get: + /api/file/download: + post: parameters: - - in: query - name: keyword - type: string - - enum: - - "" - in: query - name: keywordType - type: string - x-enum-varnames: - - FileKeywordCustomerName - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - enum: - - "" - in: query - name: queryClass - type: string - x-enum-varnames: - - FileQueryClassExpireLessThen60Days + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.DownloadFile' produces: - application/json responses: "200": description: OK schema: - allOf: - - $ref: '#/definitions/response.ListResponse' - - properties: - data: - items: - $ref: '#/definitions/model.File' - type: array - type: object - summary: 鑾峰彇闄勪欢鍒楄〃 + $ref: '#/definitions/contextx.Response' + summary: 闄勪欢涓嬭浇 + tags: + - 闄勪欢绠$悊 + /api/file/preview: + post: + parameters: + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.DownloadFile' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 闄勪欢棰勮 tags: - 闄勪欢绠$悊 /api/followRecord/add: @@ -8213,6 +8209,65 @@ summary: 鏇存柊浼樺厛绾у埆 tags: - 浼樺厛绾у埆绠$悊 + /api/product/info: + get: + parameters: + - description: 鍙傛暟 + in: query + name: productNumber + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/contextx.Response' + - properties: + data: + $ref: '#/definitions/product.Product' + type: object + summary: 鑾峰彇浜у搧璇︽儏 + tags: + - 浜у搧 + /api/product/list: + get: + parameters: + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - description: 浜у搧鍚嶇О + in: query + name: productName + type: string + - description: 浜у搧缂栫爜 + in: query + name: productNumber + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.ListResponse' + - properties: + data: + items: + $ref: '#/definitions/product.Product' + type: array + type: object + summary: 鑾峰彇浜у搧鍒楄〃 + tags: + - 浜у搧 /api/province/add: post: parameters: -- Gitblit v1.8.0