<?php
/**
 *
 *User:Administrator
 *Date:2021/10/22
 */

namespace app\api\validate;

use think\Validate;

class User extends Validate
{

    protected $rule = [
        'username' => 'require',
        'password' => 'require',

    ];

    protected $message = [
        'username.require' => '用户名不能为空',
        'password.require' => '密码不能为空',
    ];

    protected $scene =[
        'login' => ['username','password'],

    ];
}