request->get(); $params['store_id'] = $this->request->adminInfo['store_id']; $result = WorkbenchLogic::index($params); return $this->data($result); } #[ ApiDoc\Title('商品统计'), ApiDoc\url('/store/workbench/product'), ApiDoc\Method('GET'), ApiDoc\NotHeaders(), ApiDoc\Author('中国队长'), ApiDoc\Query(name: 'start_time', type: 'string', require: true, desc: '开始时间'), ApiDoc\Query(name: 'end_time', type: 'string', require: true, desc: '结束时间'), ApiDoc\Header(ref: [Definitions::class, "token"]), ApiDoc\ResponseSuccess("data", type: "array"), ] public function product() { $storeId = $this->request->adminInfo['store_id']; $result = WorkbenchLogic::index($storeId); return $this->data($result); } #[ ApiDoc\Title('配送统计'), ApiDoc\url('/store/workbench/delivery'), ApiDoc\Method('GET'), ApiDoc\NotHeaders(), ApiDoc\Author('中国队长'), ApiDoc\Query(name: 'start_time', type: 'string', require: true, desc: '开始时间'), ApiDoc\Query(name: 'end_time', type: 'string', require: true, desc: '结束时间'), ApiDoc\Header(ref: [Definitions::class, "token"]), ApiDoc\ResponseSuccess("data", type: "array"), ] public function delivery() { $storeId = $this->request->adminInfo['store_id']; $result = WorkbenchLogic::index($storeId); return $this->data($result); } }