12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\common\model;
- use app\common\library\helper;
- use app\common\model\BaseModel;
- /**
- 我的米卡商品模型
- * @package app\common\model
- */
- class UserCouponGoods extends BaseModel
- {
- // 是否除外
- const EXCEPT_YES = 1; // 除外商品
- const EXCEPT_NO = 0; // 可兑换商品
- protected $name = 'user_coupon_goods';
- /**
- * 获取记录
- * @param int $id
- * @param array $with
- * @return static
- */
- public static function detail(int $id, array $with = [])
- {
- return static::get($id, $with);
- }
-
- }
|