44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
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 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 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,
|
|
});
|
|
}
|
|
|