fix: 校验咨询表单关联业务并修正发布清单文案

- 关联的业务提供项必须存在且属于当前品牌,非法 id 返回 400 而不是数据库外键错误
- targetType 由 offeringId 推导,允许传 null 改回品牌通用入口
- 业务被停用时在发布准备度里点名说明,避免静默卡住发布
- 发布清单条目改为中性描述,是否达标交给状态标签表达
This commit is contained in:
que01 committed 2026-10-14 13:55:00 +08:00
1 parent 47d6309cba
commit 7b1e9eee47
6 files changed
+223 -25

No files matched your search

+3 -2
View File
@@ -15,7 +15,7 @@ export interface InquiryMethods {
): Promise<InquirySubmission>;
createAdminInquiryForm(body: {
name: string;
offeringId?: string;
offeringId?: string | null;
fieldsSnapshot: unknown[];
isEnabled?: boolean;
purpose?: InquiryForm["purpose"];
@@ -26,7 +26,8 @@ export interface InquiryMethods {
id: string,
body: Partial<{
name: string;
offeringId: string;
/** 传 null 表示改回品牌通用入口。 */
offeringId: string | null;
fieldsSnapshot: unknown[];
isEnabled: boolean;
purpose?: InquiryForm["purpose"];