package com.softwarebr.nunu.service.sms;

/**
 * @author xu
 * @date 2019/10/23 21:36
 */
public interface CaptchaService {

    String business_identity = "identity";
    String business_withdraw = "withdraw";

    /**
     * 发送验证码
     * @param phone      手机号码
     * @param business   对应的业务
     */
    void send(String phone, String business);

    /**
     * 校验验证码
     * @param phone      手机号码
     * @param business   对应的业务
     */
    void verify(String phone, String business, String captcha);

}
