Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Get ¶
func (c *Controller) Get(relativePath string, handler gin.HandlerFunc)
* GET方法路由handle设置
func (*Controller) Post ¶
func (c *Controller) Post(relativePath string, handler gin.HandlerFunc)
* POST方法路由handle设置
func (*Controller) PostAndGet ¶
func (c *Controller) PostAndGet(relativePath string, handler gin.HandlerFunc)
* 同时设置POST、GET方法路由handle设置
type ControllerInterface ¶
type ControllerInterface interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.