UPDATE: new swagger
All checks were successful
Build and Release / release (push) Successful in 1m17s
All checks were successful
Build and Release / release (push) Successful in 1m17s
This commit is contained in:
2
go.mod
2
go.mod
@@ -23,6 +23,7 @@ require (
|
|||||||
github.com/wneessen/go-mail v0.7.2
|
github.com/wneessen/go-mail v0.7.2
|
||||||
golang.org/x/crypto v0.49.0
|
golang.org/x/crypto v0.49.0
|
||||||
golang.org/x/oauth2 v0.36.0
|
golang.org/x/oauth2 v0.36.0
|
||||||
|
golang.org/x/sync v0.20.0
|
||||||
google.golang.org/api v0.273.0
|
google.golang.org/api v0.273.0
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -104,7 +105,6 @@ require (
|
|||||||
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
||||||
golang.org/x/mod v0.33.0 // indirect
|
golang.org/x/mod v0.33.0 // indirect
|
||||||
golang.org/x/net v0.52.0 // indirect
|
golang.org/x/net v0.52.0 // indirect
|
||||||
golang.org/x/sync v0.20.0 // indirect
|
|
||||||
golang.org/x/sys v0.42.0 // indirect
|
golang.org/x/sys v0.42.0 // indirect
|
||||||
golang.org/x/text v0.35.0 // indirect
|
golang.org/x/text v0.35.0 // indirect
|
||||||
golang.org/x/tools v0.42.0 // indirect
|
golang.org/x/tools v0.42.0 // indirect
|
||||||
|
|||||||
@@ -220,8 +220,9 @@ func (m *MediaController) UploadServerSide(c fiber.Ctx) error {
|
|||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Security BearerAuth
|
// @Security BearerAuth
|
||||||
// @Param filename query string true "File name"
|
// @Param fileName query string true "File name"
|
||||||
// @Param contentType query string true "Content type"
|
// @Param content_type query string true "Content type"
|
||||||
|
// @Param size query int true "File size"
|
||||||
// @Success 200 {object} response.CommonResponse
|
// @Success 200 {object} response.CommonResponse
|
||||||
// @Failure 400 {object} response.CommonResponse
|
// @Failure 400 {object} response.CommonResponse
|
||||||
// @Failure 500 {object} response.CommonResponse
|
// @Failure 500 {object} response.CommonResponse
|
||||||
@@ -254,7 +255,7 @@ func (m *MediaController) GeneratePresignedURL(c fiber.Ctx) error {
|
|||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Security BearerAuth
|
// @Security BearerAuth
|
||||||
// @Param key query string true "Storage key"
|
// @Param data body PreSignedCompleteDto true "Request body"
|
||||||
// @Success 200 {object} response.CommonResponse
|
// @Success 200 {object} response.CommonResponse
|
||||||
// @Failure 400 {object} response.CommonResponse
|
// @Failure 400 {object} response.CommonResponse
|
||||||
// @Failure 500 {object} response.CommonResponse
|
// @Failure 500 {object} response.CommonResponse
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package request
|
|||||||
|
|
||||||
type PreSignedDto struct {
|
type PreSignedDto struct {
|
||||||
FileName string `json:"fileName" validate:"required"`
|
FileName string `json:"fileName" validate:"required"`
|
||||||
ContentType string `json:"contentType" validate:"required"`
|
ContentType string `json:"content_type" validate:"required"`
|
||||||
Size int64 `json:"size" validate:"required"`
|
Size int64 `json:"size" validate:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user