test_lgq/niucloud/app/adminapi/controller/pay/PayRefund.php
2024-01-24 17:36:08 +08:00

65 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\adminapi\controller\pay;
use app\dict\pay\RefundDict;
use app\service\admin\pay\RefundService;
use core\base\BaseAdminController;
class PayRefund extends BaseAdminController
{
/**
* 退款列表
* @return \think\Response
*/
public function pages()
{
$data = $this->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));
}
}