add media service

This commit is contained in:
Дмитрий
2026-05-08 17:36:48 +03:00
parent 1a7251976d
commit 72c57f0de3
16 changed files with 757 additions and 291 deletions

View File

@@ -0,0 +1,21 @@
package dto
type UploadMediaRequest struct {
OriginalName string
Mode string
Data []byte
}
type UploadMediaResponse struct {
FileName string
Size int64
}
type GetUrlRequest struct {
FileName string
IsPublic bool
}
type GetUrlResponse struct {
URL string
}