IAccountService.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 
  2. using LeaRun.Application.Entity;
  3. namespace LeaRun.Application.IService
  4. {
  5. /// <summary>
  6. /// 版 本
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2016.05.11 16:23
  10. /// 描 述:注册用户信息表
  11. /// </summary>
  12. public interface IAccountService
  13. {
  14. /// <summary>
  15. /// 登录验证
  16. /// </summary>
  17. /// <param name="mobileCode">用户名</param>
  18. /// <param name="password">密码</param>
  19. /// <returns></returns>
  20. AccountEntity CheckLogin(string mobileCode, string password);
  21. /// <summary>
  22. /// 获取验证码
  23. /// </summary>
  24. /// <param name="mobileCode">手机号码</param>
  25. /// <returns>返回6位数验证码</returns>
  26. string GetSecurityCode(string mobileCode);
  27. /// <summary>
  28. /// 注册账户
  29. /// </summary>
  30. /// <param name="accountEntity">实体对象</param>
  31. void Register(AccountEntity accountEntity);
  32. /// <summary>
  33. /// 登录限制
  34. /// </summary>
  35. /// <param name="platform">平台(苹果、安卓、PC浏览器)</param>
  36. /// <param name="account">账户</param>
  37. /// <param name="IPAddress">IP地址</param>
  38. /// <param name="iPAddressName">IP所在城市</param>
  39. void LoginLimit(string platform, string account, string iPAddress, string iPAddressName);
  40. }
  41. }