UNPKG

qweb-client

Version:

qweb client.

83 lines 1.96 kB
{ "info": { "title": "获取机构详情", "author": "mag", "description": "", "auth": true }, "request": { "type": "string", "pattern": "^[A-Za-z0-9]{32}$", "description": "机构ID" }, "response": { "type": "object", "description": "机构信息", "properties": { "parentId": { "type": "string", "pattern": "^[A-Za-z0-9]{32}$", "description": "父级机构ID" }, "parentName": { "type": "string" }, "name": { "type": "string", "pattern": "^.{1,20}$", "description": "机构名称" }, "contact": { "type": "object", "description": "机构联系方式", "properties": { "regionCode": { "type": "string", "pattern": "^[1-9][0-9][0-9]{4}$", "description": "区域代码,eg:110100" }, "email": { "type": "string", "pattern": "^(\\w)+(.\\w+)*@(\\w)+((.\\w+)+)$", "description": "邮箱地址" }, "address": { "type": "string", "pattern": "^.+$", "description": "地址" }, "mobile": { "type": "string", "pattern": "^(13[0-9]|14[57]|15[012356789]|17[678]|18[0-9])[0-9]{8}$", "description": "手机号码,eg: 13800138000" } }, "required": [ "regionCode", "email", "address", "mobile" ], "additionalProperties": false }, "registerTime": { "type": "integer", "description": "注册时间" }, "accountStatus": { "enum": [ 1, 2 ], "description": "账号状态" } }, "additionalProperties": false, "required": [ "name", "contact", "registerTime", "accountStatus" ] } }