qweb-client
Version:
qweb client.
123 lines • 2.88 kB
JSON
{
"info": {
"title": "根据人员 ID 列出所有可报价网点",
"author": "Mag",
"description": "",
"auth": true
},
"request": {},
"response": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9]{32}$",
"description": "网点 ID(organizationId)"
},
"name": {
"type": "string",
"pattern": "^.{1,20}$",
"description": "网点名称(organizationName)"
},
"province": {
"type": "object",
"description": "省",
"properties": {
"code": {
"type": "string",
"pattern": "^[1-9][0-9][0]{4}$",
"description": "省代码,eg:110000"
},
"name": {
"type": "string",
"pattern": "^.*$",
"description": "省名称"
}
},
"additionalProperties": false,
"required": [
"code",
"name"
]
},
"city": {
"type": "object",
"description": "市",
"properties": {
"code": {
"type": "string",
"pattern": "^[1-9][0-9]([0-9][1-9]|[1-9][0-9])[0]{2}$",
"description": "城市代码,eg:110100"
},
"name": {
"type": "string",
"pattern": "^.*$",
"description": "市名称"
}
},
"additionalProperties": false,
"required": [
"code",
"name"
]
},
"district": {
"type": "object",
"description": "区",
"properties": {
"code": {
"type": "string",
"pattern": "^[1-9][0-9]([0-9][1-9]|[1-9][0-9])[0-9]{2}$",
"description": "区代码,eg:110111"
},
"name": {
"type": "string",
"pattern": "^.*$",
"description": "区名称"
}
},
"additionalProperties": false,
"required": [
"code",
"name"
]
}
},
"additionalProperties": false,
"anyOf": [
{
"required": [
"id",
"name"
]
},
{
"required": [
"id",
"name",
"province"
]
},
{
"required": [
"id",
"name",
"province",
"city"
]
},
{
"required": [
"id",
"name",
"province",
"city",
"district"
]
}
]
}
}
}