Files
schoolNews/schoolNewsServ/.doc/apifox/domain/dto/TbSysUser.json

55 lines
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "TbSysUser",
"description": "系统用户信息",
"type": "object",
"allOf": [
{
"$ref": "BaseDTO.json"
},
{
"type": "object",
"properties": {
"username": {
"type": "string",
"description": "用户名",
"minLength": 1,
"maxLength": 50,
"example": "admin"
},
"password": {
"type": "string",
"description": "密码",
"minLength": 6,
"maxLength": 20,
"example": "123456"
},
"email": {
"type": "string",
"format": "email",
"description": "邮箱",
"example": "admin@example.com"
},
"phone": {
"type": "string",
"pattern": "^1[3-9]\\d{9}$",
"description": "手机号",
"example": "13800138000"
},
"wechatID": {
"type": "string",
"description": "微信号",
"example": "wx_123456789"
},
"status": {
"type": "integer",
"description": "用户状态",
"enum": [0, 1],
"example": 1
}
},
"required": ["username", "password", "email", "phone", "status"]
}
]
}