\App\Setting\Controller\ToolsTableController

表设计器 Class TableController

Summary

Methods
Properties
Constants
app()
getContainer()
success()
error()
redirect()
_download()
getSystemInfo()
save()
$service
No constants found
No protected methods found
$mine
$request
$response
N/A
No private methods found
No private properties found
N/A

Properties

Methods

app()

app(string  $id) : mixed

Parameters

string $id

Returns

mixed

getContainer()

getContainer() : \Psr\Container\ContainerInterface

Returns

\Psr\Container\ContainerInterface

success()

success(  $msgOrData = '', array  $data = array(), integer  $code = 200) : \Psr\Http\Message\ResponseInterface

Parameters

$msgOrData
array $data
integer $code

Returns

\Psr\Http\Message\ResponseInterface

error()

error(string  $message = '', integer  $code = 500, array  $data = array()) : \Psr\Http\Message\ResponseInterface

Parameters

string $message
integer $code
array $data

Returns

\Psr\Http\Message\ResponseInterface

redirect()

redirect(string  $toUrl, integer  $status = 302, string  $schema = 'http') : \Psr\Http\Message\ResponseInterface

跳转

Parameters

string $toUrl
integer $status
string $schema

Returns

\Psr\Http\Message\ResponseInterface

_download()

_download(string  $filePath, string  $name = '') : \Psr\Http\Message\ResponseInterface

下载文件

Parameters

string $filePath
string $name

Returns

\Psr\Http\Message\ResponseInterface

getSystemInfo()

getSystemInfo() 

获取系统信息

save()

save(\App\Setting\Request\Tool\TableCreateRequest  $request) : \Psr\Http\Message\ResponseInterface

创建数据表

Parameters

\App\Setting\Request\Tool\TableCreateRequest $request

Returns

\Psr\Http\Message\ResponseInterface