package com.lz.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lz.common.utils.PageUtils;
import com.lz.modules.app.entity.CodeRecordEntity;
import com.lz.modules.sys.entity.SysUserEntity;

import java.util.Map;

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

    PageUtils queryPage(Map<String, Object> params);

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

    void addCodeRecord(String verifyCode, SysUserEntity user, String result);

}

