添加招聘分类筛选功能

This commit is contained in:
2026-06-04 14:43:33 +08:00
parent ad9c448fc7
commit 0783ecb570
8 changed files with 41 additions and 17 deletions
+8
View File
@@ -83,6 +83,11 @@ export interface JobListParams {
statusFilter?: number[]
/** 搜索关键词 */
keyword?: string
/** 招聘分类 0=校招 1=实习 2=社招 3=其他 */
recruitCategory?: number
/** 排除岗位ID列表(用于推荐时排除已推荐过的) */
excludeJobIds?: number[]
}
// ==================== 求职意向 ====================
@@ -123,6 +128,9 @@ export function saveJobIntention(data: JobIntention) {
* @param params 岗位列表查询参数
*/
export function fetchJobList(params: JobListParams = {}) {
//兼容旧的数据组件,让招聘分类参数从工作类型那里拿,工作类型不需要传了
params.recruitCategory = params.employmentType
delete params.employmentType
return request.post<any, ApiResult<JobPageData>>('/job/list', {
pageNum: params.pageNum ?? 1,
pageSize: params.pageSize ?? 15,