IAccountService.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.genersoft.iot.vmp.service;
  2. import com.genersoft.iot.vmp.storager.dao.dto.UserAccount;
  3. public interface IAccountService {
  4. /**
  5. * 注册账号
  6. * @param name
  7. * @param account
  8. * @param password
  9. * @return
  10. */
  11. boolean registerAccount(String name, String account, String password);
  12. /**
  13. * 检查账号是否允许注册
  14. * @param account
  15. * @return
  16. */
  17. UserAccount checkAccount(String account);
  18. /**
  19. * 登录账号
  20. * @param account
  21. * @param password
  22. * @return
  23. */
  24. UserAccount login(String account, String password);
  25. /**
  26. * 绑定设备
  27. * @param id
  28. * @param devId
  29. * @param devCode
  30. * @return
  31. */
  32. int bindDevice(int id, int devId, String devCode);
  33. /**
  34. * 解绑设备
  35. * @param userId
  36. * @param devId
  37. * @return
  38. */
  39. int unBindDevice(int userId, int devId);
  40. /**
  41. * 检查绑定码是否能够被绑定, 能够绑定则 允许 true
  42. * @param bindCode
  43. * @return
  44. */
  45. Boolean checkIsAllowBind(String bindCode);
  46. }