📚 内容运营接口
GET
/contents
获取内容列表
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| page | number | 否 | 默认1 |
| limit | number | 否 | 默认20, 最大50 |
| category | string | 否 | 分类 |
| content_type | string | 否 | article/video/course |
| sort | string | 否 | popular/latest/recommended |
GET
/contents/{content_id}
获取内容详情
返回完整内容、章节、资源、作者信息、统计数据、相关推荐
POST
/contents
创建内容
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| title | string | ✅ | 1-200字符 |
| content_type | string | ✅ | article/video/course |
| category_id | uuid | ✅ | 分类ID |
| description | string | ✅ | 1-500字符 |
| content | object | ✅ | 内容数据 |
POST
/contents/{id}/favorite
收藏内容
需要 Authorization: Bearer <token>
POST
/contents/{id}/like
点赞内容
需要 Authorization: Bearer <token>
需要 Authorization: Bearer <token>