meta { name: 推送规则详情 type: http seq: 2 tags: [ generated ] } get { url: {{baseUrl}}/api/rule/opp-push-rule/detail body: none auth: inherit } params:query { id: 8001 } docs { # 推送规则详情 `GET /api/rule/opp-push-rule/detail` 推送规则详情(含推送配置 4 步骤结构化回显;损坏防御为空不阻塞浏览)。 ## 请求参数 | 参数 | 类型 | 必填 | 默认 | 说明 | | --- | --- | --- | --- | --- | | id | string | 是 | - | 版本行 ID | ## 请求示例 请求头:Authorization: Bearer {{token}} GET /api/rule/opp-push-rule/detail?id=8001 ## 响应 data 结构 | 字段 | 类型 | 说明 | | --- | --- | --- | | id | string | 版本行 ID | | createTime | string | 创建时间 | | updateTime | string | 更新时间 | | ruleCode | string | 规则编码(系统生成) | | ruleName | string | 规则名称 | | versionNo | string | 版本号 | | status | number | 状态:1草稿 2发布中 3已停用 | | applyScope | number | 适用范围:1全部商机 2条件式 | | conditionType | string | 条件类型(applyScope=2 时必填) | | conditionValue | string | 条件值(applyScope=2 时必填) | | isDefault | number | 是否默认:1是 0否(同适用范围中设默认) | | ruleDesc | string | 规则说明 | | pushConfig | object | 推送配置 4 步骤 | | pushConfig.basic | object | 步骤①基础推送信息 | | pushConfig.basic.pushNodeName | string | 推送节点名称 | | pushConfig.basic.schemeTemplateId | string | 方案卡模板版本行 ID(锁定版本) | | pushConfig.basic.schemeTemplateName | string | 方案卡模板名称(出参回显) | | pushConfig.fieldValidations | array | 步骤②字段校验规则列表 | | pushConfig.fieldValidations[].fieldName | string | 字段名称 | | pushConfig.fieldValidations[].fieldSource | string | 字段来源 | | pushConfig.fieldValidations[].fieldType | string | 字段类型 | | pushConfig.fieldValidations[].validateRule | string | 校验规则 | | pushConfig.fieldValidations[].failAction | string | 校验失败处理方式 | | pushConfig.fieldMappings | array | 步骤③字段映射列表 | | pushConfig.fieldMappings[].fieldName | string | 字段名称 | | pushConfig.fieldMappings[].targetField | string | 对应字段 | | pushConfig.fieldMappings[].pushMode | string | 推送方式 | | pushConfig.projectCreation | object | 步骤④创建/关联项目 | | pushConfig.projectCreation.createMode | string | 创建方式:auto/interactive/existing | | pushConfig.projectCreation.dedupRuleId | string | 项目重复规则版本行 ID(锁定版本) | | pushConfig.projectCreation.nameRule | string | 项目名称规则 | | pushConfig.projectCreation.remarkTemplate | string | 备注信息(支持变量占位) | ## 响应示例 // 示例数据,字段结构以上表为准,非真实返回 ```json { "code": 0, "success": true, "message": "success", "data": { "id": "8001", "createTime": "2026-09-06 10:00:00", "updateTime": "2026-09-07 10:00:00", "ruleCode": "OPP_PUSH_01", "ruleName": "投标阶段方案推送", "versionNo": "V1.0", "status": 2, "applyScope": 1, "conditionType": null, "conditionValue": null, "isDefault": 1, "ruleDesc": "全部商机默认推送规则", "pushConfig": { "basic": { "pushNodeName": "方案卡确认", "schemeTemplateId": "747831302652166144", "schemeTemplateName": "全公司通用方案卡模板" }, "fieldValidations": [ { "fieldName": "预算金额", "fieldSource": "商机字段", "fieldType": "数字", "validateRule": "非空且大于 0", "failAction": "阻断提交" } ], "fieldMappings": [ { "fieldName": "方案名称", "targetField": "项目名称", "pushMode": "自动带入" } ], "projectCreation": { "createMode": "auto", "dedupRuleId": "8101", "nameRule": "{客户名称}-{方案名称}", "remarkTemplate": "负责人:{负责人},创建时间:{时间}" } } } } ``` }