用户创建服务时刻自动添加到分组、自动添加统计功能、设置是否需要绑定套餐

This commit is contained in:
GoEdgeLab
2022-01-05 15:55:25 +08:00
parent e70c5acc0b
commit bf650cc383
3 changed files with 19 additions and 1 deletions

View 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,
}
}