1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace app\common\model\groupbuylb;
- use app\common\model\BaseModel;
- use app\common\model\Goods;
- use think\facade\Log;
- /**
- * 拼团裂变参团模型
- * @package app\store\model\coupon
- */
- class GroupBuyLbHelp extends BaseModel
- {
- protected $name = 'group_buy_lb_activity_help';
- // 定义主键
- protected $pk = 'id';
- /**
- * 获取记录
- * @param int $where
- * @param array $with
- * @return static
- */
- public static function detail($where, array $with = [])
- {
- return static::get($where, $with);
- }
- /**
- * 关联用户表
- * @return \think\model\relation\BelongsTo
- */
- public function user()
- {
- $module = self::getCalledModule();
- return $this->belongsTo("app\\{$module}\\model\\User");
- }
- }
|