This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/common/model/sharp/GoodsSku.php
2020-04-25 22:20:29 +08:00

26 lines
503 B
PHP

<?php
namespace app\common\model\sharp;
use app\common\model\BaseModel;
/**
* 整点秒杀-秒杀商品sku模型
* Class Goods
* @package app\common\model\sharp
*/
class GoodsSku extends BaseModel
{
protected $name = 'sharp_goods_sku';
/**
* 关联商品表
* @return \think\model\relation\BelongsTo
*/
public function goods()
{
$module = self::getCalledModule() ?: 'common';
return $this->belongsTo("app\\{$module}\\model\\sharp\\Goods");
}
}