07e4798d1c60d2e0b2cc2201a96847e86753f88b.svn-base 638 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.iamberry.app.mapper;
  2. import com.iamberry.app.core.entity.CodeValid;
  3. /**
  4. * @company 深圳爱贝源科技有限公司
  5. * @website www.iamberry.com
  6. * @author 献
  7. * @tel 18271840547
  8. * @date 2016年11月1日
  9. * @explain 验证码 SQL Mapper映射
  10. */
  11. public interface CodeMapper {
  12. /**
  13. * 保存一条发送记录
  14. * @param codeValid
  15. * @return
  16. */
  17. public int save(CodeValid codeValid);
  18. /**
  19. * 获取某一个手机号码最后的发送记录
  20. * @param phone
  21. * @return
  22. */
  23. public CodeValid getLast(String phone);
  24. /**
  25. * 更新状态
  26. * @param codeId
  27. * @return
  28. */
  29. public int update(Long codeId);
  30. }