salary
parent
1f9be6227c
commit
c258155972
@ -0,0 +1,39 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
// 查询列表-分页
|
||||
export const getPlacePage = async (params) => { |
||||
return await request.get({ url: '/admin-api/crm/sch-place/page', params }) |
||||
} |
||||
|
||||
// 查询列表-不分页
|
||||
export const getPlaceList = async (params) => { |
||||
return await request.get({ url: '/admin-api/crm/sch-place/list', params }) |
||||
} |
||||
|
||||
// 查询详情
|
||||
export const getPlace = async (id) => { |
||||
return await request.get({ url: '/admin-api/crm/sch-place/get?id=' + id }) |
||||
} |
||||
|
||||
// 新增
|
||||
export const createPlace = async (data) => { |
||||
return await request.post({ url: '/admin-api/crm/sch-place/create', data: data }) |
||||
} |
||||
|
||||
// 修改
|
||||
export const updatePlace = async (params) => { |
||||
return await request.put({ url: '/admin-api/crm/sch-place/update', data: params }) |
||||
} |
||||
|
||||
// 删除
|
||||
export const deletePlace = async (id) => { |
||||
return await request.delete({ url: '/admin-api/crm/sch-place/delete?id=' + id }) |
||||
} |
||||
|
||||
export const updatePlaceStatus = async (id, status) => { |
||||
const data = { |
||||
id, |
||||
status |
||||
} |
||||
return request.put({ url: '/admin-api/crm/sch-place/update-status', data: data }) |
||||
} |
@ -0,0 +1,34 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
// 查询列表
|
||||
export const getSchoolPage = async (params) => { |
||||
return await request.get({ url: '/admin-api/crm/sch-school/page', params }) |
||||
} |
||||
|
||||
// 查询详情
|
||||
export const getSchool = async (id) => { |
||||
return await request.get({ url: '/admin-api/crm/sch-school/get?id=' + id }) |
||||
} |
||||
|
||||
// 新增
|
||||
export const createSchool = async (data) => { |
||||
return await request.post({ url: '/admin-api/crm/sch-school/create', data: data }) |
||||
} |
||||
|
||||
// 修改
|
||||
export const updateSchool = async (params) => { |
||||
return await request.put({ url: '/admin-api/crm/sch-school/update', data: params }) |
||||
} |
||||
|
||||
// 删除
|
||||
export const deleteSchool = async (id) => { |
||||
return await request.delete({ url: '/admin-api/crm/sch-school/delete?id=' + id }) |
||||
} |
||||
|
||||
export const updateSchoolStatus = async (id, status) => { |
||||
const data = { |
||||
id, |
||||
status |
||||
} |
||||
return request.put({ url: '/admin-api/crm/sch-school/update-status', data: data }) |
||||
} |
Before Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in new issue