You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
/**
|
|
* 岗位对比相关类型定义
|
|
*/
|
|
|
|
/** 岗位对比 - 单个岗位 */
|
|
export interface CompareJob {
|
|
id: string;
|
|
/** 岗位名称,如 "高级前端工程师" */
|
|
title: string;
|
|
/** 公司名,如 "字节跳动" */
|
|
company: string;
|
|
/** 薪资范围,如 "25-40K" */
|
|
salary: string;
|
|
/** 雷达图系列颜色(从 theme 导入) */
|
|
color: string;
|
|
}
|
|
|
|
/** 岗位对比 - 单个维度评分(一行:维度名 + 各岗位评分) */
|
|
export interface CompareDimensionScore {
|
|
/** 维度名称,如 "综合评分" */
|
|
dimension: string;
|
|
/** 各岗位评分,[92, 85, 78] 与 jobs 顺序一一对应 */
|
|
scores: number[];
|
|
}
|
|
|
|
/** 岗位对比 - 完整数据 */
|
|
export interface CompareData {
|
|
/** 参与对比的岗位列表(2-3 个) */
|
|
jobs: CompareJob[];
|
|
/** 九大维度评分 */
|
|
dimensionScores: CompareDimensionScore[];
|
|
/** 基本信息(字段名 + 各岗位对应值) */
|
|
basicInfo: {
|
|
/** 字段名,如 ["公司规模", "所在行业", ...] */
|
|
fields: string[];
|
|
/** 各字段对应各岗位的值,如 [["10000人以上", ...], ...] */
|
|
values: string[][];
|
|
};
|
|
/** 各岗位福利标签,如 [["五险一金", ...], ...] */
|
|
benefits: string[][];
|
|
}
|