perf: show description in bot form

This commit is contained in:
Junyan Qin
2025-05-23 10:31:11 +08:00
parent f9f03b81d1
commit 3ac96f464d
3 changed files with 5 additions and 9 deletions

View File

@@ -57,6 +57,9 @@ spec:
label:
en_US: Host
zh_Hans: 监听主机
description:
en_US: The host that Official Account listens on for Webhook connections.
zh_Hans: 微信公众号监听的主机,除非你知道自己在做什么,否则请写 0.0.0.0
type: string
required: true
default: 0.0.0.0

View File

@@ -202,6 +202,7 @@ export default function BotForm({
default: item.default,
id: UUID.generate(),
label: item.label,
description: item.description,
name: item.name,
required: item.required,
type: parseDynamicFormItemType(item.type),

View File

@@ -84,18 +84,10 @@ export interface Adapter {
description: I18nLabel;
icon?: string;
spec: {
config: AdapterSpecConfig[];
config: IDynamicFormItemSchema[];
};
}
export interface AdapterSpecConfig {
default: string | number | boolean | Array<unknown>;
label: I18nLabel;
name: string;
required: boolean;
type: string;
}
export interface ApiRespPlatformBots {
bots: Bot[];
}