route.php 2.3 KB
<?php


/**
 * todo::只有post请求
 */
return [

    '/'  =>  [\Controller\Test::class, 'home'],

    // 登录操作
    'login' =>  [\Controller\Login::class, 'login'],
    // 邮件列表
    'lists' =>  [\Controller\Home::class, 'lists'],
    // 这个是单独处理的 aicc那边的应用
    'v2/lists' =>  [\Controller\v2\Home::class, 'lists'],
    // 黑格专用路由
    'fob/lists' =>  [\Controller\fob_ai\MailListV2::class, 'lists'],
    'fob/count' =>  [\Controller\fob_ai\MailListV2::class, 'count'],// 统计数量

    'fob/v2/lists' =>  [\Controller\fob_ai\MailListV2::class, 'lists'],
    'fob/v2/count' =>  [\Controller\fob_ai\MailListV2::class, 'count'],// 统计数量

    // 邮件详情
    'info' =>  [\Controller\Home::class, 'info'],
//    邮件文件夹
    'folder' =>  [\Controller\Folder::class, 'lists'],
//    创建文件夹
    'folder/create' =>  [\Controller\Folder::class, 'create'],
//    重命名文件夹
    'folder/rename' =>  [\Controller\Folder::class, 'rename'],
//    删除文件夹
    'folder/delete' =>  [\Controller\Folder::class, 'delete'],
//    发送邮件
    'send' =>  [\Controller\Home::class, 'send_mail'],
//    同步请求
    'sync' =>  [\Controller\Home::class, 'sync'],
    // v2 版本的
    'v2/sync' =>  [\Controller\v2\Home::class, 'sync'],
//    标记为已读
    'seen_2_unseen' =>  [\Controller\Home::class, 'seen_2_unseen'],
//    标记为已回复/未回复
    'answered_2_unanswered' =>  [\Controller\Home::class, 'answered_2_unanswered'],

    'star_2_unstar' =>  [\Controller\Home::class, 'star_2_unstar'],
    // 邮件移动文件夹
    'move' =>  [\Controller\Home::class, 'move'],
    // 复制邮件
    'copy' =>  [\Controller\Home::class, 'copy'],
    // 清除邮件
    'expunge' =>  [\Controller\Home::class, 'expunge'],
    // 检查邮箱状态
    'check' =>  [\Controller\Home::class, 'check'],

    // 发送任务
    'job'   =>  [\Controller\Job::class, 'index'],
    // 暂停任务
    'job/stop'   =>  [\Controller\Job::class, 'stop'],
    // 开始任务
    'job/start'   =>  [\Controller\Job::class, 'start'],
    // 任务详情
    'job/detail' => [\Controller\Job::class, 'jobDetail'],

    // 上传图片
    'upload/image'  =>  [\Controller\Upload::class, 'image'],

    // 解析 订阅url参数 数据
    'desubscribe'   =>  [\Controller\Home::class, 'desubscribe']

];