22 lines
765 B
Go
22 lines
765 B
Go
package config
|
|
|
|
// TenantUserIdentity 租户用户身份信息
|
|
type TenantUserIdentity int
|
|
|
|
const (
|
|
TenantUserIdentityForPerson int = 0 // 0
|
|
TenantUserIdentityForCompany int = 1 // 1
|
|
TenantUserIdentityForExpert int = 1 << 1 // 2
|
|
TenantUserIdentityForResearch int = 1 << 2 // 4
|
|
TenantUserIdentityForLaboratory int = 1 << 3 // 8
|
|
TenantUserIdentityForAgent int = 1 << 4 // 16
|
|
)
|
|
|
|
// TenantUserIdentityData 用户身份信息
|
|
var TenantUserIdentityData = map[int]string{
|
|
TenantUserIdentityForPerson: "游客",
|
|
TenantUserIdentityForCompany: "企业", TenantUserIdentityForExpert: "专家",
|
|
TenantUserIdentityForResearch: "研究机构", TenantUserIdentityForLaboratory: "实验室",
|
|
TenantUserIdentityForAgent: "科技经纪人",
|
|
}
|