input

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxUserInfoKey = util.CtxKey("userInfo")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessGuest

type AccessGuest interface {
	ReqUser
	GetSource() string
	GetSourceID() string
}

func NewAccessGuest

func NewAccessGuest(source, sid, acc, name, db, perm string) AccessGuest

type CompanyUser

type CompanyUser interface {
	ReqUser
	GetCompID() string
	GetComp() string
}

func GetCompUserInfo

func GetCompUserInfo(req *http.Request) CompanyUser

func NewCompUser

func NewCompUser(uid, acc, name, compID, comp, perm string) CompanyUser

type ReqUser

type ReqUser interface {
	dao.LogUser
	GetId() string
	GetPerm() string
	GetDB() string
}

func GetUserInfo

func GetUserInfo(req *http.Request) ReqUser

func NewReqUser

func NewReqUser(uid, acc, name, perm string) ReqUser

Jump to

Keyboard shortcuts

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