package com.m2pool.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.m2pool.lease.dto.UserWalletDataDto;
import com.m2pool.lease.entity.LeaseAutoAddress;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LeaseAutoAddressMapper extends BaseMapper<LeaseAutoAddress> {
    /**
     * 获取一个未使用的地址
     * @return
     */
    LeaseAutoAddress getOneStatusIsNoUse();


    /**
     * 获取所有有效的地址
     * @return
     */
    List<UserWalletDataDto> getValidAddress();
}
