2022-06-16 18:43:41 +08:00

27 lines
694 B
PHP

<?php
namespace app\data\controller\api\auth;
use app\data\controller\api\Auth;
use app\data\model\DataUserBalance;
use think\admin\helper\QueryHelper;
/**
* 用户余额转账
* Class Balance
* @package app\data\controller\api\auth
*/
class Balance extends Auth
{
/**
* 获取用户余额记录
*/
public function get()
{
DataUserBalance::mQuery(null, function (QueryHelper $query) {
$query->withoutField('deleted,create_by');
$query->where(['uuid' => $this->uuid, 'deleted' => 0])->like('create_at#date');
$this->success('获取数据成功', $query->order('id desc')->page(true, false, false, 10));
});
}
}