refactor: define

This commit is contained in:
xiaojunnuo
2021-01-26 00:58:00 +08:00
parent 2669f509e1
commit fd130f86fd
3 changed files with 46 additions and 8 deletions
+17 -2
View File
@@ -2,8 +2,23 @@ import { AbstractDnsProvider, util } from '@certd/api'
import _ from 'lodash-es'
const request = util.request
export class DnspodDnsProvider extends AbstractDnsProvider {
static name () {
return 'dnspod'
static define () {
return {
name: 'dnspod',
label: 'dnspod',
desc: '腾讯云的域名解析接口已迁移到dnspod',
input: {
id: {
type: String,
desc: 'dnspod的账户id'
},
token: {
type: String,
label: 'token',
desc: 'dnspod的开放接口token'
}
}
}
}
constructor (dnsProviderConfig) {