Documentation ¶
Index ¶
- type DestroyCategoryByID
- type DestroyPostByID
- type DestroyTagByID
- type IndexCategory
- type IndexComment
- type IndexPost
- type IndexPostByKeyword
- type IndexPostByName
- type IndexTag
- type Refresh
- type ShowCategoryByID
- type ShowCategoryByName
- type ShowCommentByID
- type ShowPostByID
- type ShowPostByTitle
- type ShowTagByID
- type ShowTagByName
- type ShowUserInfo
- type SignIn
- type SignOut
- type StoreCategory
- type StoreComment
- type StorePost
- type StoreTag
- type UpdateCategory
- type UpdateCommentStatus
- type UpdatePost
- type UpdateTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestroyCategoryByID ¶
type DestroyCategoryByID struct {
ID int `json:"id"`
}
A DestroyCategoryByID represents the singular of DestroyCategoryByID.
type DestroyPostByID ¶
type DestroyPostByID struct {
ID int `json:"id"`
}
A DestroyPostByID represents the singular of DestroyPostByID.
type DestroyTagByID ¶
type DestroyTagByID struct {
ID int `json:"id"`
}
A DestroyTagByID represents the singular of DestroyTagByID.
type IndexCategory ¶
A IndexCategory represents the singular of IndexCategory.
type IndexComment ¶
A IndexComment represents the singular of IndexComment.
type IndexPostByKeyword ¶
type IndexPostByKeyword struct { Keyword string `json:"keyword"` Page int `json:"page"` Limit int `json:"limit"` }
A IndexPostByKeyword represents the singular of IndexPostByKeyword.
type IndexPostByName ¶
type IndexPostByName struct { Name string `json:"name"` Page int `json:"page"` Limit int `json:"limit"` }
A IndexPostByName represents the singular of IndexPostByName.
type Refresh ¶
type Refresh struct {
Token string `json:"token"`
}
A Refresh represents the singular of Refresh.
type ShowCategoryByID ¶
type ShowCategoryByID struct {
ID int `json:"id"`
}
A ShowCategoryByID represents the singular of ShowCategoryByID.
type ShowCategoryByName ¶
type ShowCategoryByName struct {
Name string `json:"name"`
}
A ShowCategoryByName represents the singular of ShowCategoryByName.
type ShowCommentByID ¶
type ShowCommentByID struct {
ID int `json:"id"`
}
A ShowCommentByID represents the singular of ShowCommentByID.
type ShowPostByID ¶
type ShowPostByID struct {
ID int `json:"id"`
}
A ShowPostByID represents the singular of ShowPostByID.
type ShowPostByTitle ¶
type ShowPostByTitle struct {
Title string `json:"title"`
}
A ShowPostByTitle represents the singular of ShowPostByTitle.
type ShowTagByID ¶
type ShowTagByID struct {
ID int `json:"id"`
}
A ShowTagByID represents the singular of ShowTagByID.
type ShowTagByName ¶
type ShowTagByName struct {
Name string `json:"name"`
}
A ShowTagByName represents the singular of ShowTagByName.
type ShowUserInfo ¶
type ShowUserInfo struct {
Token string `json:"token"`
}
A ShowUserInfo represents the singular of ShowUserInfo.
type SignOut ¶
type SignOut struct {
Token string `json:"token"`
}
A SignOut represents the singular of SignOut.
type StoreCategory ¶
type StoreCategory struct {
Name string `json:"name"`
}
A StoreCategory represents the singular of StoreCategory.
type StoreComment ¶
A StoreComment represents the singular of comment for StoreComment.
type StorePost ¶
type StorePost struct { Token string `json:"token"` AdminID int `json:"admin_id"` CategoryID int `json:"category_id"` Tags postTags `json:"tags"` Title string `json:"title"` Body string `json:"body"` MDBody string `json:"md_body"` HTMLBody string `json:"html_body"` Status string `json:"status"` }
A StorePost represents the singular of StorePost.
type StoreTag ¶
type StoreTag struct {
Name string `json:"name"`
}
A StoreTag represents the singular of StoreTag.
type UpdateCategory ¶
A UpdateCategory represents the singular of UpdateCategory.
type UpdateCommentStatus ¶
A UpdateCommentStatus represents the singular of UpdateCommentStatus.
type UpdatePost ¶
type UpdatePost struct { ID int `json:"id"` Token string `json:"token"` AdminID int `json:"admin_id"` CategoryID int `json:"category_id"` Tags postTags `json:"tags"` Title string `json:"title"` Body string `json:"body"` MDBody string `json:"md_body"` HTMLBody string `json:"html_body"` Status string `json:"status"` }
A UpdatePost represents the singular of UpdatePost.