feat: rename email to contactEmail

This commit is contained in:
Fu Diwei
2025-01-04 13:39:08 +08:00
parent da76d1065e
commit 5387c373e0
5 changed files with 17 additions and 17 deletions

View File

@@ -54,8 +54,8 @@ type Certificate struct {
}
type ApplyOption struct {
ContactEmail string `json:"contactEmail"`
SubjectAltNames string `json:"subjectAltNames"`
Email string `json:"email"`
AccessConfig string `json:"accessConfig"`
KeyAlgorithm string `json:"keyAlgorithm"`
Nameservers string `json:"nameservers"`
@@ -132,8 +132,8 @@ func GetWithApplyNode(node *domain.WorkflowNode) (Applicant, error) {
}
applyConfig := &ApplyOption{
Email: node.GetConfigString("email"),
SubjectAltNames: node.GetConfigString("domain"),
ContactEmail: node.GetConfigString("contactEmail"),
SubjectAltNames: node.GetConfigString("subjectAltNames"),
AccessConfig: access.Config,
KeyAlgorithm: node.GetConfigString("keyAlgorithm"),
Nameservers: node.GetConfigString("nameservers"),
@@ -209,7 +209,7 @@ func apply(option *ApplyOption, provider challenge.Provider) (*Certificate, erro
// link: https://github.com/go-acme/lego/issues/1867
os.Setenv("LEGO_DISABLE_CNAME_SUPPORT", strconv.FormatBool(option.DisableFollowCNAME))
myUser, err := newApplyUser(sslProvider.Provider, option.Email)
myUser, err := newApplyUser(sslProvider.Provider, option.ContactEmail)
if err != nil {
return nil, err
}

View File

@@ -2,7 +2,7 @@ package domain
// Deprecated: TODO: 即将废弃
type ApplyConfig struct {
Email string `json:"email"`
ContactEmail string `json:"contactEmail"`
ProviderAccessId string `json:"providerAccessId"`
KeyAlgorithm string `json:"keyAlgorithm"`
Nameservers string `json:"nameservers"`