import type { DictionaryService } from '../index'; namespace UserService { /** * Triple«int,boolean,int» */ export interface TripleIntBooleanInt { left?: number; middle?: boolean; right?: number; } /** * Triple«int,int,boolean» */ export interface MainBuInfo { left?: number; middle?: number; right?: boolean; } export interface GetUserInfoResult { apps: { [K in DictionaryService.LangType]: AppItem[]; }; extinfo: Extinfo; identities: Identity[]; menus: DictionaryService.GetSystemMenuResult; timezone: Timezone; user: UserInfo; } export interface AppItem { createdAt: string; createdBy: string; dataVersion: number; domain: string; enabled: boolean; gatewayUrl: string; id: string; indexUrl: string; isAdminVisible: boolean; nameJson: string; sortNo: number; subsysIcon: string; subsysName: string; updatedAt: string; updatedBy: string; } export interface Extinfo { isHrbp: boolean; isOperationBum: boolean; isOperationManager: boolean; isSalesBum: boolean; isSalesManager: boolean; subGroupId: number; } export interface Identity { companyName?: string; currency?: number; currencyName?: string; empName?: string; id?: string; isAttach?: boolean; isMain?: boolean; joinDate?: string; postName?: string; timezone?: string; virtualType?: null; } export interface Timezone { cname: string; code: string; ename: string; id: number; offsetHours: number; offsetMinutes: number; sortNo: number; } /** * @description 当前用户信息 */ export interface UserInfo { aid?: string; attachBus?: string; attachOpsBus?: TripleIntBooleanInt[]; attachs?: string; attachSalesBus?: TripleIntBooleanInt[]; atype?: string; authorities?: string[]; clientId?: string; did?: number; dname?: string; eid?: string; ename?: string; exp?: number; hpid?: number; jti?: string; mainBu?: string; mainBuInfo?: MainBuInfo; oid?: number; oldid?: number; pid?: number; qywx?: string; role?: string; scope?: string[]; tz?: string; unknownUser?: boolean; userName?: string; } } export type { UserService };