<?php
namespace app\user\model;

use think\Model;

/**
 * 用户管理
 */
class Recharge extends Model
{
    public function addRecharge($data)
    {
        $result = $this->insert($data);

        return $result;
    }
    public function getRecharge($data)
    {
        $result = $this->where($data)->find();

        return $result;
    }
    public function selectRecharge($condition)
    {
        $result = $this->where($condition)->order('recharge_time desc')->paginate(10);

        return $result;
    }

}
