Merge pull request 'Add Infra' (#1) from feature-test into main

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2025-03-03 12:03:19 +00:00
1782 changed files with 692894 additions and 21 deletions
+24
View File
@@ -0,0 +1,24 @@
package oss
import "mime/multipart"
type UploadFileRequest struct {
FileHeader *multipart.FileHeader
FolderName string
FileSize int64 `validate:"max=10000000"` // 10Mb = 10000000 byte
Ext string `validate:"oneof=.png .jpeg .jpg .pdf .xlsx .csv"`
}
type DownloadFileRequest struct {
FileName string `query:"file_name" validate:"required"`
FolderName string `query:"folder_name" validate:"required"`
}
type UploadFileResponse struct {
FilePath string `json:"file_path"`
FileUrl string `json:"file_url"`
}
type DownloadFileResponse struct {
FileUrl string `json:"file_url"`
}