$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(array<mixed,integer> $pagination = array('page' => 1, 'limit' => 10), array<mixed,string> $order = array('order' => 'id', 'direction' => 'desc'), array<mixed,string> $columns = array('*')) : array
todo:获取列表记录
array<mixed,integer> | $pagination | |
array<mixed,string> | $order | |
array<mixed,string> | $columns |
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 |