TimestampBehavior::class, 'value' => time() ] ]; } /** * @inheritdoc */ public function rules() { return [ [['goods_id', 'store_id', 'device_id', 'is_delete'], 'integer'], [['is_delete'], 'default', 'value' => 0] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'goods_id' => 'Goods ID', 'store_id' => 'Store ID', 'device_id' => '设备ID 多个分类用英文逗号隔开', 'is_delete' => 'Is Delete', ]; } }