request->params([ ['refund_no', ''], ['create_time', []], ['status', ''] ]); return success(data: (new RefundService())->getPage($data)); } /** * 退款详情 * @param $refund_no * @return \think\Response */ public function detail($refund_no) { return success(data: (new RefundService())->getDetail($refund_no)); } /** * 获取退款方式 */ public function getRefundType() { return success(data:(new RefundDict())->getType()); } /** * 转账 * @return \think\Response */ public function transfer() { $data = $this->request->params([ ['refund_no', ''], ['refund_type', []], ['voucher', ''] ]); return success(data:(new RefundService())->refund($data)); } }