增加账单、套餐相关配置

This commit is contained in:
GoEdgeLab
2021-11-11 08:31:32 +08:00
parent 79da524d88
commit 3d8d2438bc
7 changed files with 57 additions and 6 deletions

View File

@@ -21,10 +21,18 @@ const DefaultPlanExpireNoticePageBody = `<!DOCTYPE html>
// UserPlanConfig 用户套餐配置
type UserPlanConfig struct {
DayTo string `yaml:"dayTo" json:"dayTo"` // 有效期
Plan *PlanConfig `yaml:"plan" json:"plan"`
}
// Init 初始化
func (this *UserPlanConfig) Init() error {
if this.Plan != nil {
err := this.Plan.Init()
if err != nil {
return err
}
}
return nil
}