You've already forked FrameTour-BE
feat(scenic): 添加景区配置券码功能
- 在 ScenicConfigEntity 和 ScenicConfigResp 中添加 voucherEnable 字段 - 在 AppScenicController 中返回 voucherEnable信息 - 更新 ScenicMapper.xml 以支持 voucherEnable 的数据库操作
This commit is contained in:
@@ -30,7 +30,6 @@ import java.util.List;
|
|||||||
* @Date:2024/12/5 10:22
|
* @Date:2024/12/5 10:22
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Deprecated
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/mobile/scenic/v1")
|
@RequestMapping("/api/mobile/scenic/v1")
|
||||||
// 景区相关接口
|
// 景区相关接口
|
||||||
@@ -86,6 +85,7 @@ public class AppScenicController {
|
|||||||
resp.setBrokerDirectRate(scenicConfig.getBrokerDirectRate());
|
resp.setBrokerDirectRate(scenicConfig.getBrokerDirectRate());
|
||||||
resp.setVideoSourcePackHint(scenicConfig.getVideoSourcePackHint());
|
resp.setVideoSourcePackHint(scenicConfig.getVideoSourcePackHint());
|
||||||
resp.setImageSourcePackHint(scenicConfig.getImageSourcePackHint());
|
resp.setImageSourcePackHint(scenicConfig.getImageSourcePackHint());
|
||||||
|
resp.setVoucherEnable(scenicConfig.getVoucherEnable());
|
||||||
return ApiResponse.success(resp);
|
return ApiResponse.success(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -126,4 +126,9 @@ public class ScenicConfigEntity {
|
|||||||
|
|
||||||
private Integer photoFreeNum;
|
private Integer photoFreeNum;
|
||||||
private Integer videoFreeNum;
|
private Integer videoFreeNum;
|
||||||
|
/**
|
||||||
|
* 是否启用券码功能
|
||||||
|
* 0-禁用 1-启用
|
||||||
|
*/
|
||||||
|
private Integer voucherEnable;
|
||||||
}
|
}
|
||||||
|
@@ -45,4 +45,9 @@ public class ScenicConfigResp {
|
|||||||
|
|
||||||
private String imageSourcePackHint = "";
|
private String imageSourcePackHint = "";
|
||||||
private String videoSourcePackHint = "";
|
private String videoSourcePackHint = "";
|
||||||
|
/**
|
||||||
|
* 是否启用券码功能
|
||||||
|
* 0-禁用 1-启用
|
||||||
|
*/
|
||||||
|
private Integer voucherEnable;
|
||||||
}
|
}
|
||||||
|
@@ -128,7 +128,8 @@
|
|||||||
video_source_pack_hint=#{videoSourcePackHint},
|
video_source_pack_hint=#{videoSourcePackHint},
|
||||||
extra_notification_time=#{extraNotificationTime},
|
extra_notification_time=#{extraNotificationTime},
|
||||||
photo_free_num= #{photoFreeNum},
|
photo_free_num= #{photoFreeNum},
|
||||||
video_free_num= #{videoFreeNum}
|
video_free_num= #{videoFreeNum},
|
||||||
|
voucher_enable= #{voucherEnable}
|
||||||
</set>
|
</set>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
Reference in New Issue
Block a user