Files
fe_service_ebtp_frontend/src/pages/Agency/AgencyManager/service.ts

56 lines
1.5 KiB
TypeScript
Raw Normal View History

2025-05-27 17:14:29 +08:00
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,
});
}
2025-05-30 17:05:36 +08:00
export async function getValidAgencyPage(params: any) {
return request('/api/biz-service-ebtp-agency/api/agencies/find/valid', {
method: 'post',
data: params,
});
}
2025-05-27 17:14:29 +08:00
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,
});
}
2025-05-30 17:05:36 +08:00
export async function applyAgency(params: any) {
return request('/api/biz-service-ebtp-agency/api/agencies/apply', {
method: 'post',
data: params,
});
}
2025-05-27 17:14:29 +08:00
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',
});
2025-05-28 17:22:52 +08:00
}
export async function getProviderToAgencyPage(params: any) {
return request('/api/biz-supplier-manage/supplier/base/getToAgencyPage', {
method: 'post',
data: params,
});
}