29 lines
539 B
PHP
29 lines
539 B
PHP
<?php
|
|
|
|
namespace app\api\validate;
|
|
|
|
use think\Validate;
|
|
|
|
class CourseCollectValidate extends Validate
|
|
{
|
|
protected $failException = true;
|
|
|
|
protected $rule = [
|
|
'classify' => 'require',
|
|
// 'courseDetailsId' => 'require',
|
|
'courseId' => 'require',
|
|
'type' => 'require',
|
|
];
|
|
|
|
/**
|
|
* 验证场景
|
|
*/
|
|
protected $scene = [
|
|
'insertCourseCollect' => ['classify', 'courseId', 'type']
|
|
];
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
} |