2abc7be34b1f7dc69b3330003d9dc67eb858ebc0.svn-base 826 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.iamberry.app.face;
  2. import com.iamberry.wechat.tools.ResponseJson;
  3. /**
  4. * @company 深圳爱贝源科技有限公司
  5. * @website www.iamberry.com
  6. * @author 献
  7. * @tel 18271840547
  8. * @date 2016年11月1日
  9. * @explain 验证码业务接口
  10. */
  11. public interface CodeService {
  12. /**
  13. * 发送短信验证码接口
  14. * @param phone
  15. * @return
  16. */
  17. public ResponseJson sendCode(String phone, int codeScenario);
  18. /**
  19. * 根据手机号码、短信验证码、使用场景,校验是否正确
  20. * @param phone
  21. * @param code
  22. * @param codeScenario
  23. * @return
  24. * returnCode :
  25. * 404 没有找到此用户的发送记录
  26. * 403 验证码无效,已经超时
  27. * 405 验证码错误
  28. * 200 校验通过
  29. */
  30. public ResponseJson validCode(String phone, String code, int codeScenario);
  31. }