| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- /**
- * This is the model class for table "{{%video_goods_report}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $user_id 用户id
- * @property int $is_delete 是否删除
- * @property int $vl_id 视频id
- * @property string $pic_url 图片地址
- * @property string $desc 描述
- * @property int $type 类型
- * @property int $status 状态
- * @property int created_at 创建时间
- * @property int updated_at 更新时间
- */
- class VideoGoodsReport extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%video_goods_report}}';
- }
- /**
- * 举报类型 0 默认投诉 1 涉及色情暴力 2 涉及欺诈造价 3 违禁信息 4 感觉被冒犯或歧视 5 涉及侵权 6 其他
- */
- const REPORT_DEFAULT = 0;
- const REPORT_VIOLENCE = 1;
- const REPORT_FAKE = 2;
- const REPORT_VIOLATE = 3;
- const REPORT_RACISM = 4;
- const REPORT_INFRINGE = 5;
- const REPORT_OTHER = 6;
- /**
- * @var array
- */
- public static $validReportType = [
- self::REPORT_DEFAULT => '默认投诉',
- self::REPORT_VIOLENCE => '涉及色情暴力',
- self::REPORT_FAKE => '涉及欺诈造价',
- self::REPORT_VIOLATE => '违禁信息',
- self::REPORT_RACISM => '感觉被冒犯或歧视',
- self::REPORT_INFRINGE => '涉及侵权',
- self::REPORT_OTHER => '其他'
- ];
- /**
- * @return array[]
- */
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
- ]
- ]
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'user_id', 'vl_id', 'type', 'status', 'updated_at', 'created_at', 'is_delete'], 'integer'],
- [['pic_url', 'desc'], 'string'],
- ];
- }
- }
|