import request from '@/utils/request'; // 分页查询角色 export async function getPage(params: any) { return request('/api/biz-service-ebtp-agency/api/agencies/find/myorgs', { method: 'post', data: params, }); } export async function getValidAgencyPage(params: any) { return request('/api/biz-service-ebtp-agency/api/agencies/find/valid', { method: 'post', data: params, }); } export async function getDataById(id: any) { return request(`/api/biz-service-ebtp-agency/api/agencies/${id}`, { method: 'get', }); } export async function deleteAgency(id: any) { return request(`/api/biz-service-ebtp-agency/api/agencies/delete/${id}`, { method: 'post', }); } export async function addAgency(params: any) { return request('/api/biz-service-ebtp-agency/api/agencies/create', { method: 'post', data: params, }); } export async function applyAgency(params: any) { return request('/api/biz-service-ebtp-agency/api/agencies/apply', { method: 'post', data: params, }); } export async function updateAgency(params: any) { return request('/api/biz-service-ebtp-agency/api/agencies/update', { method: 'post', data: params, }); } export async function disableAgency(id: any) { return request(`/api/biz-service-ebtp-agency/api/agencies/disable/${id}`, { method: 'post', }); } export async function getProviderToAgencyPage(params: any) { return request('/api/biz-supplier-manage/supplier/base/getToAgencyPage', { method: 'post', data: params, }); } export async function searchWaitToAgree(params: any) { return request('/api/biz-service-ebtp-agency/api/agencies/wait/to/agree', { method: 'post', data: params, }); } export async function agreeAgency(id: any) { return request(`/api/biz-service-ebtp-agency/api/agencies/approve/agree/${id}`, { method: 'post', }); } export async function rejectAgency(id: any) { return request(`/api/biz-service-ebtp-agency/api/agencies/approve/reject/${id}`, { method: 'post', }); } export async function getEntrustedProjects(params: any) { return request('/api/biz-service-ebtp-project/v1/projectRecord/getAgencyProjects', { method: 'post', data: params, }); }