Documentation
¶
Index ¶
- type BlobResponse
- type BlobSimilarResponse
- type ErrorResponse
- type LoginFormModel
- type PostCountResponse
- type PostCreateModel
- type PostListItem
- type PostPaginationResponse
- type PostReadModel
- type PostSimilarityListItem
- type PostUpdateModel
- type SimilarResponse
- type TagAutocompleteListItem
- type TagCreateModel
- type TagListItem
- type TagNoteUpdateModel
- type TagPaginationResponse
- type TagReadModel
- type TagTypeCreateModel
- type TagTypeListItem
- type TagUpdateModel
- type TokenPairModel
- type TokenReadModel
- type TokenResponse
- type UserCreateModel
- type UserProfileResponse
- type UserUpdateModel
- type UserUpdatePasswordModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobResponse ¶
type BlobSimilarResponse ¶
type BlobSimilarResponse struct {
ID string `json:"id"`
Width int `json:"width"`
Height int `json:"height"`
PreviewUrl string `json:"previewUrl"`
Similar []PostSimilarityListItem `json:"similar"`
}
type ErrorResponse ¶
type LoginFormModel ¶
type PostCountResponse ¶
type PostCountResponse struct {
PostCount int `json:"postCount"`
}
type PostCreateModel ¶
type PostListItem ¶
type PostPaginationResponse ¶
type PostPaginationResponse struct {
CurrentPage int `json:"currentPage"`
TotalPage int `json:"totalPage"`
PostCount int `json:"postCount"`
Posts []PostListItem `json:"posts"`
Tags []TagListItem `json:"tags"`
}
type PostReadModel ¶
type PostReadModel struct {
ID string `json:"id"`
ImagePreviewPath string `json:"preview_path"`
ImagePath string `json:"image_path"`
SourceURL string `json:"source_url"`
Tags []TagListItem `json:"tags"`
Width int `json:"width"`
Height int `json:"height"`
Uploader string `json:"uploader"`
UploadDate time.Time `json:"upload_date"`
}
type PostSimilarityListItem ¶
type PostUpdateModel ¶
type SimilarResponse ¶
type SimilarResponse struct {
Similar []PostSimilarityListItem `json:"similar"`
}
type TagAutocompleteListItem ¶
type TagAutocompleteListItem struct {
Name string `json:"name"`
}
type TagCreateModel ¶
type TagListItem ¶
type TagNoteUpdateModel ¶
type TagNoteUpdateModel struct {
Note string `json:"note" validate:"required"`
}
type TagPaginationResponse ¶ added in v0.4.0
type TagPaginationResponse struct {
CurrentPage int `json:"currentPage"`
TotalPage int `json:"totalPage"`
TagCount int `json:"tagCount"`
Tags []TagListItem `json:"tags"`
}
type TagReadModel ¶
type TagTypeCreateModel ¶
type TagTypeCreateModel struct {
Name string `json:"name" validate:"required,ascii"`
}
type TagTypeListItem ¶
type TagUpdateModel ¶
type TokenPairModel ¶ added in v0.5.0
type TokenReadModel ¶ added in v0.5.0
type TokenReadModel struct {
RefreshToken string `json:"refreshToken"`
}
type TokenResponse ¶
type UserCreateModel ¶
type UserProfileResponse ¶
type UserUpdateModel ¶
type UserUpdatePasswordModel ¶
Click to show internal directories.
Click to hide internal directories.