Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct {
policy.Authorization
auth.RequestUser
validator.Validation
model.BaseModel
Lookup map[string]string
//模板变量
Data map[string]interface{} //Data map[string]interface{}
TestData map[interface{}]interface{}
// template data
TplName string
ViewPath string
Layout string
LayoutSections map[string]string // the key is the section name and the value is the template name
TplPrefix string
TplExt string
EnableRender bool
}
func (*BaseController) View ¶ added in v1.0.13
func (c *BaseController) View(request request.Context)
type Controller ¶
type ControllerInterface ¶ added in v1.0.13
type ControllerInterface interface {
View()
}
ControllerInterface is an interface to uniform all controller handler.
Click to show internal directories.
Click to hide internal directories.