Files
ks-app-employment-service/packageRc/api/needs/personDemand.js
2025-10-31 18:43:06 +08:00

46 lines
965 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 查询个人需求信息列表
import { post, get } from '../../utils/request.js'
export function listPersonDemand(query) {
return get({
url: 'manage/personDemand/list',
params: query
})
}
export function delPersonDemand(id) {
return get({
url: 'manage/personDemand/' + id,
method: 'delete'
})
}
// 查询个人需求信息详细
export function getPersonDemand(id) {
return get({
url: 'manage/personDemand/' + id,
method: 'get'
})
}
// 新增个人需求信息
export function addPersonDemand(data) {
// 确保传递数据前进行日志输出
console.log('addPersonDemand函数接收到的数据:', data);
return post({
url: 'manage/personDemand',
method: 'post', // 修改为大写POST确保请求参数正确传递
data: data
})
}
// 修改个人需求信息
export function updatePersonDemand(data) {
return post({
url: 'manage/personDemand',
method: 'put',
data: data
})
}