// 功能配置系统 - 特性开关
export const featureConfig = {
  // 认证系统
  auth: {
    enabled: true,
    mockData: true,
    phoneLogin: true,
    autoLogin: true
  },

  // 地块管理
  landManagement: {
    enabled: true,
    mapIntegration: true,
    spatialAnalysis: true,
    riskWarning: true
  },

  // 农机管理
  machineryManagement: {
    enabled: true,
    realTimeMonitoring: true,
    faultDiagnosis: true,
    precisionFarming: true,
    scheduling: true
  },

  // 农事管理
  farmingOperation: {
    enabled: true,
    planning: true,
    tracking: true,
    analysis: true
  },

  // 资产管理
  assetManagement: {
    enabled: true,
    inventory: true,
    depreciation: true
  },

  // AI模型
  aiModel: {
    enabled: true,
    prediction: true,
    recommendation: true,
    analysis: true
  },

  // 水肥控制
  irrigationControl: {
    enabled: true,
    automation: true,
    monitoring: true,
    scheduling: true
  },

  // 系统配置
  systemConfig: {
    enabled: true,
    tenantManagement: true,
    userManagement: true,
    systemMonitoring: true,
    messageCenter: true
  }
}

// 环境配置
export const envConfig = {
  development: {
    apiUrl: 'http://localhost:3001/api',
    mockApi: true,
    debugMode: true
  },
  production: {
    apiUrl: '/api',
    mockApi: false,
    debugMode: false
  }
}

// 当前环境
export const currentEnv = import.meta.env.MODE || 'development'
export const config = envConfig[currentEnv]