| xqd
@@ -161,11 +161,12 @@ class ProductController extends Controller
|
|
|
public function userProductList(Request $request){
|
|
|
|
|
|
$limit = $request->get('limit',10);
|
|
|
+ $go = $request->get('go',6);
|
|
|
$list = Product::query()->where('status','=',1)
|
|
|
->where('user_id','=',$this->userId)
|
|
|
->orderByDesc('id')
|
|
|
->paginate($limit);
|
|
|
- return $this->success($this->page($list));
|
|
|
+ return $this->success(pages($list,$go));
|
|
|
}
|
|
|
|
|
|
/**
|