This commit is contained in:
houjishuang
2025-05-27 17:14:29 +08:00
parent a3c44b886b
commit 7f28a0c355
4 changed files with 442 additions and 0 deletions

View File

@ -0,0 +1,37 @@
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',
});
}