mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
60 lines
1.9 KiB
PHP
60 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace app\admin\model;
|
|
|
|
use app\common\model\TimeModel;
|
|
|
|
/**
|
|
* @property int $id id
|
|
* @property \app\admin\model\MallCate $mallCate 分类ID
|
|
* @property string $title 商品名称
|
|
* @property string $logo 商品logo
|
|
* @property string $images 商品图片
|
|
* @property string $describe 商品描述
|
|
* @property int $total_stock 总库存
|
|
* @property int $sort 排序
|
|
* @property int $status 状态 0:正常,1:禁用
|
|
* @property string $cert_file 合格证
|
|
* @property string $verfiy_file 检测报告
|
|
* @property string $remark 备注说明
|
|
* @property int $create_time create_time
|
|
* @property string $publish_time 发布日期
|
|
* @property string $sale_time 售卖日期
|
|
* @property string $intro 简介
|
|
* @property int $time_status 秒杀状态 0:未参加,1:已开始,3:已结束
|
|
* @property int $is_recommend 是否推荐 0:不推荐,1:推荐
|
|
* @property string $shop_type 商品类型 taobao:淘宝,jd:京东
|
|
* @property string $tag 商品标签
|
|
* @property string $tag_backup 商品标签(单选)
|
|
* @property string $from_area 产地
|
|
* @property string $store_city 仓库
|
|
* @property string $tag_input 商品标签 (输入)
|
|
* @property string $uid 唯一id
|
|
* @property float|double $price 价格
|
|
* @property string $detail 详情
|
|
*/
|
|
class TestGoods extends TimeModel
|
|
{
|
|
|
|
protected $name = "test_goods";
|
|
|
|
protected $deleteTime = "delete_time";
|
|
|
|
|
|
public const SELECT_LIST_STATUS = ['0'=>'正常','1'=>'禁用',];
|
|
|
|
public const SELECT_LIST_TIME_STATUS = ['0'=>'未参加','1'=>'已开始','3'=>'已结束',];
|
|
|
|
public const SELECT_LIST_IS_RECOMMEND = ['0'=>'不推荐','1'=>'推荐',];
|
|
|
|
public const SELECT_LIST_SHOP_TYPE = ['taobao'=>'淘宝','jd'=>'京东',];
|
|
|
|
|
|
|
|
public function mallCate()
|
|
{
|
|
return $this->belongsTo('\app\admin\model\MallCate', 'cate_id', 'id');
|
|
}
|
|
|
|
|
|
} |