mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
feat: 【破坏性更新】插件改为metadata加载模式,plugin-cert、plugin-lib包部分代码转移到certd-server中,影响自定义插件,需要修改相关import引用
ssh、aliyun、tencent、qiniu、oss等 access和client需要转移import
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import { IsAccess, AccessInput, BaseAccess } from "@certd/pipeline";
|
||||
|
||||
/**
|
||||
* 这个注解将注册一个授权配置
|
||||
* 在certd的后台管理系统中,用户可以选择添加此类型的授权
|
||||
*/
|
||||
@IsAccess({
|
||||
name: "yfysms",
|
||||
title: "易发云短信",
|
||||
icon: "material-symbols:shield-outline",
|
||||
desc: "sms.yfyidc.cn/",
|
||||
})
|
||||
export class YfySmsAccess extends BaseAccess {
|
||||
@AccessInput({
|
||||
title: "KeyID",
|
||||
component: {
|
||||
placeholder: "api_key",
|
||||
},
|
||||
helper: "[获取密钥](http://sms.yfyidc.cn/user/index#)",
|
||||
required: true,
|
||||
encrypt: true,
|
||||
})
|
||||
keyId = "";
|
||||
|
||||
@AccessInput({
|
||||
title: "KeySecret",
|
||||
component: {
|
||||
placeholder: "",
|
||||
},
|
||||
required: true,
|
||||
encrypt: true,
|
||||
})
|
||||
keySecret = "";
|
||||
}
|
||||
|
||||
new YfySmsAccess();
|
||||
Reference in New Issue
Block a user