会员积分代码提交
This commit is contained in:
@@ -3,6 +3,7 @@ package com.czg.account.service;
|
||||
import com.czg.account.dto.points.OrderDeductionPointsDTO;
|
||||
import com.czg.account.entity.MemberPoints;
|
||||
import com.czg.account.param.MemberPointsParam;
|
||||
import com.czg.order.entity.OrderInfo;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
|
||||
@@ -73,9 +74,9 @@ public interface MemberPointsService extends IService<MemberPoints> {
|
||||
* @param userId 用户id
|
||||
* @param points 积分
|
||||
* @param content 摘要信息(如:兑换积分商品/积分抵扣账单/消费赠送积分/新会员送积分/储值赠送积分)
|
||||
* @param orderId 订单id,可以为空
|
||||
* @param orderInfo 订单信息,可以为空
|
||||
*/
|
||||
boolean deductPoints(Long userId, int points, String content, Long orderId);
|
||||
boolean deductPoints(Long userId, int points, String content, OrderInfo orderInfo);
|
||||
|
||||
/**
|
||||
* 追加积分
|
||||
@@ -83,17 +84,17 @@ public interface MemberPointsService extends IService<MemberPoints> {
|
||||
* @param userId 用户id
|
||||
* @param points 积分
|
||||
* @param content 摘要信息(如:兑换积分商品/积分抵扣账单/消费赠送积分/新会员送积分/储值赠送积分)
|
||||
* @param orderId 订单id,可以为空
|
||||
* @param orderInfo 订单信息,可以为空
|
||||
* @return 成功/失败
|
||||
*/
|
||||
boolean addPoints(Long userId, int points, String content, Long orderId);
|
||||
boolean addPoints(Long userId, int points, String content, OrderInfo orderInfo);
|
||||
|
||||
/**
|
||||
* 消费赠送积分
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @param orderId 订单id
|
||||
* @param orderInfo 订单信息,可以为空
|
||||
*/
|
||||
void consumeAwardPoints(Long userId, Long orderId);
|
||||
void consumeAwardPoints(Long userId, OrderInfo orderInfo);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user