// 更新店铺经营状态
export const updateBusinessStatusApi = (params) => uni.$uv.http.post(`/ticket/business/update`, params);
// 获取商家日账单统计信息
export const getStatisticsApi = (params) => uni.$uv.http.get(`/businessDayBill/businessDayBill/getStatistics`, { params });


// 查询商家日账单列表
export const getStatisticsPageApi = (params) => uni.$uv.http.get(`/businessDayBill/businessDayBill/page`, { params });

// 获取商家日账单今日和昨日统计信息
export const getTodayStatisticsApi = (params) => uni.$uv.http.get(`/businessDayBill/businessDayBill/onDay`, { params });

// 获取商家日账单近N日统计信息
export const getSevenDayApi = (params) => uni.$uv.http.get(`/businessDayBill/businessDayBill/onSevenDay`, { params });


// 分页查询商家经营数据
export const getSalesPageApi = (params) => uni.$uv.http.get(`/businessDayBill/businessDayBill/salesPage`, { params });


//  分页查连锁店
export const getPartnerPageApi = (params) => uni.$uv.http.get(`/ticket/business/partnerPage`, { params });

//  查询商家限额
export const getBusinessLimitApi = (params) => uni.$uv.http.get(`/ticket/business/queryBusinessLimit`);

//  获取商户当前补贴模式详细信息
export const getCurrentSubsidyModeApi = (params) => uni.$uv.http.get(`/subsidy/subsidyMode/currentInfo`, { params });
//  分页查询补贴模式列表
export const getSubsidyModePageApi = (params) => uni.$uv.http.get(`/subsidy/subsidyMode/page`, { params });
//  查询补贴模式列表
export const getSubsidyModeListApi = (params) => uni.$uv.http.get(`/subsidy/subsidyMode/list`, { params });
//  获取补贴模式详细信息
export const getSubsidyModeInfoApi = (modeId) => uni.$uv.http.get(`/subsidy/subsidyMode/info/${modeId}`, {});
// 新增补贴模式
export const addSubsidyModeApi = (data) => uni.$uv.http.post(`/subsidy/subsidyMode/add`, data);
// 编辑补贴模式
export const editSubsidyModeApi = (data) => uni.$uv.http.post(`/subsidy/subsidyMode/edit`, data);

// 获取商户当前补贴模式详细信息
export const getSubsidyModeAutoApi = (params) => uni.$uv.http.get(`/subsidy/subsidyModeAuto/info`, { params });

// 设置补贴模式自动转换
export const setSubsidyModeAutoApi = (data) => uni.$uv.http.post(`/subsidy/subsidyModeAuto/set`, data);

// 开启或关闭自动化
export const setSubsidyModeAutoEnabledApi = (modeAutoId) => uni.$uv.http.post(`/subsidy/subsidyModeAuto/enabled/${modeAutoId}`, {});

// 获取当前商家的排队数量
export const getValidQueueCountApi = (params) => uni.$uv.http.get(`/subsidy/subsidyQueue/validQueueCount`, { params });

// 续期
export const ticketBusinessRenewApi = (data) => uni.$uv.http.post(`/ticket/business/renew`, data);
