招聘会三个模块开发
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-06-24 09:06:09 +08:00
parent e7616b0c8e
commit 3b1877f302
23 changed files with 939 additions and 98 deletions

View File

@@ -4,7 +4,7 @@
import type { API as IndoorJobFairAPI } from '@/types/jobfair/indoorJobFair';
// ==================== 模拟数据 ====================
// ==================== 数据 ====================
// 模块1: 场地信息
const MOCK_VENUES: API.IndoorJobFair.VenueItem[] = [

View File

@@ -205,7 +205,7 @@ const MOCK_DATA: OutdoorFairItem[] = [
},
];
// 模拟自增 ID
// 自增 ID
let nextId = MOCK_DATA.length + 1;
// ==================== API 接口(使用假数据) ====================

View File

@@ -344,7 +344,7 @@ export async function reviewRegisteredJob(regId: number, jobId: number, status:
return { code: 200, msg: status === 'approved' ? '岗位审核通过' : '岗位审核拒绝' };
}
/** 模拟扫码签到 */
/** 扫码签到 */
export async function qrCheckIn(regId: number) {
const reg = MOCK_REGISTRATIONS.find(r => r.id === regId);
if (!reg) return { code: 404, msg: '未找到' };
@@ -366,7 +366,7 @@ export async function getAttendeeList(fairId: number, params?: { current?: numbe
return { code: 200, total, rows };
}
/** 模拟扫码入场 */
/** 扫码入场 */
export async function scanAttendeeEntry(data: { name: string; phone: string; idCard: string; checkInMethod: string }) {
const attendee: AttendeeItem = {
id: nextAttendeeId++,
@@ -486,7 +486,7 @@ export async function getGateEntryLogs(fairId: number, params?: { current?: numb
return { code: 200, total, rows };
}
/** 模拟闸机扫码 */
/** 闸机扫码 */
export async function simulateGateScan(data: { fairId: number; gateName: string; attendeeName: string; scanMethod: string }) {
const gate = MOCK_GATE_STATUSES.find(g => g.fairId === data.fairId && g.gateName === data.gateName);
if (!gate) return { code: 404, msg: '闸机未找到' };