Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoErr = CtlResp{http.StatusOK, "OK", nil} Err404 = CtlResp{http.StatusNotFound, "资源不存在", nil} ErrInputData = CtlResp{http.StatusBadRequest, "输入参数异常", nil} )
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct {
beego.Controller
}
func (*BaseController) RespInternalError ¶
func (base *BaseController) RespInternalError(err error)
func (*BaseController) RespJson ¶
func (base *BaseController) RespJson(ctlErr CtlResp)
func (*BaseController) VerifyInputData ¶
func (base *BaseController) VerifyInputData(obj interface{}) (err error)
type HealthCheckController ¶
type HealthCheckController struct {
BaseController
}
Operations about object
func (*HealthCheckController) Get ¶
func (c *HealthCheckController) Get()
@Title getEpBySrv @Description get dolphin health status @Success 200 {string} active @router /health [get]
type MainController ¶
type MainController struct {
beego.Controller
}
Operations about home page Operations about home page
func (*MainController) Get ¶
func (c *MainController) Get()
@Title getEpBySrv @Description get nautilus home page @Success 200 {string} info @router / [get]
type ServerResp ¶
Click to show internal directories.
Click to hide internal directories.