res

package
v0.0.0-...-a619a86 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ctx = &ResCtx{}

Functions

This section is empty.

Types

type AuthRes

type AuthRes struct {
	Id        GUID
	Name      string
	SortOrder int
	Icon      string
	Ns        string
	Args      Params
	Opts      []Opt
}

func NewRes

func NewRes() *AuthRes

func (*AuthRes) DelOpt

func (p *AuthRes) DelOpt(id GUID)

func (AuthRes) GetId

func (p AuthRes) GetId() GUID

func (AuthRes) GetName

func (p AuthRes) GetName() string

func (AuthRes) GetNs

func (p AuthRes) GetNs() string

func (AuthRes) GetSortOrder

func (p AuthRes) GetSortOrder() int

func (*AuthRes) ReplaceOpt

func (p *AuthRes) ReplaceOpt(opt Entity)

type Opt

type Opt struct {
	Id        GUID
	Name      string
	Icon      string
	SortOrder int
	View      bool
	Act       string
	Args      Params
}

type ResCtx

type ResCtx struct {
}

func (*ResCtx) All

func (p *ResCtx) All() (lst []AuthRes, err error)

func (*ResCtx) AllAsTree

func (p *ResCtx) AllAsTree() (tree utils.TreeNodes, err error)

func (*ResCtx) Del

func (p *ResCtx) Del(id gobreak.GUID) gobreak.IStatus

func (*ResCtx) Get

func (p *ResCtx) Get(id gobreak.GUID) (m AuthRes, ok bool)

func (*ResCtx) Save

func (p *ResCtx) Save(m *AuthRes) gobreak.IStatus

Jump to

Keyboard shortcuts

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