mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
27 lines
694 B
PHP
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));
|
|
});
|
|
}
|
|
} |