package com.hzs.member.account;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.member.account.CuMemberRecharge;

import java.util.Date;

/**
 * 会员模块定时任务
 *
 * @Description:
 * @Author: ljc
 * @Time: 2023/4/12 10:38
 * @Classname: IMemberJobServiceApi
 * @Package_name: com.hzs.member.account
 */
public interface IMemberJobServiceApi {
    /**
     * 定时插入账户详情数据
     *
     * @return
     */
    R insertAccountDetail();


    /**
     * 自动提现
     *
     * @return
     */
    R automaticWithdrawal();

    /**
     * 查询充值金额总和
     *
     * @param startDate 开始时暗
     * @param endDate   结速时间
     * @return R<CuMemberRecharge>
     */
    R<CuMemberRecharge> selectRechargeTotalAmount(Date startDate, Date endDate);


    /**
     * 自动清理垃圾数据
     *  CU_MEMBER_AWARDS
     *  CU_MEMBER_LEVEL
     *  CU_MEMBER_GRADE
     * @return
     */
    R autoDeleteGarbageData();
}
