LivesyncRecord.php 423 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: yugongzi
  5. * Date: 2020.4.29
  6. */
  7. namespace common\models;
  8. use Yii;
  9. class LivesyncRecord extends \yii\db\ActiveRecord
  10. {
  11. public function rules()
  12. {
  13. return [
  14. [['mode','operator','oss_live_name','oss_live_data','create_at'], 'required', 'message' => '不能为空'],
  15. [['this_live_name','this_live_data','oss_unid'],'safe']
  16. ];
  17. }
  18. }