mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-30 21:21:45 +00:00
refactor: clean code
This commit is contained in:
@@ -20,8 +20,8 @@ func NewTencentCloudApplicant(option *ApplyOption) Applicant {
|
||||
}
|
||||
|
||||
func (a *tencentcloudApplicant) Apply() (*Certificate, error) {
|
||||
access := &domain.TencentAccess{}
|
||||
json.Unmarshal([]byte(a.option.Access), access)
|
||||
access := &domain.TencentCloudAccessConfig{}
|
||||
json.Unmarshal([]byte(a.option.AccessConfig), access)
|
||||
|
||||
config := tencentcloud.NewDefaultConfig()
|
||||
config.SecretID = access.SecretId
|
||||
|
Reference in New Issue
Block a user