Recharge.php 490 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\user\model;
  3. use think\Model;
  4. /**
  5. * 用户管理
  6. */
  7. class Recharge extends Model
  8. {
  9. public function addRecharge($data)
  10. {
  11. $result = $this->insert($data);
  12. return $result;
  13. }
  14. public function getRecharge($data)
  15. {
  16. $result = $this->where($data)->find();
  17. return $result;
  18. }
  19. public function selectRecharge($condition)
  20. {
  21. $result = $this->where($condition)->paginate(10);
  22. return $result;
  23. }
  24. }