'use strict';

import { ApiTable, basicAction } from '$utils'

export function getProjectPoms () {       //获取已绑定项目
   return dispatch => basicAction({
      type: 'get',
      dispatch: dispatch,
      actionType: 'GET_PROJECT_POMS',
      url: `${ApiTable.getProjectPoms}`,
      msg: { error: '获取已绑定项目失败' },
      reducer: { name: '' }
   });
}


export function getAlarmLnspection (query) {   //查询应用巡检信息
   return dispatch => basicAction({
      type: 'get',
      dispatch: dispatch,
      query,
      actionType: 'GET_ALARM_LNICSPECTION',
      url: `${ApiTable.getAlarmLnspection}`,
      msg: { error: '查询应用巡检信息失败' },
      reducer: { name: '' }
   });
}
