POST
/hotel/getHotelComment管理后台酒店评价表-详情
酒店 / 点评
基本信息
- 接口状态脚手架生成·未接入前端
- 接口URLPOST
https://dscp-dev.hn12301.net/manage-api/hotel/getHotelComment - 请求方式
POST - Content-Type
application/json - 暴露渠道管理后台 前缀
/manage-api - 名称来源源码注释
- 调用方本次扫描未发现调用
- 需求上下文
- 维护人 / 最后改动liuxu 2024-12-31
- 读写数据表
hotel_comment反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.hotel.HotelCommentController#getHotelComment - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/hotel/HotelCommentController.java:153 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| id | … | 是 | Long | id → hotel_comment.id |
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| id | … | 否 | Long | id → hotel_comment.id |
| hotelId | … | 否 | Long | 酒店ID → hotel_comment.hotel_id |
| roomTypeId | … | 否 | Long | 房型ID → hotel_comment.room_type_id |
| roomTypeName | … | 否 | String | |
| orderId | … | 否 | String | 订单号 → hotel_comment.order_id |
| stayDate | … | 否 | Date | 入住日期 → hotel_comment.stay_date |
| memberId | … | 否 | Long | 用户ID → hotel_comment.member_id |
| memberName | … | 否 | String | 用户名称 → hotel_comment.member_name |
| rating | … | 否 | Integer | 评分 1-5星 → hotel_comment.rating |
| content | … | 否 | String | 评价内容 → hotel_comment.content |
| images | … | 否 | String | 图片,逗号隔开 → hotel_comment.images |
| tags | … | 否 | String | 评价标签,逗号隔开 → hotel_comment.tags |
| status | … | 否 | Integer | 状态 0-待审核 1-已审核 → hotel_comment.status |
| isDeleted | … | 否 | Boolean | 是否删除(0-否,1-是) → hotel_comment.is_deleted |
| createdBy | … | 否 | Long | 创建人 → hotel_comment.created_by |
| createdTime | … | 否 | Date | 创建时间 → hotel_comment.created_time |
| updatedBy | … | 否 | Long | 修改人 → hotel_comment.updated_by |
| updatedTime | … | 否 | Date | 修改时间 → hotel_comment.updated_time |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"id": "1",
"hotelId": "1",
"roomTypeId": "1",
"roomTypeName": "\"string\"",
"orderId": "\"string\"",
"stayDate": "\"2026-01-01 00:00:00\"",
"memberId": "1",
"memberName": "\"string\"",
"rating": "1",
"content": "\"string\"",
"images": "\"string\"",
"tags": "\"string\""
}
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:hotel_comment 反查全部引用接口 →
- HotelCommentController#getHotelComment
- BeanUtils.map → HotelCommentResponse
逻辑摘要:查询详情(hotelCommentService.get);入参与返回值经 BeanUtils 做对象/分页映射
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)