forked from b2894lxlx/tuanwei-admin
docs(ai): 说明大纲入参 event_funding 为何保持 string
上游该变量是 number,但表单输入框是自由文本(示例值形如 「预算 5000 元,来源为校团委志愿服务专项经费」),故由后端 normalizeEventFunding 抽出数值后再发送。抽不出数值时后端降级为空串 —— 实测上游接受空串,但不接受不可解析的文本(会让整个工作流 failed)。 同时补上 event_member / people_manage / tel_people 三个 Dify 必填变量的 可选声明:当前表单未采集,由后端补空串占位(见 issue 09)。
This commit is contained in:
@@ -2,10 +2,20 @@ export interface ActivityOutlineGenParams {
|
|||||||
event_theme: string;
|
event_theme: string;
|
||||||
people: string;
|
people: string;
|
||||||
event_time: string;
|
event_time: string;
|
||||||
|
/**
|
||||||
|
* 活动资金。这里保持 string 是**有意**的:表单输入框是自由文本
|
||||||
|
* (示例值形如「预算 5000 元,来源为校团委志愿服务专项经费」),
|
||||||
|
* 由后端 `normalizeEventFunding` 抽出数值再发给 Dify(上游该变量是 number)。
|
||||||
|
* 抽不出数值时后端降级为空串——上游接受空串,但不接受不可解析的文本。
|
||||||
|
*/
|
||||||
event_funding: string;
|
event_funding: string;
|
||||||
event_type?: string;
|
event_type?: string;
|
||||||
event_location?: string;
|
event_location?: string;
|
||||||
event_meme?: string;
|
event_meme?: string;
|
||||||
|
/** 以下 3 项为 Dify 必填变量,当前表单未采集;后端会补空串占位(见 issue 09)。 */
|
||||||
|
event_member?: string;
|
||||||
|
people_manage?: string;
|
||||||
|
tel_people?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ActivityOutlineGenResponse {
|
export interface ActivityOutlineGenResponse {
|
||||||
|
|||||||
Reference in New Issue
Block a user