Documentation
¶
Index ¶
- type Category4PostDraft
- type PageRequest
- type PostDraftBriefVO
- type PostDraftHandler
- func (h *PostDraftHandler) DeletePostDraft(ctx *gin.Context) (*apiwrap.ResponseBody[any], error)
- func (h *PostDraftHandler) GetPostDraftPage(ctx *gin.Context, req PageRequest) (*apiwrap.ResponseBody[*apiwrap.PageVO[PostDraftBriefVO]], error)
- func (h *PostDraftHandler) RegisterGinRoutes(engine *gin.Engine)
- func (h *PostDraftHandler) SavePostDraft(ctx *gin.Context, req PostDraftRequest) (*apiwrap.ResponseBody[map[string]string], error)
- type PostDraftRequest
- type PostDraftVO
- type Tag4PostDraft
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category4PostDraft ¶
type PageRequest ¶
type PostDraftBriefVO ¶
type PostDraftHandler ¶
type PostDraftHandler struct {
// contains filtered or unexported fields
}
func NewPostDraftHandler ¶
func NewPostDraftHandler(serv service.IPostDraftService) *PostDraftHandler
func (*PostDraftHandler) DeletePostDraft ¶
func (h *PostDraftHandler) DeletePostDraft(ctx *gin.Context) (*apiwrap.ResponseBody[any], error)
func (*PostDraftHandler) GetPostDraftPage ¶
func (h *PostDraftHandler) GetPostDraftPage(ctx *gin.Context, req PageRequest) (*apiwrap.ResponseBody[*apiwrap.PageVO[PostDraftBriefVO]], error)
func (*PostDraftHandler) RegisterGinRoutes ¶
func (h *PostDraftHandler) RegisterGinRoutes(engine *gin.Engine)
func (*PostDraftHandler) SavePostDraft ¶
func (h *PostDraftHandler) SavePostDraft(ctx *gin.Context, req PostDraftRequest) (*apiwrap.ResponseBody[map[string]string], error)
type PostDraftRequest ¶
type PostDraftRequest struct { Id string `json:"id"` Author string `json:"author"` Title string `json:"title"` Summary string `json:"summary"` Content string `json:"content"` CoverImg string `json:"cover_img"` Categories []Category4PostDraft `json:"categories"` Tags []Tag4PostDraft `json:"tags"` StickyWeight int `json:"sticky_weight"` IsDisplayed bool `json:"is_displayed"` MetaDescription string `json:"meta_description"` MetaKeywords string `json:"meta_keywords"` WordCount int `json:"word_count"` IsCommentAllowed bool `json:"is_comment_allowed"` CreatedAt int64 `json:"created_at"` }
type PostDraftVO ¶
type PostDraftVO struct { Id string `json:"id"` Author string `json:"author"` Title string `json:"title"` Summary string `json:"summary"` Content string `json:"content"` CoverImg string `json:"cover_img"` Categories []Category4PostDraft `json:"categories"` Tags []Tag4PostDraft `json:"tags"` StickyWeight int `json:"sticky_weight"` IsDisplayed bool `json:"is_displayed"` MetaDescription string `json:"meta_description"` MetaKeywords string `json:"meta_keywords"` WordCount int `json:"word_count"` IsCommentAllowed bool `json:"is_comment_allowed"` CreatedAt int64 `json:"created_at"` }
type Tag4PostDraft ¶
Click to show internal directories.
Click to hide internal directories.