Folder.php 724 字节
<?php

namespace Controller;


/**
 * 文件夹管理
 * @author:dc
 * @time 2023/2/18 17:58
 * Class Folder
 * @package Controller
 */
class Folder extends Base {


    /**
     * 邮箱文件夹
     * @author:dc
     * @time 2023/2/18 10:58
     */
    public function lists(){
        // 查询
        $folders = db()->all(
            \Model\folderSql::all(
                $this->login_email['id'],
                '`id`,`folder`,`pid`'
            )
        );

        // 转tree
        $folders = list_to_tree($folders);

        app()->_json($folders);
    }




    /**
     * 创建 目录
     * @author:dc
     * @time 2023/2/18 17:56
     */
    public function create(){

    }






}