feat(scenic): 添加景区配置券码功能

- 在 ScenicConfigEntity 和 ScenicConfigResp 中添加 voucherEnable 字段
- 在 AppScenicController 中返回 voucherEnable信息
- 更新 ScenicMapper.xml 以支持 voucherEnable 的数据库操作
This commit is contained in:
2025-08-25 10:18:07 +08:00
parent 0c43e3f99a
commit d1bc34b52b
4 changed files with 13 additions and 2 deletions

View File

@@ -30,7 +30,6 @@ import java.util.List;
* @Date:2024/12/5 10:22
*/
@Slf4j
@Deprecated
@RestController
@RequestMapping("/api/mobile/scenic/v1")
// 景区相关接口
@@ -86,6 +85,7 @@ public class AppScenicController {
resp.setBrokerDirectRate(scenicConfig.getBrokerDirectRate());
resp.setVideoSourcePackHint(scenicConfig.getVideoSourcePackHint());
resp.setImageSourcePackHint(scenicConfig.getImageSourcePackHint());
resp.setVoucherEnable(scenicConfig.getVoucherEnable());
return ApiResponse.success(resp);
}