module.exports = [
  // 后台管理路由
  ['/admin/login', 'admin/auth/login', 'get'],
  ['/admin/auth/login', 'admin/auth/doLogin', 'post'],
  ['/admin/auth/captcha', 'admin/auth/captcha', 'get'],
  ['/admin/logout', 'admin/auth/logout'],

  // 后台页面
  ['/admin/dashboard', 'admin/dashboard/index'],
  ['/admin/dashboard/stats', 'admin/dashboard/stats'],

  // 系统管理 - 用户
  ['/admin/system/user', 'admin/system/user/index'],
  ['/admin/system/user/list', 'admin/system/user/list'],
  ['/admin/system/user/detail', 'admin/system/user/detail'],
  ['/admin/system/user/add', 'admin/system/user/add', 'post'],
  ['/admin/system/user/edit', 'admin/system/user/edit', 'post'],
  ['/admin/system/user/resetPassword', 'admin/system/user/resetPassword', 'post'],
  ['/admin/system/user/delete', 'admin/system/user/delete', 'post'],
  ['/admin/system/user/toggleStatus', 'admin/system/user/toggleStatus', 'post'],
  ['/admin/system/user/unlock', 'admin/system/user/unlock', 'post'],

  // 系统管理 - 角色
  ['/admin/system/role', 'admin/system/role/index'],
  ['/admin/system/role/list', 'admin/system/role/list'],
  ['/admin/system/role/all', 'admin/system/role/all'],
  ['/admin/system/role/detail', 'admin/system/role/detail'],
  ['/admin/system/role/add', 'admin/system/role/add', 'post'],
  ['/admin/system/role/edit', 'admin/system/role/edit', 'post'],
  ['/admin/system/role/delete', 'admin/system/role/delete', 'post'],
  ['/admin/system/role/batchDelete', 'admin/system/role/batchDelete', 'post'],
  ['/admin/system/role/assignPermissions', 'admin/system/role/assignPermissions', 'post'],

  // 系统管理 - 操作日志
  ['/admin/system/log', 'admin/system/log/index'],
  ['/admin/system/log/list', 'admin/system/log/list'],
  ['/admin/system/log/clear', 'admin/system/log/clear', 'post'],

  // 系统管理 - 短信记录
  ['/admin/system/sms', 'admin/system/sms/index'],
  ['/admin/system/sms/list', 'admin/system/sms/list'],
  ['/admin/system/sms/clearLimit', 'admin/system/sms/clearLimit', 'post'],

  // 患者管理
  ['/admin/patient', 'admin/patient/index'],
  ['/admin/patient/list', 'admin/patient/list'],
  ['/admin/patient/detail', 'admin/patient/detail'],
  ['/admin/patient/info', 'admin/patient/info'],
  ['/admin/patient/add', 'admin/patient/add', 'post'],
  ['/admin/patient/edit', 'admin/patient/edit', 'post'],
  ['/admin/patient/approve', 'admin/patient/approve', 'post'],
  ['/admin/patient/reject', 'admin/patient/reject', 'post'],
  ['/admin/patient/export', 'admin/patient/export'],
  // 公共接口
  ['/common/regions', 'common/regions'],
  ['/common/ocr/idcard', 'common/ocrIdcard', 'post'],
  ['/common/ocr/hmt', 'common/ocrHmt', 'post'],
  ['/api/content', 'common/content'],

  // 小程序接口
  ['/api/mp/login', 'mp/login', 'post'],
  ['/api/mp/phoneLogin', 'mp/phoneLogin', 'post'],
  ['/api/mp/userinfo', 'mp/userinfo'],
  ['/api/mp/upload', 'mp/upload', 'post'],
  ['/api/mp/sendSmsCode', 'mp/sendSmsCode', 'post'],
  ['/api/mp/authInfo', 'mp/authInfo'],
  ['/api/mp/authSubmit', 'mp/authSubmit', 'post'],
  ['/api/mp/changePhone', 'mp/changePhone', 'post'],
  ['/api/mp/myInfo', 'mp/myInfo'],
  ['/api/mp/saveMyInfo', 'mp/saveMyInfo', 'post'],
  ['/api/mp/sign', 'mp/sign', 'post'],
  ['/api/mp/updateAvatar', 'mp/updateAvatar', 'post'],
  ['/api/mp/messages', 'mp/messages'],
  ['/api/mp/messageDetail', 'mp/messageDetail'],
  ['/api/mp/unreadCount', 'mp/unreadCount'],
  ['/api/mp/subscribeConfig', 'mp/subscribeConfig'],

  // 瘤种管理
  ['/admin/tag', 'admin/tag/index'],
  ['/admin/tag/list', 'admin/tag/list'],
  ['/admin/tag/add', 'admin/tag/add', 'post'],
  ['/admin/tag/edit', 'admin/tag/edit', 'post'],
  ['/admin/tag/delete', 'admin/tag/delete', 'post'],
  ['/admin/tag/sort', 'admin/tag/sort', 'post'],

  // 内容管理
  ['/admin/content', 'admin/content/index'],
  ['/admin/content/list', 'admin/content/list'],
  ['/admin/content/detail', 'admin/content/detail'],
  ['/admin/content/add', 'admin/content/add', 'post'],
  ['/admin/content/edit', 'admin/content/edit', 'post'],
  ['/admin/content/delete', 'admin/content/delete', 'post'],

  // 文件上传
  ['/admin/upload', 'admin/upload/index', 'post'],
  ['/admin/upload/config', 'admin/upload/config'],
];
