package cn.pluss.platform.mapper;

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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import cn.pluss.platform.entity.PhoneValidateCode;

@Mapper
public interface PhoneValidateCodeMapper extends BaseMapper<PhoneValidateCode> {

    /**
     * 取一个验证码
     * @param phoneValidateCode
     * @return
     */
    PhoneValidateCode queryPhoneValidateCode(PhoneValidateCode phoneValidateCode);

    List<PhoneValidateCode> queryPhoneValidateCodeList(PhoneValidateCode phoneValidateCode);

    void savePhoneValidateCode(PhoneValidateCode phoneValidateCode);

    void updatePhoneValidateCode(PhoneValidateCode phoneValidateCode);

    void deletePhoneValidateCode(PhoneValidateCode phoneValidateCode);

    List<PhoneValidateCode> queryPhoneValidateCodePage(Map map);

    Integer queryPhoneValidateCodePageCount(Map map);

    void savePhoneValidateCodeBatch(List<PhoneValidateCode> phoneValidateCodeList);
}

