2025-01-02 00:28:13 +08:00
|
|
|
import { AccessInput, BaseAccess, IsAccess } from "@certd/pipeline";
|
|
|
|
|
|
|
|
|
|
@IsAccess({
|
|
|
|
|
name: "qiniu",
|
|
|
|
|
title: "七牛云授权",
|
|
|
|
|
desc: "",
|
|
|
|
|
icon: "svg:icon-qiniuyun",
|
|
|
|
|
input: {},
|
2025-08-25 16:19:37 +08:00
|
|
|
order: 2,
|
2025-01-02 00:28:13 +08:00
|
|
|
})
|
|
|
|
|
export class QiniuAccess extends BaseAccess {
|
|
|
|
|
@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();
|