<?php

namespace app\api\controller\{$moduleName};

use app\BaseController;
use app\common\model\{$moduleName}\{$className} as Model{$className};
use app\Request;
use think\Validate;
use think\exception\ValidateException;
use think\facade\Filesystem;
use app\common\exception\Tool;


class {$className} extends BaseController
{
    /**
     * 获取{$functionName}内容
     */
    public function get{$className}(Request $request): array
    {
        $params = $request->param();

        $query = Model{$className}::field({$queryFields})->where(1)->find();

        return [
            'code' => 0,
            'data' => $query,
            'msg' => 'ok'
        ];
    }

}
