feat: 新增招聘会企业签到与未参会统计

This commit is contained in:
2026-07-24 12:35:30 +08:00
parent 25ba8dc0da
commit 527fcea91f
11 changed files with 332 additions and 2 deletions

View File

@@ -58,6 +58,12 @@ export interface OutdoorFairItem {
reviewStatus?: string;
/** 当前企业报名审核备注 */
reviewRemark?: string;
/** 当前企业签到状态not_checked_in/checked_in */
companyCheckInStatus?: 'not_checked_in' | 'checked_in';
/** 当前企业签到时间 */
companyCheckInTime?: string;
/** 当前企业当前是否允许签到 */
companyCheckInAllowed?: boolean;
createTime?: string;
updateTime?: string;
}
@@ -70,6 +76,14 @@ export interface OutdoorFairListParams {
region?: string;
venueId?: number;
onlineApply?: boolean;
/** 举办开始时间下限 */
startTime?: string;
/** 举办结束时间上限 */
endTime?: string;
/** 报名开始时间下限 */
applyStartTime?: string;
/** 报名截止时间上限 */
applyEndTime?: string;
current?: number;
pageSize?: number;
}
@@ -343,6 +357,25 @@ export async function getMyOutdoorFairQrCode(fairId: number) {
);
}
/**
* 当前企业在招聘会举办期间签到
* POST /api/cms/outdoor-fair/{fairId}/company/check-in
*/
export async function checkInOutdoorFair(fairId: number) {
return request<{
code: number;
msg?: string;
data?: {
fairId: number;
companyId: number;
checkInTime: string;
attendanceStatus: 'checked_in';
};
}>(`${CMS_OUTDOOR_FAIR_BASE}/${fairId}/company/check-in`, {
method: 'POST',
});
}
/**
* 管理员获取招聘会微信小程序码
* GET /api/cms/outdoor-fair/{fairId}/mini-program-qrcode