Added authorization
This commit is contained in:
parent
c3c3d65d32
commit
b96dd39795
50 changed files with 685 additions and 410 deletions
|
|
@ -1,9 +1,14 @@
|
|||
package responses
|
||||
|
||||
type GetListPostResponseItem struct {
|
||||
Id string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Id string `json:"id"`
|
||||
UserId string `json:"userId"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
UpdatedAt string `json:"updatedAt"`
|
||||
Tags []string `json:"tags"`
|
||||
Category string `json:"category"`
|
||||
Username string `json:"username"`
|
||||
}
|
||||
|
||||
type GetListPostResponse []GetListPostResponseItem
|
||||
|
|
|
|||
6
internal/interfaces/api/responses/image_response.go
Normal file
6
internal/interfaces/api/responses/image_response.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package responses
|
||||
|
||||
type ImageResponse struct {
|
||||
Id string `json:"id"`
|
||||
Path string `json:"path"`
|
||||
}
|
||||
|
|
@ -10,6 +10,9 @@ type PostResponse struct {
|
|||
Content string `json:"content"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
Tags []string `json:"tags"`
|
||||
Category string `json:"category"`
|
||||
Username string `json:"username"`
|
||||
}
|
||||
|
||||
type PostResponseList []*PostResponse
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue