Documentation ¶
Index ¶
- type BlobResponse
- type BlobSimilarResponse
- type ErrorResponse
- type LoginFormModel
- type PostCreateModel
- type PostListItem
- type PostPaginationResponse
- type PostReadModel
- type PostSimilarityListItem
- type PostUpdateModel
- type TagAutocompleteListItem
- type TagCreateModel
- type TagListItem
- type TagNoteUpdateModel
- type TagReadModel
- type TagTypeCreateModel
- type TagTypeListItem
- type TagUpdateModel
- type TokenResponse
- type UserCreateModel
- type UserProfileResponse
- type UserUpdateModel
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"` Similar []PostSimilarityListItem `json:"similar"` }
type ErrorResponse ¶
type LoginFormModel ¶
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 PostSimilarityListItem ¶
type PostUpdateModel ¶
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 TagReadModel ¶
type TagTypeCreateModel ¶
type TagTypeCreateModel struct {
Name string `json:"name" validate:"required,ascii"`
}
type TagTypeListItem ¶
type TagUpdateModel ¶
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
type UserCreateModel ¶
type UserProfileResponse ¶
Click to show internal directories.
Click to hide internal directories.