update: uni-id-user 完善表单生成

This commit is contained in:
handongxun 2020-10-31 18:57:25 +08:00
parent 0d83324a46
commit 8c6eec6403

View File

@ -23,21 +23,32 @@
},
"gender": {
"bsonType": "int",
"minimum": 0,
"maximum": 2,
"title": "性别",
"description": "用户性别0 未知 1 男性 2 女性"
"description": "用户性别0 未知 1 男性 2 女性",
"defaultValue": 0,
"component": {
"name": "radio-group",
"childrenData": [{
"label": "未知",
"value": 0
}, {
"label": "男",
"value": 1
}, {
"label": "女",
"value": 2
}]
}
},
"status": {
"bsonType": "int",
"minimum": 0,
"maximum": 3,
"description": "用户状态0 正常 1 禁用 2 审核中 3 审核拒绝"
},
"mobile": {
"bsonType": "string",
"title": "手机号码",
"description": "手机号码"
"description": "手机号码",
"pattern": "^\\+?[0-9-]{3,20}$"
},
"mobile_confirmed": {
"bsonType": "int",
@ -47,6 +58,7 @@
},
"email": {
"bsonType": "string",
"format": "email",
"title": "邮箱",
"description": "邮箱地址"
},
@ -161,7 +173,7 @@
"bsonType": "string",
"description": "注册时 IP 地址",
"forceDefaultValue": {
"$env": "ip"
"$env": "clientIP"
}
},
"last_login_date": {