初始化
缺陷:主题配色需要优化整体的同风格
This commit is contained in:
26
app/Models/business/ImageModel.php
Normal file
26
app/Models/business/ImageModel.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\business;
|
||||
|
||||
use App\BaseApp\BaseBusinessModel;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* 商品相册(cc_image)
|
||||
*
|
||||
* type 1 渲染图 / 2 实物图,小程序详情页分两个列表展示
|
||||
*/
|
||||
class ImageModel extends BaseBusinessModel
|
||||
{
|
||||
protected $table = 'image';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public const TYPE_RENDER = 1;
|
||||
public const TYPE_PHYSICAL = 2;
|
||||
|
||||
public function catalogue(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(CatalogueModel::class, 'catalogue_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user