This commit is contained in:
guochunsi
2026-01-09 18:46:41 +08:00
parent bacf93c33e
commit 4b46d3cc0d
40 changed files with 1977 additions and 939 deletions

View File

@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
*/
export const addObj = (obj: any) => {
return request({
url: '/professional/outercompany',
url: '/professional/outercompany/add',
method: 'post',
data: obj,
});
@@ -47,8 +47,11 @@ export const addObj = (obj: any) => {
*/
export const getObj = (id: string | number) => {
return request({
url: `/professional/outercompany/${id}`,
url: `/professional/outercompany/getById`,
method: 'get',
params: {
id: id
}
});
};
@@ -58,8 +61,11 @@ export const getObj = (id: string | number) => {
*/
export const delObj = (id: string | number) => {
return request({
url: `/professional/outercompany/${id}`,
method: 'delete',
url: `/professional/outercompany/deleteById`,
method: 'post',
data: {
id: id
}
});
};
@@ -69,8 +75,8 @@ export const delObj = (id: string | number) => {
*/
export const putObj = (obj: any) => {
return request({
url: '/professional/outercompany',
method: 'put',
url: '/professional/outercompany/edit',
method: 'post',
data: obj,
});
};

View File

@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
*/
export const addObj = (obj: any) => {
return request({
url: '/professional/outercompanyemployee',
url: '/professional/outercompanyemployee/add',
method: 'post',
data: obj,
});
@@ -59,8 +59,11 @@ export const saveSecond = (obj: any) => {
*/
export const getObj = (id: string | number) => {
return request({
url: `/professional/outercompanyemployee/${id}`,
url: `/professional/outercompanyemployee/getById`,
method: 'get',
params: {
id: id
}
});
};
@@ -70,8 +73,11 @@ export const getObj = (id: string | number) => {
*/
export const delObj = (id: string | number) => {
return request({
url: `/professional/outercompanyemployee/${id}`,
method: 'delete',
url: `/professional/outercompanyemployee/deleteById`,
method: 'post',
data: {
id: id
}
});
};
@@ -81,8 +87,8 @@ export const delObj = (id: string | number) => {
*/
export const putObj = (obj: any) => {
return request({
url: '/professional/outercompanyemployee',
method: 'put',
url: '/professional/outercompanyemployee/edit',
method: 'post',
data: obj,
});
};