Documentation ¶
Index ¶
- type HTTPAPI
- func (h *HTTPAPI) CreateBlog(c *gin.Context)
- func (h *HTTPAPI) DeleteBlog(c *gin.Context)
- func (h *HTTPAPI) DescribeBlog(c *gin.Context)
- func (h *HTTPAPI) Init() error
- func (h *HTTPAPI) Name() string
- func (h *HTTPAPI) PatchBlog(c *gin.Context)
- func (h *HTTPAPI) PutBlog(c *gin.Context)
- func (h *HTTPAPI) QueryBlog(c *gin.Context)
- func (h *HTTPAPI) Registry(r gin.IRouter)
- func (h *HTTPAPI) UpdateBlogStatus(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPAPI ¶
type HTTPAPI struct {
// contains filtered or unexported fields
}
HTTPAPI 定义用来 对外暴露HTTP服务,注册给协议Server(HTTP Server, Gin)
func NewHTTPAPI ¶
func NewHTTPAPI() *HTTPAPI
func (*HTTPAPI) CreateBlog ¶
obj := newXXXObject() json.Unmarshal(payload, ojb)
func (*HTTPAPI) DeleteBlog ¶
func (*HTTPAPI) DescribeBlog ¶
func (*HTTPAPI) QueryBlog ¶
c.Request.URL.Query().Get("keywords") page_size, page_number req := blog.NewQueryBlogRequest() req.Keywords = c.Query("keywords") req.PageSize = c.Query("page_size") req.PageNumber = c.Query("page_number")
func (*HTTPAPI) UpdateBlogStatus ¶
Click to show internal directories.
Click to hide internal directories.