Added completed user. Some fixes and more more more...
This commit is contained in:
parent
b96dd39795
commit
ea8ab7c0ed
33 changed files with 576 additions and 212 deletions
|
|
@ -1,14 +1,16 @@
|
|||
package responses
|
||||
|
||||
import "time"
|
||||
|
||||
type GetListPostResponseItem struct {
|
||||
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"`
|
||||
Id string `json:"id"`
|
||||
UserId string `json:"userId"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
Tags []string `json:"tags"`
|
||||
Category string `json:"category"`
|
||||
Username string `json:"username"`
|
||||
}
|
||||
|
||||
type GetListPostResponse []GetListPostResponseItem
|
||||
|
|
|
|||
4
internal/interfaces/api/responses/image_get_all.go
Normal file
4
internal/interfaces/api/responses/image_get_all.go
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
package responses
|
||||
|
||||
type GetAllImagesList struct {
|
||||
}
|
||||
|
|
@ -1,8 +1,18 @@
|
|||
package responses
|
||||
|
||||
type UserResponse struct {
|
||||
Id string `json:"id"`
|
||||
UserName string `json:"username"`
|
||||
}
|
||||
import "time"
|
||||
|
||||
type UserResponse struct {
|
||||
Id string `json:"id"`
|
||||
UserName string `json:"username"`
|
||||
Name string `json:"name"`
|
||||
Role string `json:"role"`
|
||||
Speciality string `json:"speciality"`
|
||||
Description string `json:"description"`
|
||||
Skills []string `json:"skills"`
|
||||
Avatar string `json:"avatar"`
|
||||
JoinDate time.Time `json:"joinDate"`
|
||||
Projects []string `json:"projects"`
|
||||
Motto string `json:"motto"`
|
||||
}
|
||||
type UserResponseList []UserResponse
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue