auth.service.d.ts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import Parse from "parse";
  2. import { Router } from '@angular/router';
  3. import { NovaCloudService } from '../../nova-cloud';
  4. import { HttpClient } from '@angular/common/http';
  5. import { ToastController } from '@ionic/angular/standalone';
  6. import * as i0 from "@angular/core";
  7. export declare class AuthService {
  8. router: Router;
  9. private toastCtrl;
  10. private novaCloud;
  11. private http;
  12. /**
  13. * 守卫方式:权限验证锁定方式
  14. * @type "page"|"modal" page页面跳转 modal弹窗锁定
  15. */
  16. guardType: "page" | "modal";
  17. guardMap: any;
  18. isModalShow: boolean;
  19. isGuardLock(url: any): boolean;
  20. showBackHome: boolean;
  21. activeButton: string;
  22. loginOptions: {
  23. userpwd?: boolean;
  24. mobilepwd?: boolean;
  25. mobilecode?: boolean;
  26. wechat?: boolean;
  27. };
  28. get loginTypeCount(): number;
  29. /**
  30. * 企业账套:登录用户校验所在的账套
  31. */
  32. _logoUrl: string;
  33. get logoUrl(): string;
  34. set logoUrl(v: string);
  35. company: string;
  36. getCompanyId(): string;
  37. wechatUrl: string;
  38. /**
  39. * 资金账户:user自动创建唯一资金账户
  40. */
  41. account: Parse.Object;
  42. /**
  43. * 登录状态:默认false,登陆后为true
  44. * @description
  45. * 用于守卫弹窗锁定模块校验
  46. */
  47. isLoggedIn: boolean;
  48. redirectUrl: string;
  49. constructor(router: Router, toastCtrl: ToastController, novaCloud: NovaCloudService, http: HttpClient);
  50. toast(options: any): Promise<void>;
  51. init(options: {
  52. company?: string;
  53. guardType?: "page" | "modal";
  54. LoginPage?: string;
  55. }): void;
  56. checkLoginLock(): boolean;
  57. LoginPage: string;
  58. checkLogin(url: string): boolean;
  59. setAccount(user: any): Promise<Parse.Object<Parse.Attributes>>;
  60. login(username: any, password: any): Promise<unknown>;
  61. refreshPage(): Promise<unknown>;
  62. setCurrentUserLocalStorage(user: Parse.User): void;
  63. logout(type: any, url: any): void;
  64. /**
  65. * 根据帐套内mobile字段登录逻辑
  66. */
  67. loginMobilePassword(mobile: string, password: string, msgServ: any): Promise<void>;
  68. signMobilePassword(mobile: string, password: string): Promise<any>;
  69. mobileUserMap: {};
  70. getMobileUser(mobile: string): Promise<any>;
  71. enabledLocalCode: boolean;
  72. signUpAndUpdate(mobile: any, password?: string): Promise<Parse.Object | undefined>;
  73. getMobileCodeToken(mobile: any, code: any): Promise<any>;
  74. loginCode(mobile: string, code: string, msgServ?: any, closeCallBack?: any): Promise<Boolean>;
  75. saveParamsInvite(): void;
  76. bindInvite(current?: any): Promise<void>;
  77. static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
  78. static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
  79. }