package com.gic.haoban.manage.service.service.chat;

import com.gic.haoban.manage.service.entity.chat.TabGroupChatActivityReward;

import java.util.List;
import java.util.Map;

/**
 * 社群邀请有礼奖励规则表(TabHaobanGroupChatActivityReward)表服务接口
 *
 * @author makejava
 * @since 2024-09-27 16:09:57
 */
public interface GroupChatActivityRewardService {

    /**
     * 获取活动的奖励规则
     * @param chatActivityId
     * @return
     */
    List<TabGroupChatActivityReward> listByActivityId(Long chatActivityId);

    /**
     * 批量获取活动的奖励规则
     * @param chatActivityIdList
     * @return
     */
    Map<Long,List<TabGroupChatActivityReward>> listByActivityIdList(List<Long> chatActivityIdList);

    /**
     * 保存活动奖励规则
     * @param rewardList
     */
    void saveActivityReward(Long chatActivityId, List<TabGroupChatActivityReward> rewardList);

}
