| | |
| | | package constvar |
| | | |
| | | type UserStatus int |
| | | |
| | | const ( |
| | | UserBan UserStatus = iota |
| | | UserAlive |
| | | UserExamineIng |
| | | ) |
| | | |
| | | type DeviceStatus int |
| | | |
| | | const ( |
| | | DeviceAll DeviceStatus = iota + 1 |
| | | DeviceAlive |
| | | DeviceOffline |
| | | ) |
| | | |
| | | type ClusterStatus int |
| | | |
| | | const ( |
| | | ClusterAll ClusterStatus = iota + 1 |
| | | ClusterAlive |
| | | ClusterOffline |
| | | ) |
| | | |
| | | type UserType int |
| | | |
| | | const ( |
| | | UserTypeSuper UserType = iota + 1 // 超级管理员 |
| | | UserTypePrimary // 主账户 |
| | | UserTypeSub // 子账户 |
| | | ) |
| | | |
| | | type SalesStatus int |
| | | |
| | | const ( |
| | | SalesStatusFail SalesStatus = -1 // 失败 |
| | | SalesStatusNew SalesStatus = iota // 新建 |
| | | SalesStatusIng // 进行中 |
| | | SalesStatusSuccess // 成功 |
| | | SalesStatusLevelUptoClient // 升级为客户 |
| | | SalesStatusLevelUptoClientAndSalesChance // 升级为客户并且有销售机会 |
| | | ) |
| | | |
| | | type CurrencyType int |
| | | |
| | | const ( |
| | | CurrencyTypeCNY CurrencyType = iota + 1 // 人民币 |
| | | CurrencyTypeUSD // 美元 |
| | | CurrencyTypeEUR // 欧元 |
| | | CurrencyTypeGBP // 英镑 |
| | | ) |
| | | |
| | | type MenuType string |
| | | |
| | | const ( |
| | | MenuTypeClient MenuType = "client" |
| | | ) |
| | | |
| | | type VettingType int |
| | | |
| | | const ( |
| | | VettingTypeClient VettingType = iota + 1 |
| | | VettingTypeSales |
| | | VettingTypeSalesChance |
| | | VettingTypeSalesChanceFollow |
| | | ) |
| | | package constvar
|
| | |
|
| | | type UserStatus int
|
| | |
|
| | | const (
|
| | | UserBan UserStatus = iota
|
| | | UserAlive
|
| | | UserExamineIng
|
| | | )
|
| | |
|
| | | type DeviceStatus int
|
| | |
|
| | | const (
|
| | | DeviceAll DeviceStatus = iota + 1
|
| | | DeviceAlive
|
| | | DeviceOffline
|
| | | )
|
| | |
|
| | | type ClusterStatus int
|
| | |
|
| | | const (
|
| | | ClusterAll ClusterStatus = iota + 1
|
| | | ClusterAlive
|
| | | ClusterOffline
|
| | | )
|
| | |
|
| | | type UserType int
|
| | |
|
| | | const (
|
| | | UserTypeSuper UserType = iota + 1 // 超级管理员
|
| | | UserTypePrimary // 主账户
|
| | | UserTypeSub // 子账户
|
| | | )
|
| | |
|
| | | type SalesStatus int
|
| | |
|
| | | const (
|
| | | SalesStatusFail SalesStatus = -1 // 失败
|
| | | SalesStatusNew SalesStatus = iota // 新建
|
| | | SalesStatusIng // 进行中
|
| | | SalesStatusSuccess // 成功
|
| | | SalesStatusLevelUptoClient // 升级为客户
|
| | | SalesStatusLevelUptoClientAndSalesChance // 升级为客户并且有销售机会
|
| | | )
|
| | |
|
| | | type CurrencyType int
|
| | |
|
| | | const (
|
| | | CurrencyTypeCNY CurrencyType = iota + 1 // 人民币
|
| | | CurrencyTypeUSD // 美元
|
| | | CurrencyTypeEUR // 欧元
|
| | | CurrencyTypeGBP // 英镑
|
| | | )
|
| | |
|
| | | type MenuType string
|
| | |
|
| | | const (
|
| | | MenuTypeClient MenuType = "client"
|
| | | )
|
| | |
|
| | | type VettingType int
|
| | |
|
| | | const (
|
| | | VettingTypeClient VettingType = iota + 1
|
| | | VettingTypeSales
|
| | | VettingTypeSalesChance
|
| | | VettingTypeSalesChanceFollow
|
| | | )
|