This commit is contained in:
zhoutianchi
2026-01-14 11:48:21 +08:00
parent 6055033289
commit 81917e519c

View File

@@ -30,7 +30,7 @@ export const list = (query?: any) => {
*/ */
export const addObj = (obj: any) => { export const addObj = (obj: any) => {
return request({ return request({
url: '/recruit/recruitstudentplangroup', url: '/recruit/recruitstudentplangroup/add',
method: 'post', method: 'post',
data: obj, data: obj,
}); });
@@ -42,8 +42,9 @@ export const addObj = (obj: any) => {
*/ */
export const getObj = (id: string | number) => { export const getObj = (id: string | number) => {
return request({ return request({
url: `/recruit/recruitstudentplangroup/${id}`, url: `/recruit/recruitstudentplangroup/getById`,
method: 'get', method: 'get',
params: { id: id },
}); });
}; };
@@ -53,8 +54,9 @@ export const getObj = (id: string | number) => {
*/ */
export const delObj = (id: string | number) => { export const delObj = (id: string | number) => {
return request({ return request({
url: `/recruit/recruitstudentplangroup/${id}`, url: `/recruit/recruitstudentplangroup/deleteById`,
method: 'delete', method: 'post',
data: { id: id },
}); });
}; };
@@ -64,8 +66,8 @@ export const delObj = (id: string | number) => {
*/ */
export const putObj = (obj: any) => { export const putObj = (obj: any) => {
return request({ return request({
url: '/recruit/recruitstudentplangroup', url: '/recruit/recruitstudentplangroup/edit',
method: 'put', method: 'post',
data: obj, data: obj,
}); });
}; };