feat: add medias controller, service and dto

This commit is contained in:
Rogee
2025-01-14 20:16:13 +08:00
parent 307509e787
commit 591771ce77
4 changed files with 99 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package medias
type UploadReq struct {
Files []string `json:"files"`
}
type UploadResp struct {
Files []UploadFile `json:"files"`
}
type UploadFile struct {
HashID string `json:"hash_id"`
Name string `json:"name"`
Size int64 `json:"size"`
MimeType string `json:"type"`
Path string `json:"path"`
Preview string `json:"preview"`
}