UserCouponGoods.php 583 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\common\model;
  3. use app\common\library\helper;
  4. use app\common\model\BaseModel;
  5. /**
  6. 我的米卡商品模型
  7. * @package app\common\model
  8. */
  9. class UserCouponGoods extends BaseModel
  10. {
  11. // 是否除外
  12. const EXCEPT_YES = 1; // 除外商品
  13. const EXCEPT_NO = 0; // 可兑换商品
  14. protected $name = 'user_coupon_goods';
  15. /**
  16. * 获取记录
  17. * @param int $id
  18. * @param array $with
  19. * @return static
  20. */
  21. public static function detail(int $id, array $with = [])
  22. {
  23. return static::get($id, $with);
  24. }
  25. }