feat(pricing): 添加券码管理和使用功能

- 新增券码批次配置和券码实体
- 实现券码创建、领取、使用等接口
- 添加券码状态和优惠类型枚举
- 优化价格计算逻辑,支持券码优惠
- 新增优惠检测和应用相关功能
This commit is contained in:
2025-08-21 09:35:08 +08:00
parent e9035af542
commit eb327723cd
52 changed files with 2572 additions and 455 deletions

View File

@@ -0,0 +1,15 @@
package com.ycwl.basic.pricing.exception;
/**
* 券码无效异常
*/
public class VoucherInvalidException extends RuntimeException {
public VoucherInvalidException(String message) {
super(message);
}
public VoucherInvalidException(String message, Throwable cause) {
super(message, cause);
}
}