import exp from 'constants' import { EApplicationType } from './emit' /** 用户信息 */ export interface UserInfoResponse { deptId?: string deptName?: string headPortraitId?: string headPortraitUrl: string id?: string mobile?: string realName: string sex?: 1 | 2 userName?: string userType?: number applicationType?: number } /** 租户信息 */ export interface TanentInfoResponse { tenantCode: string loginPageBackgroundImageUrl: string tenantName: string } // 免登返回的信息 export interface noLoginResponse { systemUrl: string token: string } /** 登录响应 */ export interface LoginResponse { // 0 政府 1 企业 applicationType: EApplicationType tenantName: string realName: string token: { access_token: string expires_in: number status: boolean token_type: string } userName: string } // 默认分页返回内容 export interface DefaultListPageResponse { pageIndex: number pageSize: number totalCount: number totalPages: number indexFrom: number items: ItemData[] | null hasPreviousPage: boolean hasNextPage: boolean } export type getNoticeListResponse = DefaultListPageResponse export interface getNoticeListItemData { id: number content: string issueTime: string isEnabled: boolean } // 项目列表 export type getProjectListResponse = DefaultListPageResponse export interface getProjectListItemData { id: number projectNo: string buildLicenseNo: string projectName: string buildName: string projectAddress: string categoryName: string startTimeInterval: string statusName: string companyName: string } export type getProjectNameOptionsResponse = DefaultListPageResponse /** 获取街道返回 */ export interface GetRegionListApiResponse { id: string name: string } export interface projectDetailData extends getProjectListItemData { deviceNo: string deviceId: string engineeringCost: number contacts: string phone: string endTimeInterval: string latitude: string longitude: string status: number statusName: string companyId: string }