You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
561 B
28 lines
561 B
<?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()
|
|
]);
|
|
}
|
|
|
|
}
|