{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TbSysUserInfo", "description": "用户详细信息", "type": "object", "allOf": [ { "$ref": "BaseDTO.json" }, { "type": "object", "properties": { "userID": { "type": "string", "description": "用户ID", "example": "1234567890123456789" }, "avatar": { "type": "string", "description": "头像", "example": "https://example.com/avatar.jpg" }, "gender": { "type": "integer", "description": "性别(0-未知,1-女,2-男)", "enum": [0, 1, 2], "example": 1 }, "familyName": { "type": "string", "description": "姓", "maxLength": 50, "example": "张" }, "givenName": { "type": "string", "description": "名", "maxLength": 50, "example": "三" }, "fullName": { "type": "string", "description": "全名", "maxLength": 100, "example": "张三" }, "idCard": { "type": "string", "description": "身份证号", "pattern": "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$", "example": "110101199001011234" }, "address": { "type": "string", "description": "地址", "maxLength": 200, "example": "北京市朝阳区" } }, "required": ["userID"] } ] }