package com.sqx.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.PageUtils;
import com.sqx.modules.app.entity.UserPrizeExchange;

import java.util.Map;

/**
 * 用户奖品兑换Service
 *
 * @author tankaikai
 * @since 2024-12-20 18:04
 */
public interface UserPrizeExchangeService extends IService<UserPrizeExchange> {
    /**
     * 分页查询
     *
     * @param params
     * @return
     */
    PageUtils page(Map<String, Object> params);

    /**
     * 兑换奖品
     *
     * @param entity
     */
    void exchange(Long currentUserId, UserPrizeExchange entity);

    /**
     * 发放奖品
     *
     * @param dto
     */

    void deliver(UserPrizeExchange dto);

    /**
     * 领取满签奖励现金红包
     * @param currentUserId
     */
    void receive(Long currentUserId);
}
