package com.lz.modules.app.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.app.entity.CodeRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 短信验证码记录
 *
 * @author fumeiai
 * @email fumeiai@linzikg.com
 * @date 2020-05-28 14:50:28
 */
@Mapper
public interface CodeRecordDao extends BaseMapper<CodeRecordEntity> {


    /**
     * 获取30分钟内没有被验证的短信验证码
     *
     * @param mobile
     * @param type
     * @return
     */
    CodeRecordEntity getNoCerifyCode(@Param("mobile") String mobile, @Param("type") Integer type);


}
