class App

应用管理

Traits

AppTrait

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait

Methods

getError()

获取错误

from  AppTrait
bool
setError(string|MessageBag $error)

设置错误

from  AppTrait
getSuccess()

Get success messages;

from  AppTrait
bool
setSuccess(Resp|string $success)

No description

from  AppTrait
getItem()

No description

bool
establish(array $data, int $id = null)

编辑/创建分类

void
status(int $id, int $status)

切换状态

void
init(int $id)

初始化

Details

in AppTrait at line 32
Resp getError()

获取错误

Return Value

Resp

in AppTrait at line 45
bool setError(string|MessageBag $error)

设置错误

Parameters

string|MessageBag $error error

Return Value

bool

in AppTrait at line 82
Resp getSuccess()

Get success messages;

Return Value

Resp

in AppTrait at line 100
bool setSuccess(Resp|string $success)

No description

Parameters

Resp|string $success 设置的成功信息

Return Value

bool

at line 32
SysApp getItem()

No description

Return Value

SysApp

at line 46
bool establish(array $data, int $id = null)

编辑/创建分类

Parameters

array $data

传入数据
{string} title 名称
{int} secret 密钥
{string} type 类型

int $id ID

Return Value

bool

at line 80
void status(int $id, int $status)

切换状态

Parameters

int $id 活动ID
int $status

Return Value

void

at line 94
void init(int $id)

初始化

Parameters

int $id

活动 ID

Return Value

void