You've already forked FrameTour-BE
- 将 autoGrantFirstPrintCoupon 方法重命名为 autoGrantCoupon - 修改 findFirstPrintCouponId 方法名为 findFirstCouponId - 调整优惠券名称匹配逻辑,移除对"first"关键字的检查 - 更新调用方 PrinterServiceImpl 中的方法引用 - 优化自动发券异常处理,确保不影响主流程
22 lines
585 B
Java
22 lines
585 B
Java
package com.ycwl.basic.pricing.service;
|
|
|
|
import com.ycwl.basic.pricing.enums.ProductType;
|
|
|
|
/**
|
|
* 自动发券服务接口
|
|
* 负责在特定场景下自动为用户发放优惠券
|
|
*/
|
|
public interface IAutoCouponService {
|
|
|
|
/**
|
|
* 自动为用户发放首次打印优惠券
|
|
*
|
|
* @param memberId 用户ID (member_id)
|
|
* @param faceId 人脸ID (face_id)
|
|
* @param scenicId 景区ID
|
|
* @param productType 商品类型
|
|
* @return 是否成功发券
|
|
*/
|
|
boolean autoGrantCoupon(Long memberId, Long faceId, Long scenicId, ProductType productType);
|
|
}
|