123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- // @ts-ignore
- /* eslint-disable */
- declare namespace API {
- type CurrentUser = {
- name?: string;
- avatar?: string;
- userid?: string;
- email?: string;
- signature?: string;
- title?: string;
- group?: string;
- tags?: { key?: string; label?: string }[];
- notifyCount?: number;
- unreadCount?: number;
- country?: string;
- access?: string;
- geographic?: {
- province?: { label?: string; key?: string };
- city?: { label?: string; key?: string };
- };
- address?: string;
- phone?: string;
- };
- type LoginResult = {
- status?: string;
- type?: string;
- currentAuthority?: string;
- };
- type PageParams = {
- current?: number;
- pageSize?: number;
- };
- type RuleListItem = {
- key?: number;
- disabled?: boolean;
- href?: string;
- avatar?: string;
- name?: string;
- owner?: string;
- desc?: string;
- callNo?: number;
- status?: number;
- updatedAt?: string;
- createdAt?: string;
- progress?: number;
- };
- type RuleList = {
- data?: RuleListItem[];
- /** 列表的内容总数 */
- total?: number;
- success?: boolean;
- };
- type FakeCaptcha = {
- code?: number;
- status?: string;
- };
- type LoginParams = {
- username?: string;
- password?: string;
- autoLogin?: boolean;
- type?: string;
- };
- type ErrorResponse = {
- /** 业务约定的错误码 */
- errorCode: string;
- /** 业务上的错误信息 */
- errorMessage?: string;
- /** 业务上的请求是否成功 */
- success?: boolean;
- };
- type NoticeIconList = {
- data?: NoticeIconItem[];
- /** 列表的内容总数 */
- total?: number;
- success?: boolean;
- };
- type NoticeIconItemType = 'notification' | 'message' | 'event';
- type NoticeIconItem = {
- id?: string;
- extra?: string;
- key?: string;
- read?: boolean;
- avatar?: string;
- title?: string;
- status?: string;
- datetime?: string;
- description?: string;
- type?: NoticeIconItemType;
- };
- type MapInfo = {
- left?: number;
- top?: number;
- width?: number;
- height?: number;
- value?: number;
- name?: string;
- type?: string;
- [key: string]: any;
- };
- type MapInfoRes = {
- data?: {
- height?: number;
- width?: number;
- spaceList?: MapInfo[];
- };
- result?: string;
- };
- //楼层建筑都是这种类型
- type BuildFloorItem = {
- name: string;
- id: string;
- localName: string;
- [key: string]: any;
- };
- type BuildFloorList = {
- content?: BuildFloorItem[];
- result?: string;
- count?: number;
- };
- type DeviceTimeType = {
- content?: any[];
- result?: string;
- [key: string]: any;
- };
- type EnvironmentParam = {
- data?: any;
- result?: string;
- [key: string]: any;
- };
- }
|