Added authorization
This commit is contained in:
parent
c3c3d65d32
commit
b96dd39795
50 changed files with 685 additions and 410 deletions
13
internal/interfaces/api/mapper/response_from_image_result.go
Normal file
13
internal/interfaces/api/mapper/response_from_image_result.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package mapper
|
||||
|
||||
import (
|
||||
"58team_blog/internal/application/common"
|
||||
"58team_blog/internal/interfaces/api/responses"
|
||||
)
|
||||
|
||||
func ResponseFromImageResult(result *common.ImageResult) responses.ImageResponse {
|
||||
return responses.ImageResponse{
|
||||
Id: result.Id.String(),
|
||||
Path: result.Path,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue