优惠卷新增了用户数据
This commit is contained in:
@@ -133,6 +133,9 @@ func (r *UserCouponDao) GetUserCouponPageSearch(req requests.GetUserCouponPage,
|
||||
// 构建查询条件
|
||||
query := global.Db.Model(&model.UserCoupon{})
|
||||
|
||||
// 用户
|
||||
query = query.Preload("User")
|
||||
|
||||
// 优惠卷
|
||||
query = query.Preload("Coupon")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user