sys_enum_user

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Event = event{
	BeforeCreate: enum.New(2, "创建前"),
	AfterCreate:  enum.New(4, "创建后"),
}
View Source
var State = state{
	Unactivated: enum.New(0, "未激活"),
	Normal:      enum.New(1, "正常"),
	Suspended:   enum.New(-1, "封号"),
	Abnormality: enum.New(-2, "异常"),
	Canceled:    enum.New(-3, "已注销"),
}
View Source
var Type = userType{
	Anonymous:   enum.New(0, "匿名"),
	User:        enum.New(1, "用户"),
	WeBusiness:  enum.New(2, "微商"),
	Merchant:    enum.New(4, "商户"),
	Advertiser:  enum.New(8, "广告主"),
	Facilitator: enum.New(16, "服务商"),
	Operator:    enum.New(32, "运营商"),
	SuperAdmin:  enum.New(-1, "超级管理员"),
}
View Source
var User = user{
	Event: Event,
	Type:  Type,
	State: State,
}

Functions

This section is empty.

Types

type EventEnum

type EventEnum enum.Code

type StateEnum

type StateEnum enum.Code

type TypeEnum

type TypeEnum enum.Code

Jump to

Keyboard shortcuts

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