@yoyoboot/l-52abp-ng
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.13.
56 lines (55 loc) • 1.66 kB
TypeScript
export interface IApplicationInfoDto {
version: string | undefined;
releaseDate: moment.Moment;
features: {
[key: string]: boolean;
} | undefined;
}
export interface IUserLoginInfoDto {
name: string | undefined;
surname: string | undefined;
userName: string | undefined;
emailAddress: string | undefined;
id: string;
}
export interface ITenantLoginInfoDto {
tenancyName: string | undefined;
name: string | undefined;
logoId: string | undefined;
logoFileType: string | undefined;
customCssId: string | undefined;
subscriptionEndDateUtc: moment.Moment | undefined;
isInTrialPeriod: boolean;
edition: IEditionInfoDto;
creationTime: moment.Moment;
subscriptionDateString: string | undefined;
creationTimeString: string | undefined;
id: string;
}
export interface IEditionInfoDto {
displayName: string | undefined;
trialDayCount: number | undefined;
monthlyPrice: number | undefined;
annualPrice: number | undefined;
isHighestEdition: boolean;
isFree: boolean;
id: string;
}
export interface IAppSessionService {
/** 当前应用信息 */
readonly application: IApplicationInfoDto;
/** 当前用户 */
readonly user: IUserLoginInfoDto;
/** 当前用户id */
readonly userId: string;
/** 当前租户 */
readonly tenant: ITenantLoginInfoDto;
/** 当前租户id */
readonly tenantId: string;
/** 初始化 */
init(): Promise<boolean>;
/** 获取登录显示名称 */
getShownLoginName(): string;
/** 若有需要,切换租户 */
changeTenantIfNeeded(tenantId?: string): boolean;
}