mirror of
https://github.com/Damillora/Shioriko.git
synced 2024-11-01 04:27:33 +00:00
28 lines
570 B
Go
28 lines
570 B
Go
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 {
|
|
ID string `json:"id"`
|
|
Width int `json:"width"`
|
|
Height int `json:"height"`
|
|
}
|
|
|
|
type PostPaginationResponse struct {
|
|
CurrentPage int `json:"currentPage"`
|
|
PostCount int `json:"postCount"`
|
|
Posts []PostListItem `json:"posts"`
|
|
}
|