This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/api/controller/balance/Log.php
2020-04-25 22:20:29 +08:00

28 lines
609 B
PHP

<?php
namespace app\api\controller\balance;
use app\api\controller\Controller;
use app\api\model\user\BalanceLog as BalanceLogModel;
/**
* 余额账单明细
* Class Log
* @package app\api\controller\balance
*/
class Log extends Controller
{
/**
* 余额账单明细列表
* @return array
* @throws \app\common\exception\BaseException
* @throws \think\exception\DbException
*/
public function lists()
{
$user = $this->getUser();
$list = (new BalanceLogModel)->getList($user['user_id']);
return $this->renderSuccess(compact('list'));
}
}