add minio and file upload

This commit is contained in:
2026-07-08 18:42:08 +05:00
parent be3dc28e68
commit d6555e1133
364 changed files with 137053 additions and 22 deletions

View File

@@ -1007,6 +1007,83 @@ paths:
summary: Update branch
tags:
- branches
/file:
post:
consumes:
- multipart/form-data
description: file upload
parameters:
- description: this is a test file
in: formData
name: file
required: true
type: file
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/appresult.AppSuccess'
"400":
description: Bad Request
schema:
$ref: '#/definitions/appresult.AppError'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/appresult.AppError'
security:
- BearerAuth: []
tags:
- file-upload
/file/{id}:
delete:
description: remove file
parameters:
- description: object name
in: path
name: id
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/appresult.AppSuccess'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/appresult.AppError'
security:
- BearerAuth: []
tags:
- file-upload
get:
description: download file
parameters:
- description: object name
in: path
name: id
required: true
type: string
produces:
- application/octet-stream
responses:
"200":
description: OK
schema:
type: file
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/appresult.AppError'
security:
- BearerAuth: []
tags:
- file-upload
/loan-orders:
get:
description: Returns paginated loan orders with optional filters