feat: add member URL pool and login tracking
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package consts
|
||||
|
||||
import (
|
||||
"hotgo/internal/library/dict"
|
||||
"hotgo/internal/model"
|
||||
)
|
||||
|
||||
const (
|
||||
UrlPoolStatusEnabled = 1
|
||||
UrlPoolStatusInvalid = 2
|
||||
|
||||
AppMemberLoginTypePassword = 1
|
||||
AppMemberLoginTypeSms = 2
|
||||
|
||||
AppMemberDomainBoundEnabled = 1
|
||||
AppMemberDomainUnbound = 2
|
||||
AppMemberDomainBoundInvalid = 3
|
||||
)
|
||||
|
||||
var (
|
||||
UrlPoolStatusOptions = []*model.Option{
|
||||
dict.GenSuccessOption(UrlPoolStatusEnabled, "启用"),
|
||||
dict.GenWarningOption(UrlPoolStatusInvalid, "失效"),
|
||||
}
|
||||
AppMemberLoginTypeOptions = []*model.Option{
|
||||
dict.GenPrimaryOption(AppMemberLoginTypePassword, "账号密码"),
|
||||
dict.GenInfoOption(AppMemberLoginTypeSms, "手机验证码"),
|
||||
}
|
||||
AppMemberDomainStatusOptions = []*model.Option{
|
||||
dict.GenSuccessOption(AppMemberDomainBoundEnabled, "已绑定"),
|
||||
dict.GenWarningOption(AppMemberDomainUnbound, "待绑定"),
|
||||
dict.GenErrorOption(AppMemberDomainBoundInvalid, "域名已失效"),
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
dict.RegisterEnums("urlPoolStatus", "URL地址状态", UrlPoolStatusOptions)
|
||||
dict.RegisterEnums("appMemberLoginTypeOptions", "会员登录方式", AppMemberLoginTypeOptions)
|
||||
dict.RegisterEnums("appMemberDomainStatus", "会员域名绑定状态", AppMemberDomainStatusOptions)
|
||||
}
|
||||
Reference in New Issue
Block a user