$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( $user, array|array<mixed,integer> $pagination = array('page' => 1, 'limit' => 10), array|array<mixed,string> $order = array('order' => 'id', 'direction' => 'asc'), boolean $getAll = false, array|array<mixed,string> $column = array('*')) : array|\Illuminate\Support\Collection
todo:获取用户列表
$user | ||
array|array<mixed,integer> | $pagination | |
array|array<mixed,string> | $order | |
boolean | $getAll | |
array|array<mixed,string> | $column |
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 |