add media service
This commit is contained in:
21
internal/application/dto/media.go
Normal file
21
internal/application/dto/media.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user