mirror of
https://github.com/Damillora/Shioriko.git
synced 2024-11-25 05:27:32 +00:00
26 lines
505 B
Go
26 lines
505 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"`
|
|
}
|
|
|
|
type PostPaginationResponse struct {
|
|
CurrentPage int `json:"currentPage"`
|
|
TotalPage int `json:"totalPage"`
|
|
Posts []PostListItem `json:"posts"`
|
|
}
|