mirror of
https://github.com/certd/certd.git
synced 2026-04-15 13:32:37 +08:00
25 lines
543 B
TypeScript
25 lines
543 B
TypeScript
import { AccessInput, IAccess, IsAccess } from '@certd/pipeline';
|
||
|
||
@IsAccess({
|
||
name: 'qiniu',
|
||
title: '七牛云授权',
|
||
desc: '',
|
||
input: {},
|
||
})
|
||
export class QiniuAccess implements IAccess {
|
||
@AccessInput({
|
||
title: 'AccessKey',
|
||
rules: [{ required: true, message: '此项必填' }],
|
||
helper: 'AK,前往[密钥管理](https://portal.qiniu.com/developer/user/key)获取',
|
||
})
|
||
accessKey!: string;
|
||
@AccessInput({
|
||
title: 'SecretKey',
|
||
encrypt: true,
|
||
helper: 'SK',
|
||
})
|
||
secretKey!: string;
|
||
}
|
||
|
||
new QiniuAccess();
|