/* * @description: * @Date: 2021-10-30 16:54:24 * @LastEditTime: 2021-10-31 19:43:03 * @Author: xingheng */ export interface screenDataProps { id: number; jsonData: jsonDataProps; } export interface jsonDataProps { id: number; x: number; y: number; width: number; height: number; echartJson: unknown; } const getScreenData = async (): Promise => { const res = await fetch("http://localhost:3020/screen"); const data = await res.json(); if (data.code === 200) { return data.data; } }; export { getScreenData };