Shioriko/pkg/models/responses.go

28 lines
570 B
Go
Raw Normal View History

2021-05-09 15:07:23 +00:00
package models
type TokenResponse struct {
Token string `json:"token"`
}
type ErrorResponse struct {
Code int `json:"code"`
Message string `json:"message"`
}
type UserProfileResponse struct {
Email string `json:"email"`
Username string `json:"password"`
}
type BlobResponse struct {
2021-05-11 10:33:22 +00:00
ID string `json:"id"`
Width int `json:"width"`
Height int `json:"height"`
2021-05-09 15:07:23 +00:00
}
type PostPaginationResponse struct {
CurrentPage int `json:"currentPage"`
2021-05-11 10:06:25 +00:00
PostCount int `json:"postCount"`
2021-05-09 15:07:23 +00:00
Posts []PostListItem `json:"posts"`
}