UNPKG

qweb-client

Version:

qweb client.

103 lines 2.03 kB
{ "info": { "title": "忘记密码", "author": "Sophia", "description": "忘记密码", "auth": false }, "request": { "anyOf": [ { "type": "string", "pattern": "^(13[0-9]|14[57]|15[012356789]|17[678]|18[0-9])[0-9]{8}$", "description": "出单员账号" }, { "type": "string", "pattern": "^[-0-9a-zA-Z]{1,20}$", "description": "机构账号" } ] }, "response": { "type": "object", "properties": { "status": { "enum": [ 0, 1 ], "description": "返回状态代码" }, "contact": { "type": "object", "additaionalProperties": false, "required": [ "name", "mobile" ], "properties": { "name": { "type": "string", "pattern": "^.{1,20}$", "description": "所在机构名称" }, "mobile": { "type": "string", "pattern": "^(13[0-9]|14[57]|15[012356789]|17[678]|18[0-9])[0-9]{8}$", "description": "所在机构联系手机号" } } }, "message": { "type": "string", "description": "返回状态描述" } }, "switch": [ { "if": { "properties": { "status": { "enum": [ 0 ] } } }, "then": { "required": [ "status", "contact" ] } }, { "if": { "properties": { "status": { "enum": [ 1 ] } } }, "then": { "required": [ "status", "message" ] } }, { "then": false } ] }, "constant": { "ResponseStatus": { "SUCCESS": 0, "ACCOUNT_NOT_EXISTED": 1 } } }