package org.dromara.zhishu.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.zhishu.domain.Shop;
import org.dromara.zhishu.domain.UserRecharge;
import org.dromara.zhishu.domain.vo.ShopVo;
import org.dromara.zhishu.domain.vo.UserRechargeVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 用户充值Mapper接口
 *
 * @author yxy
 * @date 2025-04-26
 */
@Mapper
public interface UserRechargeMapper extends BaseMapperPlus<UserRecharge, UserRechargeVo> {


    @Override
    @DataPermission({
            @DataColumn(key = "userName", value = "create_by")
    })
    default <P extends IPage<UserRechargeVo>> P selectVoPage(IPage<UserRecharge> page, Wrapper<UserRecharge> wrapper) {
        return selectVoPage(page, wrapper, this.currentVoClass());
    }

    @Override
    @DataPermission({
            @DataColumn(key = "userName", value = "create_by")
    })
    default List<UserRechargeVo> selectVoList(Wrapper<UserRecharge> wrapper) {
        return selectVoList(wrapper, this.currentVoClass());
    }

}
