// +---------------------------------------------------------------------- // | 官方网站: https://thinkadmin.top // +---------------------------------------------------------------------- // | 免责声明 ( https://thinkadmin.top/disclaimer ) // | 会员免费 ( https://thinkadmin.top/vip-introduce ) // +---------------------------------------------------------------------- // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin // +---------------------------------------------------------------------- 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)); }); } }