Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostResource ¶
type PostResource struct{}
PostResource 实现资源化 CRUD
func (*PostResource) Create ¶
func (p *PostResource) Create(c *gin.Context)
func (*PostResource) Delete ¶
func (p *PostResource) Delete(c *gin.Context)
func (*PostResource) Index ¶
func (p *PostResource) Index(c *gin.Context)
func (*PostResource) Show ¶
func (p *PostResource) Show(c *gin.Context)
func (*PostResource) Update ¶
func (p *PostResource) Update(c *gin.Context)
type UserResourceHandler ¶
type UserResourceHandler struct{}
UserResourceHandler 实现ResourceHandler接口
func (*UserResourceHandler) Create ¶
func (h *UserResourceHandler) Create(c *gin.Context)
func (*UserResourceHandler) Delete ¶
func (h *UserResourceHandler) Delete(c *gin.Context)
func (*UserResourceHandler) Index ¶
func (h *UserResourceHandler) Index(c *gin.Context)
func (*UserResourceHandler) Show ¶
func (h *UserResourceHandler) Show(c *gin.Context)
func (*UserResourceHandler) Update ¶
func (h *UserResourceHandler) Update(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.