$table
$table : string
getOne( $where, array<mixed,string> $columns = array('*')) : \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Query\Builder|object|null
todo:根据条件查询数据
$where | ||
array<mixed,string> | $columns |
getLists( $where, array<mixed,integer> $pagination = array('page' => 1, 'limit' => 10), array<mixed,string> $order = array('order' => 'id', 'direction' => 'desc'), boolean $getAll = false, array<mixed,string> $columns = array('*')) : \Illuminate\Support\Collection
todo:获取角色列表
$where | ||
array<mixed,integer> | $pagination | |
array<mixed,string> | $order | |
boolean | $getAll | |
array<mixed,string> | $columns |
| array
getResult( $table, $where, array<mixed,string> $columns = array('*')) : \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Query\Builder|object|null
todo:获取一条记录
$table | ||
$where | ||
array<mixed,string> | $columns |