/** * 简历信息 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 }) } /** * AI 分析简历 * @param {String} resumeId - 简历ID * @returns {Promise} */ analyzeWithAI(resumeId) { return window.framework.http.post('/resume/analyze-with-ai', { resumeId }) } /** * 同步在线简历 * @param {String} resumeId - 简历ID * @returns {Promise} */ syncOnline(resumeId) { return window.framework.http.post('/resume/sync-online', { resumeId }) } } export default new ResumeInfoServer()