内容接口
案例接口
读取案例库列表、筛选面板与案例详情,适合在官网或营销页展示客户案例。
获取案例列表
GET
/_api/cases公开接口分页获取已发布案例,支持按行业、功能、单位性质、来源产品线筛选。
Query 参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| page | integer | 否 | 页码,从 1 开始。 |
| pageSize | integer | 否 | 每页条数。 |
| industry | string | 否 | 行业名称,精确匹配。 |
| function | string | 否 | 功能名称,精确匹配。 |
| orgType | string | 否 | 单位性质,精确匹配。 |
| source | string | 否 | 来源产品线,精确匹配。 |
| q | string | 否 | 关键字,命中公司名、行业、域名等。 |
| sortBy | string | 否 | launchDate(最新上线)或 viewCount(浏览最多)。 |
响应示例
{
"items": [
{
"id": "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"sourceId": 356,
"name": "云速成企业官网案例",
"sourceProductLine": "云企业官网",
"industries": ["制造业"],
"functions": ["品牌展示", "产品展示"],
"orgTypes": ["企业"],
"primaryIndustry": "制造业",
"websiteUrl": "https://www.example.com",
"domain": "example.com",
"launchDate": "2025-12-01T00:00:00Z",
"viewCount": 320,
"thumbnailImageUrl": "/AppUpload/Image/case-thumb-01.webp",
"sortOrder": 0,
"isPublished": true
}
],
"page": 1,
"pageSize": 20,
"total": 219,
"totalPages": 11
}获取案例筛选面板
GET
/_api/cases/facets公开接口返回案例库的行业、功能、单位性质、来源产品线筛选项及各自数量,用于渲染筛选面板。
响应示例
{
"total": 219,
"industries": [{ "name": "制造业", "count": 42 }],
"functions": [{ "name": "品牌展示", "count": 120 }],
"orgTypes": [{ "name": "企业", "count": 190 }],
"sources": [{ "name": "云企业官网", "count": 160 }]
}获取案例详情
GET
/_api/cases/{sourceId}公开接口按公开数字标识获取案例详情,浏览量 +1,含整页截图。
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| sourceId | integer | 是 | 案例公开数字标识。 |
响应示例
{
"id": "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"sourceId": 356,
"name": "云速成企业官网案例",
"sourceProductLine": "云企业官网",
"industries": ["制造业"],
"functions": ["品牌展示", "产品展示"],
"orgTypes": ["企业"],
"primaryIndustry": "制造业",
"websiteUrl": "https://www.example.com",
"domain": "example.com",
"launchDate": "2025-12-01T00:00:00Z",
"viewCount": 321,
"thumbnailImageUrl": "/AppUpload/Image/case-thumb-01.webp",
"fullImageUrl": "/AppUpload/Image/case-full-01.webp",
"sortOrder": 0,
"isPublished": true,
"createdAt": "2025-11-20T00:00:00Z",
"updatedAt": "2025-12-01T00:00:00Z"
}