Documentation ¶ Index ¶ type Auth type BaseVO func (inst *BaseVO) GetMeta() *Meta func (inst *BaseVO) Param(name string) string func (inst *BaseVO) SetParam(name, value string) type Meta type Session type ViewObject Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Auth ¶ type Auth struct { BaseVO Auth dto.Auth `json:"auth"` } Auth ... type BaseVO ¶ type BaseVO struct { Meta } BaseVO 定义基本的视图对象 func (*BaseVO) GetMeta ¶ added in v0.1.2 func (inst *BaseVO) GetMeta() *Meta GetMeta ... func (*BaseVO) Param ¶ added in v0.1.6 func (inst *BaseVO) Param(name string) string Param 取参数的值 func (*BaseVO) SetParam ¶ added in v0.1.6 func (inst *BaseVO) SetParam(name, value string) SetParam 设置参数 type Meta ¶ added in v0.1.2 type Meta struct { Error string `json:"error"` Message string `json:"message"` Params map[string]string `json:"params"` Status int `json:"status"` Time util.Time `json:"time"` TimeFormatted time.Time `json:"timef"` } Meta 定义VO 的元数据 type Session ¶ type Session struct { BaseVO Session dto.Session `json:"session"` } Session ... type ViewObject ¶ added in v0.1.2 type ViewObject interface { GetMeta() *Meta } ViewObject 抽象的VO接口 Source Files ¶ View all Source files auth_vo.go base.go session_vo.go Click to show internal directories. Click to hide internal directories.