request = $request; $this->orderService = $orderService; } /** * 列表. * * @return \Illuminate\Http\Response */ public function index($type) { $conditions = $this->request->all(); $conditions['type'] = $type; $res = $this->OrderService->index($conditions); return res($res, '订单统计', 201); } /** * 创建. * * @return \Illuminate\Http\Response */ public function create() { // } /** * 编辑. * * @return \Illuminate\Http\Response */ public function update($id) { // } /** * 删除. * * @return \Illuminate\Http\Response */ public function destroy() { // } }