Versions in this module Expand all Collapse all v1 v1.0.0 Sep 8, 2020 Changes in this version + type IApi struct + Actions map[string]func() + Config config.IConfig + Header map[string]string + Module string + Namespace string + R *http.Request + TplEngine *template.TplEngine + W http.ResponseWriter + func NewIApi(config config.IConfig, w http.ResponseWriter, r *http.Request) *IApi + func (c *IApi) Index() + func (c *IApi) Response(code int, result interface{}, message string) + func (c *IApi) ResponseWithHeader(code int, result interface{}, message string) + func (i *IApi) GetInt(name string) int + func (i *IApi) GetString(name string) string + func (i *IApi) PostInt(name string) int + func (i *IApi) PostString(name string) string + func (i *IApi) Register(action string, f func()) *IApi + func (i *IApi) Run(action string) + type IBase struct + func NewIBase(config config.IConfig, w http.ResponseWriter, r *http.Request) *IBase + type ILogin struct + func NewILogin(config config.IConfig, w http.ResponseWriter, r *http.Request) *ILogin + func (this *ILogin) Index() + type IUser struct + func NewIUser(config config.IConfig, w http.ResponseWriter, r *http.Request) *IUser + func (this *IUser) Create() + func (this *IUser) Index()