class SysApp extends Model mixin Eloquent

应用管理

Traits

对 filter 的封装, 进行页面返回

Filterable

Properties

protected $table
protected $fillable
int $id

应用 ID

string $title 应用名称
string $name 应用标识
string $secret 应用密钥
int $account_id

账号 ID

string $account_type 账号用户类型
string $note 应用备注
int $is_enable 是否启用
string $permissions 权限
Carbon|null $created_at
Carbon|null $updated_at

Methods

mixed
scopePageFilter(Builder $query, PageInfo $pageInfo)

No description

static JsonResponse
paginationInfo(Model $Db, string|Closure $resource, array $append = [])

No description

static array
item(int $appid)

获取缓存的信息

static bool
check(int $appid, string $permission)

验证权限

void
setPermissionsAttribute(array $permissions)

No description

getPermissionsAttribute(string $permissions)

No description

static SysApp
filter(array $input = [], mixed $filter)

No description

static SysApp
newModelQuery()

No description

static SysApp
newQuery()

No description

static SysApp
pageFilter(PageInfo $pageInfo)

No description

static SysApp
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

static SysApp
query()

No description

static SysApp
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

static SysApp
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

static SysApp
whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

static SysApp
whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Details

in FilterTrait at line 28
mixed scopePageFilter(Builder $query, PageInfo $pageInfo)

No description

Parameters

Builder $query 查询条件
PageInfo $pageInfo 分页

Return Value

mixed

in FilterTrait at line 41
static JsonResponse paginationInfo(Model $Db, string|Closure $resource, array $append = [])

No description

Parameters

Model $Db 数据对象
string|Closure $resource 资源
array $append 增加

Return Value

JsonResponse

at line 65
static array item(int $appid)

获取缓存的信息

Parameters

int $appid

Return Value

array

Exceptions

AppNotExistsException

at line 83
static bool check(int $appid, string $permission)

验证权限

Parameters

int $appid
string $permission

Return Value

bool

Exceptions

AppNotExistsException

at line 91
void setPermissionsAttribute(array $permissions)

No description

Parameters

array $permissions

Return Value

void

at line 96
getPermissionsAttribute(string $permissions)

No description

Parameters

string $permissions

at line 43
static SysApp filter(array $input = [], mixed $filter)

No description

Parameters

array $input
mixed $filter

Return Value

SysApp

at line 43
static SysApp newModelQuery()

No description

Return Value

SysApp

at line 43
static SysApp newQuery()

No description

Return Value

SysApp

at line 43
static SysApp pageFilter(PageInfo $pageInfo)

No description

Parameters

PageInfo $pageInfo

Return Value

SysApp

at line 43
static SysApp paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

mixed $perPage
mixed $columns
mixed $pageName
mixed $page

Return Value

SysApp

at line 43
static SysApp query()

No description

Return Value

SysApp

at line 43
static SysApp simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

mixed $perPage
mixed $columns
mixed $pageName
mixed $page

Return Value

SysApp

at line 43
static SysApp whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysApp

at line 43
static SysApp whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysApp

at line 43
static SysApp whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysApp