import type { IDeviceGroup } from './group.type';
import type { IComminList } from '../../common.type';

export interface IDeviceVsSchemes {
	code: string;
	createTime: string;
	createUser: null | null;
	deletedTime: null | string;
	deviceCode: string;
	id: number;
	isDeleted: number;
	remark: string;
	schemeName: string;
	updateTime: string;
	updateUser: null | number;
}

/** 设备-类型 */
export interface IDeviceInfo {
	clientCode: string;
	code: string;
	createTime: string;
	createUser: number | null;
	deletedTime: null;
	deviceBrand: string;
	deviceCurrentState: number;
	deviceGroupCode: number;
	deviceGroupInfo: IDeviceGroup;
	deviceGroupName: string;
	deviceGroupType: number;
	deviceInitialRunCount: number;
	deviceModel: string;
	deviceName:  string;
	deviceNo: string;
	devicePlusSn: string;
	devicePurchaseTime: string;
	deviceSn: string;
	deviceType: number;
	deviceVsSchemeList: null | any;
	deviceVsSchemes: IDeviceVsSchemes[];
	id: number;
	isDeleted: number;
	remark: string;
	sortOrder: number;
	updateTime: string | null;
	updateUser: number;
}


export interface IDeviceListReponse extends Omit<IComminList, 'list'> {
	list: IDeviceInfo[];
}