<?php

namespace app\admin\controller\operation;

use app\common\controller\Backend;
use support\Response;
use Webman\Http\Request as WebmanRequest;

/**
 * 运营公告
 */
class OperationNotice extends Backend
{
    protected ?object $model = null;

    protected string|array $preExcludeFields = ['id', 'create_time', 'update_time'];

    protected string|array $quickSearchField = ['id', 'title'];

    protected string|array $defaultSortField = ['id' => 'desc'];

    protected string|array $orderGuarantee = ['id' => 'desc'];

    protected bool $modelValidate = true;

    protected bool $modelSceneValidate = true;

    protected function initController(WebmanRequest $request): ?Response
    {
        $this->model = new \app\common\model\OperationNotice();
        return null;
    }
}
