| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 | 
							- <?php
 
- namespace 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;
 
-     public static $product_attribute = [
 
-         self::Product_attribute_zero => '无',
 
-         self::Product_attribute_one => '其他',
 
-         self::Product_attribute_two => '主推款',
 
-         self::Product_attribute_three => '热卖款',
 
-     ];
 
-     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 => '启用',
 
-     ];
 
- }
 
 
  |