<?php

namespace app\api\validate;

use think\Validate;

class ShCourseWorkValidate extends BaseValidate
{
    protected $rule = [
        'course_id' => 'require',
        'title' => 'require',
        'content' => 'require',
        'work_id' => 'require',


    ];

    protected $message = [
        'course_id.require' => '课程id不能为空',
        'title.require' => '作业标题不能为空',
        'content.require' => '作业介绍不能为空',
        'work_id.require' => '作业id不能为空'

    ];


}