Files
lgp-admin-plus-api/app/Http/Controllers/Api/FileFolderController.php
LQ bcf54c2727 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:21:21 +08:00

23 lines
576 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Http\Controllers\Api;
use App\BaseApp\BaseController;
use App\Service\FileFolderService;
/**
* 素材文件夹(标准 CRUD + 目录树)
*/
class FileFolderController extends BaseController
{
public function __construct()
{
parent::__construct();
$this->service = FileFolderService::getInstance();
$this->insertField = ['name'];
$this->updateField = ['id', 'name'];
// pid = 0 就是根目录sort / status 也允许留空走默认值
$this->notRequest = ['pid', 'sort', 'status'];
}
}