common

package
v1.3.0-rc.0...-5069598 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SystemOperator = "system"

Variables

View Source
var SystemUser = &commonpb.UserInfo{
	Id:   SystemOperator,
	Name: SystemOperator,
	Nick: SystemOperator,
}

Functions

func ExportExcel

func ExportExcel(exporterResp *apis.Response) (io.Reader, string, error)

func PolishUnassignedAsEmptyStr

func PolishUnassignedAsEmptyStr(userIDs []string) (result []string)

Types

type Interface

type Interface interface {
	pb.UserServiceServer
}

type USERID

type USERID string
const (
	UnassignedUserID USERID = "unassigned"
)

func (USERID) IsUnassigned

func (u USERID) IsUnassigned() bool

func (USERID) String

func (u USERID) String() string

func (*USERID) UnmarshalJSON

func (u *USERID) UnmarshalJSON(b []byte) error

maybe int or string, unmarshal them to string(USERID)

type UserInfo

type UserInfo struct {
	*commonpb.UserInfo
	SessionRefresh *identitypb.SessionRefresh
}

type UserScopeInfo

type UserScopeInfo struct {
	OrgID uint64 `json:"orgId"`
}

Jump to

Keyboard shortcuts

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