/*
 * @Author: zc
 * @description 预警管理 -- 推送管理
 */
import request from '@/utils/request';
/**
 * @description 获取推送管理列表
 * @param {object}  params
 */
export const getEarlyPushList = (params?: object) => {
	return request({
		url: `/api/v1/Early/earlypush-pagelist`,
		method: 'get',
		params,
	});
};
/**
 * @description 新增推送
 * @param {object}  data
 */
export const addEarlyPush = (data: object) => {
	return request({
		url: `/api/v1/Early/add-earlypush`,
		method: 'post',
		data,
	});
};
/**
 * @description 获取推送详情
 * @param {string}  id
 */
export const getEarlyPushDetail = (id: string) => {
	return request({
		url: `/api/v1/Early/getearlypush/${id}`,
		method: 'get',
	});
};
/**
 * @description 获取可以推送的工单列表
 * @param {object}  params
 */
export const getEarlyPushOrderList = (params?: object) => {
	return request({
		url: `/api/v1/Early/early-canchooseorder`,
		method: 'get',
		params,
	});
};
/**
 * @description 获取可以推送的工单列表基础数据
 * @param {object}  params
 */
export const getEarlyPushOrderListBaseData = (params?: object) => {
	return request({
		url: `/api/v1/Early/early-canchooseorderbasedata`,
		method: 'get',
		params,
	});
};
