text: // 导入定义验证规则的包
  const joi = require('@hapi/joi')
  
  // 定义用户名和密码的验证规则
  const name = joi.string().alphanum().min(1).max(10).required()
  const password = joi
    .string()
    .pattern(/^[\S]{6,12}$/)
    .required()
  
  // 定义验证注册和登录表单数据的规则对象
  exports.reg_login_schema = {
    body: {
      name,
      password,
    },
  }
  