From 4b63908ad085bc570623f7b0c0fd397b2ae7a80d Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 07 八月 2023 15:41:32 +0800 Subject: [PATCH] 增加文件列表接口,文件上传时间,文件删除时间 --- docs/swagger.yaml | 50 +++++++++++++++++++++++++++++++------------------- 1 files changed, 31 insertions(+), 19 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index a70480d..de6c84e 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -11,6 +11,17 @@ type: string x-enum-varnames: - BankAccountQueryClassExpireLessThen60Days + constvar.CollectionStatus: + enum: + - 1 + - 2 + type: integer + x-enum-comments: + CollectionStatusCollected: 宸叉敹娆� + CollectionStatusUnCollected: 寰呮敹娆� + x-enum-varnames: + - CollectionStatusUnCollected + - CollectionStatusCollected constvar.FaqKeywordType: enum: - "" @@ -1173,8 +1184,9 @@ description: 婧愬崟绫诲瀷锛�1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁級 type: integer status: + allOf: + - $ref: '#/definitions/constvar.CollectionStatus' description: 鐘舵�侊紙1鏈敹2宸叉敹锛� - type: integer term: description: 鏈熸 type: integer @@ -1731,18 +1743,6 @@ name: type: string type: object - request.AddFile: - properties: - sourceId: - description: 鏉ユ簮id - type: integer - sourceType: - description: 闄勪欢鏉ユ簮 - type: string - required: - - sourceId - - sourceType - type: object request.AddFollowRecord: properties: follow_record: @@ -2110,6 +2110,8 @@ items: $ref: '#/definitions/model.ServiceCollectionPlan' type: array + required: + - list type: object request.AddServiceContract: properties: @@ -4022,8 +4024,9 @@ description: 婧愬崟绫诲瀷锛�1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁級 type: integer status: + allOf: + - $ref: '#/definitions/constvar.CollectionStatus' description: 鐘舵�侊紙1鏈敹2宸叉敹锛� - type: integer term: description: 鏈熸 type: integer @@ -6518,12 +6521,21 @@ /api/file/add: post: parameters: - - description: 鏌ヨ鍙傛暟 - in: body - name: object + - description: 鏉ユ簮id + in: formData + name: sourceId required: true - schema: - $ref: '#/definitions/request.AddFile' + type: integer + - description: 闄勪欢鏉ユ簮 + in: formData + name: sourceType + required: true + type: string + - description: 涓婁紶鏂囦欢 + in: formData + name: file + required: true + type: file produces: - application/json responses: -- Gitblit v1.8.0