POST
/cardResourceRule/getCardAppointmentResourceH5小程序预约景区资源信息
旅游卡 / 资源规则
基本信息
- 接口状态未见调用·长期未改动(待确认)
- 接口URLPOST
https://dscp-dev.hn12301.net/h5-api/cardResourceRule/getCardAppointmentResource - 请求方式
POST - Content-Type
application/json - 暴露渠道H5、小程序 前缀
/h5-api - 名称来源源码注释
- 调用方本次扫描未发现调用
- 需求上下文
- 维护人 / 最后改动luoli 2024-01-18
- 读写数据表
card_resource_rule、goods_info反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.card.CardResourceRuleController#getCardAppointmentResourceRule - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/card/CardResourceRuleController.java:401 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| id | … | 是 | Long | id → card_resource_rule.id |
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| id | … | 否 | Long | id → card_resource_rule.id |
| goodsId | … | 否 | Long | 资源ID,关联sku表id → card_resource_rule.goods_id |
| mainPic | … | 否 | String | 商品主图 |
| propagatePic | … | 否 | String | 商品信息宣传图 → goods_info.propagate_pic |
| showPrice | … | 否 | Integer | 商品挂牌价 |
| skuName | … | 否 | String | 预约景区资源名称 |
| linkphone | … | 否 | String | 商家电话 |
| businessTime | … | 否 | String | 营业时间 → goods_info.business_time |
| isAppointment | … | 否 | Boolean | 是否需要预约 → card_resource_rule.is_appointment |
| advanceDays | … | 否 | Integer | 提前预约天数 → card_resource_rule.advance_days |
| address | … | 否 | String | 地址 |
| lng | … | 否 | String | 经度 |
| lat | … | 否 | String | 纬度 |
| introduce | … | 否 | String | 商品详情 → card_resource_rule.introduce |
| notice | … | 否 | String | 预约须知 → card_resource_rule.notice |
| prompt | … | 否 | String | 温馨提示 → card_resource_rule.prompt |
| shopIntroduction | … | 否 | String | 商户简介 |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"id": "1",
"goodsId": "1",
"mainPic": "\"string\"",
"propagatePic": "\"string\"",
"showPrice": "1",
"skuName": "\"string\"",
"linkphone": "\"string\"",
"businessTime": "\"string\"",
"isAppointment": "false",
"advanceDays": "1",
"address": "\"string\"",
"lng": "\"string\""
}
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:card_resource_rule、goods_info 反查全部引用接口 →
- CardResourceRuleController#getCardAppointmentResourceRule
- CardResourceRuleService#getCardAppointmentResourceRule(CardResourceRuleServiceImpl)
- BeanUtils.map → CardAppointmentResourceDetailResponse
其它依赖:SkuCache.get、ShopCache.get、GoodsCache.get
逻辑摘要:查询详情(cardResourceRuleService.getCardAppointmentResourceRule)
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)