<?php namespace app\api\model; use think\Model; class UsersModel extends Model { protected $name = "Users"; protected $rules = [ 'user_id' => 'require|number', 'user_nickname' => 'require', 'idcard' => 'require', ]; }