UsersModel.php 254 B

12345678910111213
  1. <?php
  2. namespace app\api\model;
  3. use think\Model;
  4. class UsersModel extends Model
  5. {
  6. protected $name = "Users";
  7. protected $rules = [
  8. 'user_id' => 'require|number',
  9. 'user_nickname' => 'require',
  10. 'idcard' => 'require',
  11. ];
  12. }