Files
certd/packages/ui/certd-server/src/plugins/plugin-dnsla/access.ts
2025-03-14 00:53:31 +08:00

42 lines
798 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
/**
* 这个注解将注册一个授权配置
* 在certd的后台管理系统中用户可以选择添加此类型的授权
*/
@IsAccess({
name: 'dnsla',
title: 'dns.la授权',
icon: 'arcticons:dns-changer-3',
desc: '',
})
export class DnslaAccess extends BaseAccess {
/**
* 授权属性配置
*/
@AccessInput({
title: 'APIID',
component: {
placeholder: 'APIID',
},
helper:"从我的账户->API密钥中获取 APIID APISecret",
required: true,
encrypt: false,
})
apiId = '';
@AccessInput({
title: 'APISecret',
component: {
placeholder: '',
},
helper:
'',
required: false,
encrypt: true,
})
apiSecret = '';
}
new DnslaAccess();