You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

106 lines
3.1 KiB

meta {
name: 推送规则分页
type: http
seq: 1
tags: [
generated
]
}
post {
url: {{baseUrl}}/api/rule/opp-push-rule/page
body: formUrlEncoded
auth: inherit
}
body:form-urlencoded {
current: 1
size: 10
applyScope: 1
status: 2
}
docs {
# 推送规则分页
`POST /api/rule/opp-push-rule/page`
推送规则分页列表(按版本维度展示;keyword 匹配规则名称/规则编码/版本号,同 code 草稿/发布中/停用各占一行)。
## 请求参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
| --- | --- | --- | --- | --- |
| current | int | 否 | 1 | 当前页码,从 1 开始 |
| size | int | 否 | 10 | 每页条数,上限 500 |
| keyword | string | 否 | - | 模糊搜索:规则名称/规则编码/版本号 |
| orderBy | string | 否 | - | 排序字段 |
| asc | boolean | 否 | false | 是否升序 |
| applyScope | int | 否 | - | 适用范围筛选:1全部商机 2条件式 |
| status | int | 否 | - | 状态筛选:1草稿 2发布中 3已停用 |
## 请求示例
请求头:Authorization: Bearer {{token}}
Content-Type: application/x-www-form-urlencoded
POST /api/rule/opp-push-rule/page
current=1&size=10&applyScope=1&status=2
## 响应 data 结构
| 字段 | 类型 | 说明 |
| --- | --- | --- |
| content[] | array<object> | 规则版本行列表 |
| id | string | 版本行 ID(Long 序列化为 string) |
| createTime | string | 创建时间 |
| updateTime | string | 更新时间 |
| ruleCode | string | 规则编码(系统生成,同模板多版本共用) |
| ruleName | string | 规则名称 |
| versionNo | string | 版本号(系统生成只读:V1.0/V1.1…) |
| 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 步骤(列表页不回显,仅 detail 返回) |
| total | long | 总条数 |
| size | long | 每页条数 |
| current | long | 当前页码 |
| pages | long | 总页数 |
| empty | boolean | 是否为空结果 |
## 响应示例
// 示例数据,字段结构以上表为准,非真实返回
```json
{
"code": 0,
"success": true,
"message": "success",
"data": {
"content": [
{
"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": null
}
],
"total": 1,
"size": 10,
"current": 1,
"pages": 1,
"empty": false
}
}
```
}