request->get('type'); if($type == 1){ return $this->dataLists(new StoreFinanceFlowDayLists()); }else if($type == 2){ return $this->dataLists(new StoreFinanceFlowWeekLists()); }else{ return $this->dataLists(new StoreFinanceFlowMonthLists()); } // return $this->dataLists(new StoreBillLists()); } // #[ // ApiDoc\Title('详情'), // ApiDoc\url('/store/finance/storeBill/detail'), // ApiDoc\Method('GET'), // ApiDoc\NotHeaders(), // ApiDoc\Author('中国队长'), // ApiDoc\Param(name: 'id', type: 'int', require: true, desc: 'id'), // ApiDoc\Query(name: 'date_type', type: 'int', require: false, desc: '日期类型:1日账单,2周账单,3月账单'), // ApiDoc\Query(name: 'date', type: 'string', require: false, desc: '日期,日账单:2021-01-01,周账单:2024-W23,月账单:2021-01'), // ApiDoc\Query(name: 'staff_id', type: 'int', require: false, desc: '店员id'), // ApiDoc\Query(name: 'keyword', type: 'string', require: false, desc: '流水号/用户昵称'), // ApiDoc\Header(ref: [Definitions::class, "token"]), // ApiDoc\Query(ref: [Definitions::class, "page"]), // ApiDoc\ResponseSuccess("data", type: "array"), // ] public function detail() { return $this->dataLists(new StoreFinanceFlowLists()); } }