dailiku
This commit is contained in:
37
src/pages/Agency/AgencyManager/service.ts
Normal file
37
src/pages/Agency/AgencyManager/service.ts
Normal 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',
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user