feat: 完善招聘会统计页面
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:
2026-07-24 09:46:54 +08:00
parent c6d665c370
commit 4db3255997
4 changed files with 128 additions and 36 deletions

View File

@@ -30,6 +30,7 @@ export interface PublicJobFairJobForm {
export interface CrossDomainJobItem {
jobId: number;
jobTitle: string;
view?: number;
minSalary?: number;
maxSalary?: number;
education?: string;
@@ -49,6 +50,10 @@ export interface CrossDomainJobItem {
export interface CrossDomainJobParams {
/** 逗号分隔的城市名称 */
cityNames?: string;
/** 招聘会起始日期(含当天) */
startDate?: string;
/** 招聘会起始日期(含当天) */
endDate?: string;
current?: number;
pageSize?: number;
}
@@ -69,6 +74,30 @@ export async function getCrossDomainJobs(params?: CrossDomainJobParams) {
});
}
/** 查询跨域线上招聘会的去重统计。 */
export interface CrossDomainStatisticsParams {
startDate: string;
endDate: string;
}
export interface CrossDomainStatistics {
fairCount: number;
companyCount: number;
jobCount: number;
demandCount: number;
viewCount: number;
}
export async function getCrossDomainStatistics(params: CrossDomainStatisticsParams) {
return request<{ code: number; msg?: string; data?: CrossDomainStatistics }>(
`${BASE_URL}/cross-domain-statistics`,
{
method: 'GET',
params,
},
);
}
/** 查询招聘会列表 */
export async function getPublicJobFairList(params?: API.PublicJobFair.ListParams) {
return request<API.PublicJobFair.ListResult>(`${BASE_URL}/list`, {