提交其他文件
This commit is contained in:
14
app/common/model/user/UserCoupon.php
Normal file
14
app/common/model/user/UserCoupon.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\user;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class UserCoupon extends BaseModel
|
||||
{
|
||||
public function userCouponType()
|
||||
{
|
||||
return $this->hasMany('user_coupon_type', 'id', 'coupon_id')
|
||||
->where('status', 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user