2025-04-27 15:11:50 +08:00
|
|
|
|
name: demo
|
|
|
|
|
|
title: 授权插件示例
|
|
|
|
|
|
icon: clarity:plugin-line
|
2026-01-29 00:50:45 +08:00
|
|
|
|
desc: 这是一个示例授权插件,用于演示如何实现一个授权插件
|
2025-04-27 15:11:50 +08:00
|
|
|
|
input:
|
2026-01-29 00:50:45 +08:00
|
|
|
|
apiType:
|
|
|
|
|
|
title: 授权方式
|
|
|
|
|
|
value: apiKey
|
|
|
|
|
|
component:
|
|
|
|
|
|
name: a-select
|
|
|
|
|
|
vModel: value
|
|
|
|
|
|
options:
|
|
|
|
|
|
- label: API密钥(推荐)
|
|
|
|
|
|
value: apiKey
|
|
|
|
|
|
- label: 账号密码
|
|
|
|
|
|
value: account
|
|
|
|
|
|
placeholder: demoKeyId
|
|
|
|
|
|
required: true
|
2025-04-27 15:11:50 +08:00
|
|
|
|
demoKeyId:
|
|
|
|
|
|
title: 密钥Id
|
|
|
|
|
|
component:
|
2026-01-29 00:50:45 +08:00
|
|
|
|
name: a-input
|
|
|
|
|
|
allowClear: true
|
2025-04-27 15:11:50 +08:00
|
|
|
|
placeholder: demoKeyId
|
|
|
|
|
|
required: true
|
|
|
|
|
|
demoKeySecret:
|
2026-01-29 00:50:45 +08:00
|
|
|
|
title: 密钥
|
2025-04-27 15:11:50 +08:00
|
|
|
|
required: true
|
|
|
|
|
|
encrypt: true
|
2026-01-29 00:50:45 +08:00
|
|
|
|
testRequest:
|
|
|
|
|
|
title: 测试
|
|
|
|
|
|
component:
|
|
|
|
|
|
name: api-test
|
|
|
|
|
|
action: TestRequest
|
|
|
|
|
|
helper: 点击测试接口是否正常
|
2025-04-27 15:11:50 +08:00
|
|
|
|
pluginType: access
|
2025-12-30 18:32:00 +08:00
|
|
|
|
type: builtIn
|
2025-12-31 18:39:58 +08:00
|
|
|
|
scriptFilePath: /plugins/plugin-demo/access.js
|