import request from '@/utils/request'; import { AxiosPromise } from 'axios'; import { QualityVO, Query, ConstructionUserVO, MachineryrVO, MaterialsVO, projectNewsVO, safetyInspectionVO, projectNewsDetailVO, weatherVO, safetyDayVO } from './type'; /** * 查询大屏质量信息 * @param query * @returns {*} */ export const getQualityList = (query?: Query): AxiosPromise => { return request({ url: '/quality/qualityInspection/gis', method: 'get', params: query }); }; /** * 查询大屏项目新闻列表 * @param query * @returns {*} */ export const getprojectNewsList = (query?: Query): AxiosPromise => { return request({ url: '/project/projectNews/list/gis', method: 'get', params: query }); }; /** * 获取项目新闻详细信息 * @param query * @returns {*} */ export const getprojectNewsDetailList = (id: number): AxiosPromise => { return request({ url: '/project/projectNews/' + id, method: 'get' }); }; /** * 查询大屏安全信息 * @param query * @returns {*} */ export const getsafetyInspectionList = (query?: Query): AxiosPromise => { return request({ url: '/safety/safetyInspection/gis', method: 'get', params: query }); }; /** * 查询施工人员大屏数据 * @param query * @returns {*} */ export const getConstructionUserList = (query?: Query): AxiosPromise => { return request({ url: '/project/constructionUser/gis', method: 'get', params: query }); }; /** * 查询大屏机械列表 * @param query * @returns {*} */ export const getMachineryrList = (query?: Query): AxiosPromise => { return request({ url: '/machinery/machinery/list/gis', method: 'get', params: query }); }; /** * 查询大屏材料信息 * @param query * @returns {*} */ export const getMaterialsList = (query?: Query): AxiosPromise => { return request({ url: '/materials/materials/list/gis', method: 'get', params: query }); }; /** * 查询项目天气 * @param query * @returns {*} */ export const getweatherList = (id?: string): AxiosPromise => { return request({ url: '/project/project/weather/' + id, method: 'get' }); }; /** * 查询项目安全天数 * @param query * @returns {*} */ export const getSafetyDay = (id?: string): AxiosPromise => { return request({ url: '/project/project/safetyDay/' + id, method: 'get' }); };