
// 新增代理申请
export const agentApplyAdd_Api = (data) => uni.$uv.http.post(`/agent/agentApply/add`, data);

// 修改代理申请
export const agentApplyEdit_Api = (data) => uni.$uv.http.post(`/agent/agentApply/edit`, data);

// 获取代理申请详细信息
export const agentApplyInfo_Api = (params) => uni.$uv.http.get(`/agent/agentApply/info`, { params });


// 获取代理申请详细信息
export const agentApplyInfoId_Api = (agentApplyId) => uni.$uv.http.get(`/agent/agentApply/info/${agentApplyId}`, {});

// 邀请码查省级代理
export const agentProvinceAgent_Api = (inviteCode) => uni.$uv.http.get(`/agent/agent/provinceAgent/${inviteCode}`, {});


// 查询代理账户码申请列表
export const agentAccountCodeApplyPage_Api = (params) => uni.$uv.http.get(`/agent/agentAccountCodeApply/page`, { params });

// 新增代理账户码申请
export const agentAccountCodeApplyAdd_Api = (data) => uni.$uv.http.post(`/agent/agentAccountCodeApply/add`, data);

// 查询代理账户码申请列表
export const agentAccountCodeApplyInfo_Api = (id) => uni.$uv.http.get(`/agent/agentAccountCodeApply/info/${id}`, {});

// 获取代理详细信息
export const agentInfo_Api = (params) => uni.$uv.http.get(`/agent/agent/info`, { params });

// 代理收益
export const agentAmount_Api = (params) => uni.$uv.http.get(`/agent/agent/amount`, { params });

// 省级分页查询代理申请列表
export const agentAgentApplyPage_Api = (params) => uni.$uv.http.get(`/agent/agentApply/page`, { params });

// 审核代理申请
export const agentAgentApplyAudit_Api = (data) => uni.$uv.http.post(`/agent/agentApply/audit`, data);

// 查询代理账户码列表
export const agentAccountCodePage_Api = (params) => uni.$uv.http.get(`/agent/agentAccountCode/page`, { params });

// 查询代理下账户码申请列表
export const agentAccountCodeApplyRegionPage_Api = (params) => uni.$uv.http.get(`/agent/agentAccountCodeApply/regionPage`, { params });

// 统计状态数量
export const agentAccountCodeCountStatus_Api = (params) => uni.$uv.http.get(`/agent/agentAccountCode/countStatus`, { params });

// 审核代理申请
export const agentAccountCodeUse_Api = (data) => uni.$uv.http.post(`/agent/agentAccountCode/use`, data);

// 剩余多少账户码
export const sumSurplusAccountCode_Api = (params) => uni.$uv.http.get(`/agent/agentAccountCode/sumSurplusAccountCode`, { params });

// 审核代理账户码申请
export const agentAccountCodeApplyAudit_Api = (data) => uni.$uv.http.post(`/agent/agentAccountCodeApply/audit`, data);

// 分页获取代理商家
export const agentBusinessPage_Api = (params) => uni.$uv.http.get(`/agent/agent/business/page`, { params });

// 推广店铺收益统计
export const agentBusinessStatistics_Api = (params) => uni.$uv.http.get(`/agent/agent/businessStatistics`, { params });

// 分页查代理伙伴
export const agentPartnerPage_Api = (params) => uni.$uv.http.get(`/agent/agent/partnerPage`, { params });

// 分页查余额明细
export const balanceRecordPage_Api = (params) => uni.$uv.http.get(`/agent/agent/balanceRecordPage`, { params });

// 获取代理二维码
export const agentGetQrCode_Api = (data) => uni.$uv.http.post(`/agent/agent/getQrCode`, data);


// 合同预览
export const agentGetContractPreview_Api = (data) => uni.$uv.http.post(`/agent/agentApply/contract/preview`, data);

// 代理商获取提现金额
export const agentWithdrawalAmount_Api = (params) => uni.$uv.http.get(`/agent/withdrawal/amount`, { params });

// 代理商新增提现
export const agentAddWithdrawal_Api = (data) => uni.$uv.http.post(`/agent/withdrawal/add`, data);

// 代理商获取提现手续费
export const agentWithdrawalFee_Api = (params) => uni.$uv.http.get(`/agent/withdrawal/fee`, { params });

// 代理商获取提现记录
export const agentWithdrawalPage_Api = (params) => uni.$uv.http.get(`/agent/withdrawal/page`, { params });

// 代理商获取提现详细信息
export const agentWithdrawalInfo_Api = (id) => uni.$uv.http.get(`/agent/withdrawal/info/${id}`, {})


// 代理配置
export const agentConfig_Api = (params) => uni.$uv.http.get(`/agent/agent/config`, { params });
