vo

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Index

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接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL