Documentation ¶
Index ¶
- Variables
- func Error(r *ghttp.Request, msg string)
- func Fail(r *ghttp.Request, msg string)
- func GetUser(r *ghttp.Request) bean.SessionUser
- func Resp(r *ghttp.Request, code int, msg string, data interface{})
- func Succ(r *ghttp.Request, data interface{})
- type BaseForm
- type BaseModel
- type BaseRouter
- type IModel
Constants ¶
This section is empty.
Variables ¶
View Source
var Token *gtoken.GfToken
Functions ¶
Types ¶
type BaseForm ¶
type BaseForm struct { Page int `form:"page",json:"page"` // 当前页码 Rows int `form:"rows",json:"rows"` // 每页多少条 TotalPage int `form:"totalPage",json:"totalPage"` // 总页数 TotalSize int `form:"totalSize",json:"totalSize"` // 总共数据条数 OrderBy string `form:"orderBy",json:"orderBy"` // 排序 Params map[string]string Object interface{} }
type BaseModel ¶
type BaseModel struct { Enable int `json:"enable" gconv:"enable,omitempty"` UpdateTime string `json:"updateTime" gconv:"update_time,omitempty"` UpdateId int `json:"updateId" gconv:"update_id,omitempty"` UpdateName string `json:"updateName,omitempty" gconv:"updateName,omitempty"` CreateTime string `json:"createTime" gconv:"create_time,omitempty"` CreateId int `json:"createId" gconv:"create_id,omitempty"` CreateName string `json:"createName,omitempty" gconv:"createName,omitempty"` }
type BaseRouter ¶
type BaseRouter struct { }
baseRouter implemented global settings for all other routers.
Click to show internal directories.
Click to hide internal directories.