package system_setting

import "github.com/QuantumNous/new-api/setting/config"

type LegalSettings struct {
	UserAgreementZh  string `json:"user_agreement_zh"`
	UserAgreementEn  string `json:"user_agreement_en"`
	PrivacyPolicyZh  string `json:"privacy_policy_zh"`
	PrivacyPolicyEn  string `json:"privacy_policy_en"`
	TermsOfServiceZh string `json:"terms_of_service_zh"`
	TermsOfServiceEn string `json:"terms_of_service_en"`
	UsagePolicyZh    string `json:"usage_policy_zh"`
	UsagePolicyEn    string `json:"usage_policy_en"`
}

var defaultLegalSettings = LegalSettings{
	UserAgreementZh:  "",
	UserAgreementEn:  "",
	PrivacyPolicyZh:  "",
	PrivacyPolicyEn:  "",
	TermsOfServiceZh: "",
	TermsOfServiceEn: "",
	UsagePolicyZh:    "",
	UsagePolicyEn:    "",
}

func init() {
	config.GlobalConfig.Register("legal", &defaultLegalSettings)
}

func GetLegalSettings() *LegalSettings {
	return &defaultLegalSettings
}
