mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-05-03 21:45:18 +08:00
用户创建服务时刻自动添加到分组、自动添加统计功能、设置是否需要绑定套餐
This commit is contained in:
18
pkg/userconfigs/user_server_config.go
Normal file
18
pkg/userconfigs/user_server_config.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package userconfigs
|
||||
|
||||
// UserServerConfig 用户服务设置
|
||||
type UserServerConfig struct {
|
||||
GroupId int64 `yaml:"groupId" json:"groupId"` // 分组
|
||||
RequirePlan bool `yaml:"requirePlan" json:"requirePlan"` // 必须使用套餐
|
||||
EnableStat bool `yaml:"enableStat" json:"enableStat"` // 开启统计
|
||||
}
|
||||
|
||||
func DefaultUserServerConfig() *UserServerConfig {
|
||||
return &UserServerConfig{
|
||||
GroupId: 0,
|
||||
RequirePlan: false,
|
||||
EnableStat: true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user