1
This commit is contained in:
45
admin/src/api/profile/resume_info_server.js
Normal file
45
admin/src/api/profile/resume_info_server.js
Normal file
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* 简历信息 API 服务
|
||||
*/
|
||||
|
||||
class ResumeInfoServer {
|
||||
/**
|
||||
* 分页查询简历信息
|
||||
* @param {Object} param - 查询参数
|
||||
* @param {Object} param.seachOption - 搜索条件
|
||||
* @param {Object} param.pageOption - 分页选项
|
||||
* @returns {Promise}
|
||||
*/
|
||||
page(param) {
|
||||
return window.framework.http.post('/resume/list', param)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取简历统计数据
|
||||
* @returns {Promise}
|
||||
*/
|
||||
getStatistics() {
|
||||
return window.framework.http.get('/resume/statistics')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取单条简历详情
|
||||
* @param {Number|String} id - 简历ID
|
||||
* @returns {Promise}
|
||||
*/
|
||||
getById(id) {
|
||||
return window.framework.http.post('/resume/detail', { resumeId: id })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除简历
|
||||
* @param {Object} row - 简历数据(包含id)
|
||||
* @returns {Promise}
|
||||
*/
|
||||
del(row) {
|
||||
return window.framework.http.post('/resume/delete', { resumeId: row.resumeId || row.id })
|
||||
}
|
||||
}
|
||||
|
||||
export default new ResumeInfoServer()
|
||||
|
||||
Reference in New Issue
Block a user