mirror of
https://github.com/certd/certd.git
synced 2026-07-05 19:37:34 +08:00
feat: midway注解方式编写插件
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsAccess, IsAccessInput } from "@certd/pipeline";
|
||||
import { IsAccess, AccessInput } from "@certd/pipeline";
|
||||
|
||||
@IsAccess({
|
||||
name: "dnspod",
|
||||
@@ -6,7 +6,7 @@ import { IsAccess, IsAccessInput } from "@certd/pipeline";
|
||||
desc: "腾讯云的域名解析接口已迁移到dnspod",
|
||||
})
|
||||
export class DnspodAccess {
|
||||
@IsAccessInput({
|
||||
@AccessInput({
|
||||
title: "token",
|
||||
component: {
|
||||
placeholder: "开放接口token",
|
||||
@@ -14,7 +14,7 @@ export class DnspodAccess {
|
||||
rules: [{ required: true, message: "该项必填" }],
|
||||
})
|
||||
token = "";
|
||||
@IsAccessInput({
|
||||
@AccessInput({
|
||||
title: "账户id",
|
||||
component: {
|
||||
placeholder: "dnspod接口账户id",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { IsAccess, IsAccessInput } from "@certd/pipeline";
|
||||
import { IsAccess, AccessInput } from "@certd/pipeline";
|
||||
|
||||
@IsAccess({
|
||||
name: "tencent",
|
||||
title: "腾讯云",
|
||||
})
|
||||
export class TencentAccess {
|
||||
@IsAccessInput({
|
||||
@AccessInput({
|
||||
title: "secretId",
|
||||
component: {
|
||||
placeholder: "secretId",
|
||||
@@ -13,7 +13,7 @@ export class TencentAccess {
|
||||
rules: [{ required: true, message: "该项必填" }],
|
||||
})
|
||||
secretId = "";
|
||||
@IsAccessInput({
|
||||
@AccessInput({
|
||||
title: "secretKey",
|
||||
component: {
|
||||
placeholder: "secretKey",
|
||||
|
||||
Reference in New Issue
Block a user