account.dart 677 B

123456789101112131415161718192021222324252627282930
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. import 'base.dart';
  3. /// 账号-医生
  4. abstract class IAccountManager implements IManager {
  5. /// 登录
  6. ///
  7. /// [account] 账号
  8. ///
  9. /// [password] 密码
  10. Future<int> login(String account, String password, bool isAutoLogin);
  11. /// 退出登录
  12. Future<bool> logout();
  13. Future<UserDTO2?> getUserDetailAsync();
  14. Future<bool> updateUserAsync(UserDTO2 dto);
  15. Future<String> getUserPasswordDetailAsync();
  16. Future<bool> updateUserPasswordAsync(String secretPassword);
  17. /// 菜单权限
  18. Future<List<UserFeatureDTO>?> getMenuPermission();
  19. /// 应用权限
  20. Future<List<UserFeatureDTO>?> getOperationPermission();
  21. }