This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/store/model/UserCoupon.php
2020-04-25 22:20:29 +08:00

28 lines
561 B
PHP

<?php
namespace app\store\model;
use app\common\model\UserCoupon as UserCouponModel;
/**
* 用户优惠券模型
* Class UserCoupon
* @package app\store\model
*/
class UserCoupon extends UserCouponModel
{
/**
* 获取优惠券列表
* @return \think\Paginator
* @throws \think\exception\DbException
*/
public function getList()
{
return $this->with(['user'])
->order(['create_time' => 'desc'])
->paginate(15, false, [
'query' => request()->request()
]);
}
}