Files
certd/packages/ui/certd-server/src/plugins/plugin-upyun/access.ts
2025-03-26 20:48:26 +08:00

36 lines
665 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 {AccessInput, BaseAccess, IsAccess} from '@certd/pipeline';
/**
* 这个注解将注册一个授权配置
* 在certd的后台管理系统中用户可以选择添加此类型的授权
*/
@IsAccess({
name: 'upyun',
title: '又拍云',
desc: '',
icon: 'svg:icon-upyun',
})
export class UpyunAccess extends BaseAccess {
@AccessInput({
title: '账号',
component: {
placeholder: '又拍云账号',
},
required: true,
})
username = '';
@AccessInput({
title: '密码',
component: {
placeholder: '又拍云密码',
},
required: true,
encrypt: true,
})
password = '';
}
new UpyunAccess();