| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 | <?phpnamespace App\Model;class Product extends UseScopeBaseModel{    protected $table = "product"; //指定表    const CREATED_AT = 'crt_time';    const UPDATED_AT = 'upd_time';    protected $dateFormat = 'U';    const State_zero = 0;    const State_one = 1;    const State_two = 2;    public static $state = [        self::State_zero => '新增',        self::State_one => '上架',        self::State_two => '下架',    ];    const range_function = 'productRangeNot';    const Product_attribute_zero = 0;    const Product_attribute_one = 1;    const Product_attribute_two = 2;    const Product_attribute_three = 3;    const Product_attribute_four = 4;    const Product_attribute_five = 5;    const Product_attribute_six = 6;    public static $product_attribute = [        self::Product_attribute_zero => '无',        self::Product_attribute_one => '其他',        self::Product_attribute_two => '主推款',        self::Product_attribute_three => '严选',        self::Product_attribute_four => '热门畅销',        self::Product_attribute_five => 'NEW',        self::Product_attribute_six => '含税产品',    ];    public static $product_attribute_color = [        self::Product_attribute_zero => [            'background_color' => 'white',            'font_color' => 'black',        ],        self::Product_attribute_one => [            'background_color' => 'white',            'font_color' => 'black',        ],        self::Product_attribute_two => [            'background_color' => 'white',            'font_color' => 'black',        ],        self::Product_attribute_three => [            'background_color' => 'white',            'font_color' => 'black',        ],    ];    const is_use_zero = 0;    const is_use_one = 1;    public static $is_use = [        self::is_use_zero => '停用',        self::is_use_one => '启用',    ];}
 |