PointsOperationService.java 940 Bytes
package com.topdraw.business.process.service;

import com.topdraw.business.process.domian.TempPoints;
import com.topdraw.business.process.service.dto.CustomPointsResult;

import java.util.List;

/**
 * @description 积分操作接口
 * @author XiangHan
 * @date 2021.10.22
 */
public interface PointsOperationService {

    /**
     *
     * @param tempPoints
     */
    void grantPointsByManualByTempPoints(TempPoints tempPoints);

    /**
     * 积分扣减
     * @param tempPoints 积分对象
     */
    CustomPointsResult customPoints(TempPoints tempPoints);


    /**
     * 积分发放,基于已获得的权益
     * @param tempPointsList 已获得的权益
     */
    void grantPointsThroughTempPoint(List<TempPoints> tempPointsList);


    /**
     * 清理过期并计算可用总积分
     * @param memberId
     * @return
     */
    @Deprecated
    Long cleanInvalidPointsAndCalculateCurrentPoints(Long memberId);
}