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"`
|
2021-05-21 11:39:00 +00:00
|
|
|
Username string `json:"username"`
|
2021-05-09 15:07:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-05-11 18:22:46 +00:00
|
|
|
type BlobSimilarResponse struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Width int `json:"width"`
|
|
|
|
Height int `json:"height"`
|
|
|
|
Similar []PostSimilarityListItem `json:"similar"`
|
|
|
|
}
|
2021-05-09 15:07:23 +00:00
|
|
|
type PostPaginationResponse struct {
|
|
|
|
CurrentPage int `json:"currentPage"`
|
2022-04-14 14:27:27 +00:00
|
|
|
TotalPage int `json:"totalPage"`
|
2021-05-11 10:06:25 +00:00
|
|
|
PostCount int `json:"postCount"`
|
2021-05-09 15:07:23 +00:00
|
|
|
Posts []PostListItem `json:"posts"`
|
2022-04-14 17:26:11 +00:00
|
|
|
Tags []TagListItem `json:"tags"`
|
2021-05-09 15:07:23 +00:00
|
|
|
}
|