src/ApiTrait.php
public function _getFilters(Request $request)
	{
		$filters = [];
		$inputs = $request->input('f', []);
		if (!empty($inputs))
			foreach ($inputs as $k => $v)
				$filters[$k] = is_array($v) ? array_change_key_case($v) : ['eq' => $v];

		return $filters;
	}
public function _getFilters(Request $request)
	{
		$filters = [];
		$inputs = $request->input('f', []);
		if (!empty($inputs))
			foreach ($inputs as $k => $v)
				$filters[$k] = is_array($v) ? array_change_key_case($v) : ['eq' => $v];

		return $filters;
	}
获取筛选(搜索)的参数
&f[username][lk]=abc&f[gender][eq]=1

@param  Request $request
@param  Builder $builder
@return array           返回参数列表