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.
46 lines
1.2 KiB
46 lines
1.2 KiB
/**
|
|
* 首页相关类型定义
|
|
*/
|
|
|
|
/** 热门岗位(首页「高分优质岗位」横向卡片;薪资/评分文案已由接口层格式化) */
|
|
export interface HotJob {
|
|
id: string;
|
|
/** 岗位名称 */
|
|
title: string;
|
|
/** 匹配分数(0-100) */
|
|
score: number;
|
|
/** 评级文案,如 "优秀" */
|
|
scoreLabel: string;
|
|
/** 已格式化薪资,如 "25-40K·15薪" */
|
|
salary: string;
|
|
/** 公司名 */
|
|
company: string;
|
|
/** 城市,如 "北京" */
|
|
location: string;
|
|
/** 经验要求,如 "3-5年" */
|
|
experience: string;
|
|
/** 福利标签 */
|
|
benefits: string[];
|
|
}
|
|
|
|
/** 首页工具卡片(成长测评工具 / AI 智能工具共用的卡片结构) */
|
|
export interface HomeTool {
|
|
id: string;
|
|
/** 工具名称 */
|
|
title: string;
|
|
/** 工具描述 */
|
|
description: string;
|
|
/** Ionicons 图标名 */
|
|
icon: string;
|
|
/** 操作文案,如 "立即测评 →" */
|
|
action: string;
|
|
}
|
|
|
|
/**
|
|
* 测评工具(与 HomeTool 结构一致,语义化别名)。
|
|
* 说明:成长页已存在带 variant 字段的 AITool,首页 AI 工具独立命名为 HomeAITool 以规避重名。
|
|
*/
|
|
export type AssessmentTool = HomeTool;
|
|
|
|
/** AI 智能工具(首页) */
|
|
export type HomeAITool = HomeTool;
|