本模块提供店铺讨论功能,支持分页查询一级讨论(主贴)以及一级讨论下的所有回复(仿B站评论模式)。支持逻辑删除、层级归类以及用户信息显示。
POST /platformStoreDiscussion/postTopicrootId 设置为生成的主键 ID。| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| storeId | Integer | 是 | 店铺ID |
| userId | Integer | 是 | 用户ID |
| content | String | 是 | 讨论内容 |
{
"code": 200,
"success": true,
"data": true,
"msg": "发布成功"
}
POST /platformStoreDiscussion/postReplyparentId 自动查询并填充 storeId 和 rootId。| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| userId | Integer | 是 | 用户ID |
| content | String | 是 | 讨论内容 |
| parentId | Integer | 是 | 被回复的讨论 ID |
{
"code": 200,
"success": true,
"data": true,
"msg": "回复成功"
}
GET /platformStoreDiscussion/pageRoot{
"code": 200,
"data": {
"records": [
{
"id": 1,
"content": "主贴内容",
"userName": "用户昵称",
"userImage": "用户头像URL",
"createdTime": "2025-12-30 14:00:00"
}
],
"total": 100,
"size": 10,
"current": 1
}
}
GET /platformStoreDiscussion/pageRepliestopic) 和分页后的回复列表 (replies)。注意:replies 列表中不包含 topic 本身。GET /platformStoreDiscussion/listDELETE /platformStoreDiscussion/delete/{id}文档版本: v1.3
最后更新: 2025-12-30
维护人员: alien