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