Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleListRequest ¶
type ArticleSingleRequest ¶
type ArticleSingleRequest struct {
ID uint32 `form:"id" binding:"required,gte=1"`
}
type AuthRequest ¶
type CountArticleRequest ¶
type CountTagRequest ¶
type CreateArticleRequest ¶
type CreateArticleRequest struct { Title string `form:"title" binding:"required,min=3,max=100"` Desc string `form:"desc" binding:"min=3,max=100"` CoverImageUrl string `form:"cover_image_url" binding:"max=100"` Content string `form:"content" binding:"required"` CreatedBy string `form:"created_by" binding:"required,min=2,max=100"` State uint8 `form:"state,default=1" binding:"oneof=0 1"` }
type CreateTagRequest ¶
type DeleteArticleRequest ¶
type DeleteArticleRequest struct {
ID uint32 `form:"id" binding:"required,gte=1"`
}
type DeleteTagRequest ¶
type DeleteTagRequest struct {
ID uint32 `form:"id" binding:"required,gte=1"`
}
type TagListRequest ¶
type UpdateArticleRequest ¶
type UpdateArticleRequest struct { ID uint32 `form:"id" binding:"required,gte=1"` Title string `form:"title" binding:"max=100"` Desc string `form:"desc" binding:"max=100"` CoverImageUrl string `form:"cover_image_url" binding:"max=100"` Content string `form:"content"` State uint8 `form:"state" binding:"oneof=0 1"` ModifiedBy string `form:"modified_by" binding:"required,min=1,max=100"` }
Click to show internal directories.
Click to hide internal directories.