mirror of
https://github.com/certd/certd.git
synced 2026-07-17 03:17:34 +08:00
feat: midway注解方式编写插件
This commit is contained in:
@@ -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