cache

package
v0.0.0-...-f047e65 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HRouteRole

type HRouteRole struct {
	CoId   int64       `json:"-"`      // 公司Id
	Route  string      `json:"-"`      // 路由名称
	RIds   []int64     `json:"rIds"`   // 此路由关联的角色Ids
	Scopes []RoleScope `json:"scopes"` // 此路由关联的(不同角色对应的数据权限)
}

func (*HRouteRole) Clear

func (this *HRouteRole) Clear() error

func (*HRouteRole) Key

func (this *HRouteRole) Key() *rds.Hash

func (*HRouteRole) Load

func (this *HRouteRole) Load() error

func (*HRouteRole) Remove

func (this *HRouteRole) Remove() error

func (*HRouteRole) Store

func (this *HRouteRole) Store() error

type RoleScope

type RoleScope struct {
	RId   int64  `json:"rId"`
	Scope string `json:"scope"`
}

type SUserRole

type SUserRole struct {
	Id   int64       `json:"-"`    // 用户Id
	Upd  int         `json:"upd"`  // 是否有更新
	RIds []int64     `json:"rids"` // 此用户拥有的(角色Ids)
	Devs []UserDevce `json:"devs"` // 此用户登陆设备信息[Windows Android MacOS IOS Linux]
}

func (*SUserRole) Key

func (this *SUserRole) Key() *rds.String

func (*SUserRole) Load

func (this *SUserRole) Load() error

func (*SUserRole) Matched

func (this *SUserRole) Matched(osName string, devId string) bool

SUserRole.Matched 设备类型是否匹配

func (*SUserRole) Remove

func (this *SUserRole) Remove() error

func (*SUserRole) Sec

func (this *SUserRole) Sec() int64

func (*SUserRole) Store

func (this *SUserRole) Store(isLogin bool) error

func (*SUserRole) UpdTDev

func (this *SUserRole) UpdTDev(osName string, devId string)

SUserRole.UpdTDev 更新登陆设备类型

type UserDevce

type UserDevce struct {
	OsTyp string `json:"osTyp"`
	Devce string `json:"devce"`
}

Jump to

Keyboard shortcuts

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