/**
 * 岗位树形结构模拟数据
 */

import type { Position } from '../admin/position'

const mockData: Position[] = [
  {
    id: 1,
    name: '总经理',
    code: 'GM',
    parentId: null,
    memberCount: 1,
    description: '公司最高管理者',
    status: 'active',
    createTime: '2024-01-01 10:00:00',
    children: [
      {
        id: 2,
        name: '销售部',
        code: 'SALES',
        parentId: 1,
        memberCount: 25,
        description: '负责产品销售与市场拓展',
        status: 'active',
        createTime: '2024-01-05 14:30:00',
        children: [
          {
            id: 4,
            name: '销售经理',
            code: 'SALES_MGR',
            parentId: 2,
            memberCount: 3,
            description: '管理销售团队，制定销售策略',
            status: 'active',
            createTime: '2024-01-10 09:00:00'
          },
          {
            id: 5,
            name: '销售专员',
            code: 'SALES_SPEC',
            parentId: 2,
            memberCount: 20,
            description: '执行销售任务，维护客户关系',
            status: 'active',
            createTime: '2024-01-10 09:10:00'
          }
        ]
      },
      {
        id: 3,
        name: '技术部',
        code: 'TECH',
        parentId: 1,
        memberCount: 30,
        description: '负责技术研发与系统维护',
        status: 'active',
        createTime: '2024-01-05 14:35:00',
        children: [
          {
            id: 6,
            name: '前端开发',
            code: 'FE_DEV',
            parentId: 3,
            memberCount: 10,
            description: '负责前端应用开发',
            status: 'active',
            createTime: '2024-01-10 09:20:00'
          },
          {
            id: 7,
            name: '后端开发',
            code: 'BE_DEV',
            parentId: 3,
            memberCount: 12,
            description: '负责后端服务开发',
            status: 'active',
            createTime: '2024-01-10 09:25:00'
          },
          {
            id: 8,
            name: '测试工程师',
            code: 'QA',
            parentId: 3,
            memberCount: 8,
            description: '负责软件质量保证',
            status: 'active',
            createTime: '2024-01-10 09:30:00'
          }
        ]
      }
    ]
  }
]

export default mockData
