feat: Enhance Outdoor Fair and Public Job Fair features
- Added QR code functionality for companies signing up for outdoor fairs. - Implemented job management for outdoor fairs, including job listing and editing. - Updated Public Job Fair detail view to reflect new data structure. - Refactored EditModal to support dynamic lists for host, co-organizer, and organizing units. - Introduced cross-domain city selection for job fairs. - Enhanced API services for managing cross-domain jobs and cities. - Improved data handling for outdoor fair items, including review status and QR code content. - Updated type definitions to accommodate new fields and structures.
This commit is contained in:
@@ -31,6 +31,20 @@ export interface OutdoorFairItem {
|
||||
onlineApply: boolean;
|
||||
/** 招聘会照片 */
|
||||
photoUrl: string;
|
||||
/** 当前企业ID */
|
||||
companyId?: number;
|
||||
/** 当前企业名称 */
|
||||
companyName?: string;
|
||||
/** 当前企业是否已报名 */
|
||||
signedUp?: boolean;
|
||||
/** 当前企业公共 H5 页面链接 */
|
||||
h5Url?: string;
|
||||
/** 二维码内容,通常与 h5Url 一致 */
|
||||
qrCodeContent?: string;
|
||||
/** 当前企业报名审核状态:0待审核 1通过 2驳回 */
|
||||
reviewStatus?: string;
|
||||
/** 当前企业报名审核备注 */
|
||||
reviewRemark?: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
@@ -85,6 +99,20 @@ export interface OutdoorFairCommonResult {
|
||||
originalFilename?: string;
|
||||
}
|
||||
|
||||
/** 企业报名/二维码信息 */
|
||||
export interface OutdoorFairCompanyQrCodeInfo {
|
||||
fairId: number;
|
||||
companyId: number;
|
||||
companyName?: string;
|
||||
signedUp?: boolean;
|
||||
reviewStatus?: string;
|
||||
reviewRemark?: string;
|
||||
deviceId?: number;
|
||||
deviceCode?: string;
|
||||
h5Url: string;
|
||||
qrCodeContent: string;
|
||||
}
|
||||
|
||||
/** 户外招聘会字典新增表单 */
|
||||
export interface OutdoorFairDictForm {
|
||||
dictType: 'outdoor_fair_type' | 'outdoor_fair_region';
|
||||
@@ -219,6 +247,28 @@ export async function addOutdoorFairDictOption(data: OutdoorFairDictForm) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前企业报名户外招聘会
|
||||
* POST /api/cms/outdoor-fair/{fairId}/company/signup
|
||||
*/
|
||||
export async function signupOutdoorFair(fairId: number) {
|
||||
return request<{ code: number; msg?: string; data: OutdoorFairCompanyQrCodeInfo }>(
|
||||
`${CMS_OUTDOOR_FAIR_BASE}/${fairId}/company/signup`,
|
||||
{ method: 'POST' },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前企业户外招聘会二维码
|
||||
* GET /api/cms/outdoor-fair/{fairId}/company/qrcode
|
||||
*/
|
||||
export async function getMyOutdoorFairQrCode(fairId: number) {
|
||||
return request<{ code: number; msg?: string; data: OutdoorFairCompanyQrCodeInfo }>(
|
||||
`${CMS_OUTDOOR_FAIR_BASE}/${fairId}/company/qrcode`,
|
||||
{ method: 'GET' },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传户外招聘会照片
|
||||
* POST /api/common/upload
|
||||
|
||||
Reference in New Issue
Block a user