/*
 * @Author: zc
 * @description 随手拍-红包审批
 */
import request from '@/utils/request';
/**
 * @description 获取市民红包审批列表基础信息
 * @param {object} params
 */
export const getCitizenRedEnvelopeApprovalBaseData = (params?: object) => {
	return request({
		url: `/api/v1/RedPack/audit/basedata`,
		method: 'get',
		params,
	});
};
/**
 * @description 获取市民红包审批列表
 * @param {object} params
 */
export const getCitizenRedEnvelopeApprovalList = (params?: object) => {
	return request({
		url: `/api/v1/RedPack/audit`,
		method: 'get',
		params,
	});
};
/**
 * @description 获取市民红包审批详情
 * @param {object} id
 */
export const getCitizenRedEnvelopeApprovalDetail = (id?: string) => {
	return request({
		url: `/api/v1/RedPack/audit/${id}`,
		method: 'get',
	});
};
/**
 * @description 获取市民红包审批短信模板
 * @param {object} params
 */
export const getCitizenRedEnvelopeApprovalSmsTemplate = (params?: object) => {
	return request({
		url: `/api/v1/RedPack/audit/sms_template`,
		method: 'get',
		params,
	});
};
/**
 * @description 获取市民红包审批基础信息
 * @param {object} params
 */
export const getCitizenRedEnvelopeApprovalBaseInfo = (params?: object) => {
	return request({
		url: `/api/v1/RedPack/audit/baseinfo`,
		method: 'get',
		params,
	});
};
/**
 * @description 市民红包审批或者拒绝
 * @param {object} data
 */
export const citizenRedEnvelopeApproval = (data: object) => {
	return request({
		url: `/api/v1/RedPack/audit`,
		method: 'put',
		data,
	});
}
/**
 * @description 获取红包审批特提信息
 * @param {string} id
 */
export const getCitizenRedEnvelopeApprovalSpecialInfo = (id?: string) => {
	return request({
		url: `/api/v1/RedPack/audit/back/${id}`,
		method: 'get',
	});
}
/**
 * @description 添加备注页面基础信息
 * @param {object} params
 */
export const getCitizenRedEnvelopeApprovalRemarkBaseInfo = (params?: object) => {
	return request({
		url: `/api/v1/RedPack/audit/remark/basedata`,
		method: 'get',
		params,
	});
}
/**
 * @description 添加备注
 * @param {object} data
 */
export const citizenRedEnvelopeApprovalRemark = (data: object) => {
	return request({
		url: `/api/v1/RedPack/audit/remark`,
		method: 'put',
		data,
	});
}
/**
 * @description 添加补充发放信息基础信息
 * @param {object} params
 */
export const getCitizenRedEnvelopeApprovalAdditionalBaseInfo = (params?: object) => {
	return request({
		url: `/api/v1/RedPack/record/basedata`,
		method: 'get',
		params,
	});
}
/**
 * @description 添加补充发放信息
 * @param {object} data
 */
export const citizenRedEnvelopeApprovalAdditional = (data: object) => {
	return request({
		url: `/api/v1/RedPack/record`,
		method: 'put',
		data,
	});
}
/**
 * @description 获取网格员红包审批列表
 * @param {object} params
 */
export const getGridRedEnvelopeApprovalList = (params?: object) => {
	return request({
		url: `/api/v1/RedPack/audit/guider`,
		method: 'get',
		params,
	});
}
/**
 * @description 获取网格员红包审批详情
 * @param {object} id
 */
export const getGridRedEnvelopeApprovalDetail = (id?: string) => {
	return request({
		url: `/api/v1/RedPack/audit/guider/${id}`,
		method: 'get',
	});
}
/**
 * @description 网格员红包审批或者拒绝
 * @param {object} data
 */
export const gridRedEnvelopeApproval = (data: object) => {
	return request({
		url: `/api/v1/RedPack/audit/guider`,
		method: 'put',
		data,
	});
}