2024-11-18 18:23:11 +08:00
|
|
|
import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 这个注解将注册一个授权配置
|
|
|
|
|
* 在certd的后台管理系统中,用户可以选择添加此类型的授权
|
|
|
|
|
*/
|
|
|
|
|
@IsAccess({
|
|
|
|
|
name: 'namesilo',
|
|
|
|
|
title: 'namesilo授权',
|
|
|
|
|
desc: '',
|
2024-11-30 01:57:09 +08:00
|
|
|
icon: 'simple-icons:namesilo',
|
2024-11-18 18:23:11 +08:00
|
|
|
})
|
|
|
|
|
export class NamesiloAccess extends BaseAccess {
|
|
|
|
|
/**
|
|
|
|
|
* 授权属性配置
|
|
|
|
|
*/
|
|
|
|
|
@AccessInput({
|
|
|
|
|
title: 'API Key',
|
|
|
|
|
component: {
|
|
|
|
|
placeholder: 'api key',
|
|
|
|
|
},
|
|
|
|
|
helper: '前往 [获取API Key](https://www.namesilo.com/account/api-manager)',
|
|
|
|
|
required: true,
|
|
|
|
|
encrypt: true,
|
|
|
|
|
})
|
|
|
|
|
apiKey = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
new NamesiloAccess();
|