| | |
| | | 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: |
| | | - "" |
| | |
| | | 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: |
| | |
| | | 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: |
| | |
| | | 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: |