| 
...
 | 
...
 | 
@@ -13,65 +13,21 @@ return [ | 
| 
 | 
 | 
     '/'  =>  [\Controller\Test::class, 'a'],
 | 
| 
 | 
 | 
     't'  =>  [\Controller\Test::class, 'home'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 登录操作
 | 
| 
 | 
 | 
      * @see \Controller\Login::login()
 | 
| 
 | 
 | 
      * @param string email 邮箱
 | 
| 
 | 
 | 
      * @param string password 密码
 | 
| 
 | 
 | 
      * @param string imap imap服务器地址
 | 
| 
 | 
 | 
      * @param string smtp smtp服务器地址
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     // 登录操作
 | 
| 
 | 
 | 
     'login' =>  [\Controller\Login::class, 'login'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 邮件列表
 | 
| 
 | 
 | 
      * @see \Controller\Home::lists()
 | 
| 
 | 
 | 
      * @param string _token_ token登录凭证
 | 
| 
 | 
 | 
      * @param int page 当前页数
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     'list' =>  [\Controller\Home::class, 'lists'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 邮件文件夹
 | 
| 
 | 
 | 
      * @see \Controller\Folder::lists()
 | 
| 
 | 
 | 
      * @param string _token_ token登录凭证
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     // 邮件列表
 | 
| 
 | 
 | 
     'lists' =>  [\Controller\Home::class, 'lists'],
 | 
| 
 | 
 | 
 //    邮件文件夹
 | 
| 
 | 
 | 
     'folder' =>  [\Controller\Folder::class, 'lists'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 邮件/创建文件夹
 | 
| 
 | 
 | 
      * @see \Controller\Folder::create()
 | 
| 
 | 
 | 
      * @param string _token_ token登录凭证
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
 //    创建文件夹
 | 
| 
 | 
 | 
     'folder/create' =>  [\Controller\Folder::class, 'create'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 邮件/重命名文件夹
 | 
| 
 | 
 | 
      * @see \Controller\Folder::rename()
 | 
| 
 | 
 | 
      * @param string _token_ token登录凭证
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
 //    重命名文件夹
 | 
| 
 | 
 | 
     'folder/rename' =>  [\Controller\Folder::class, 'rename'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 邮件/删除文件夹
 | 
| 
 | 
 | 
      * @see \Controller\Folder::delete()
 | 
| 
 | 
 | 
      * @param string _token_ token登录凭证
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
 //    删除文件夹
 | 
| 
 | 
 | 
     'folder/delete' =>  [\Controller\Folder::class, 'delete'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 发送邮件
 | 
| 
 | 
 | 
      * @see \Controller\Home::send_mail()
 | 
| 
 | 
 | 
      * @param string _token_ token登录凭证
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
 //    发送邮件
 | 
| 
 | 
 | 
     'send' =>  [\Controller\Home::class, 'send_mail'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 同步请求
 | 
| 
 | 
 | 
      * @see \Controller\Home::sync()
 | 
| 
 | 
 | 
      * @param string _token_ token登录凭证
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
 //    同步请求
 | 
| 
 | 
 | 
     'sync' =>  [\Controller\Home::class, 'sync'],
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
...
 | 
...
 | 
 |