// resume.service.ts
import { Injectable } from '@angular/core';
import { Resume } from '../models/resume.model';

@Injectable({
  providedIn: 'root'
})
export class ResumeService {
  private resumes: Resume[] = [
    {
      id: '1',
      name: '张伟',
      position: '高级前端工程师',
      education: '硕士',
      experience: 5,
      skills: ['Angular', 'TypeScript', 'RxJS', 'SCSS'],
      status: 'pending'
    },
    {
      id: '2',
      name: '李娜',
      position: '后端开发工程师',
      education: '本科',
      experience: 3,
      skills: ['Java', 'Spring Boot', 'MySQL', '微服务'],
      status: 'approved'
    },
    {
      id: '3',
      name: '王强',
      position: 'UI设计师',
      education: '本科',
      experience: 4,
      skills: ['Figma', 'Sketch', 'Photoshop', '用户体验设计'],
      status: 'rejected'
    },
    {
      id: '4',
      name: '赵敏',
      position: '数据分析师',
      education: '博士',
      experience: 2,
      skills: ['Python', 'SQL', '机器学习', '数据可视化'],
      status: 'pending'
    }
  ];

  getResumes(): Resume[] {
    return this.resumes;
  }
}