37 lines
1014 B
TypeScript
37 lines
1014 B
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',
|
||
|
});
|
||
|
}
|