feat: add recruitment fair participant export
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
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:
@@ -1,5 +1,7 @@
|
||||
import { request } from '@umijs/max';
|
||||
import type { VenueBoothItem } from './venueInfo';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
import type { RecruitmentFairExportParams } from '@/services/jobfair/recruitmentFairExport';
|
||||
|
||||
/** 户外招聘会列表项 */
|
||||
export interface OutdoorFairItem {
|
||||
@@ -24,11 +26,11 @@ export interface OutdoorFairItem {
|
||||
reservedBoothCount?: number;
|
||||
/** 举办时间 */
|
||||
holdTime: string;
|
||||
/** 截止时间 */
|
||||
/** 招聘会结束时间 */
|
||||
endTime: string;
|
||||
/** 开放申请 */
|
||||
/** 报名开始时间 */
|
||||
applyStartTime: string;
|
||||
/** 截止申请 */
|
||||
/** 报名截止时间 */
|
||||
applyEndTime: string;
|
||||
/** 是否开启线上申请 */
|
||||
onlineApply: boolean;
|
||||
@@ -188,6 +190,15 @@ export async function getOutdoorFairList(params?: OutdoorFairListParams) {
|
||||
});
|
||||
}
|
||||
|
||||
/** 导出户外招聘会参会企业/岗位。 */
|
||||
export async function exportOutdoorFair(params: RecruitmentFairExportParams) {
|
||||
return downLoadXlsx(
|
||||
`${CMS_OUTDOOR_FAIR_BASE}/export`,
|
||||
{ params },
|
||||
`outdoor_fair_participants_${new Date().getTime()}.xlsx`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取户外招聘会详情
|
||||
* GET /api/cms/outdoor-fair/{id}
|
||||
|
||||
Reference in New Issue
Block a user