Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct { Req *http.Request RespWriter http.ResponseWriter }
BaseContruller 基础控制器结构体
func (BaseController) Delete ¶
func (bc BaseController) Delete()
func (BaseController) Get ¶
func (bc BaseController) Get()
func (BaseController) Patch ¶ added in v1.0.1
func (bc BaseController) Patch()
func (BaseController) Post ¶
func (bc BaseController) Post()
func (BaseController) Put ¶
func (bc BaseController) Put()
func (*BaseController) SetReq ¶
func (bc *BaseController) SetReq(req *http.Request)
func (*BaseController) SetRespWriter ¶
func (bc *BaseController) SetRespWriter(respWriter http.ResponseWriter)
type Controller ¶
type Controller interface { Get() Post() Put() Delete() Patch() SetReq(req *http.Request) SetRespWriter(respWriter http.ResponseWriter) }
Controller 控制器接口
Click to show internal directories.
Click to hide internal directories.