91 lines
2.6 KiB
JSON
91 lines
2.6 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "backup",
|
|
"contact": {},
|
|
"version": "1.0"
|
|
},
|
|
"host": "127.0.0.1:18004",
|
|
"paths": {
|
|
"/get-address": {
|
|
"post": {
|
|
"tags": [
|
|
"backup"
|
|
],
|
|
"summary": "通过手机或邮箱得到地址",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "MOCK",
|
|
"name": "FZM-SIGNATURE",
|
|
"in": "header",
|
|
"required": true
|
|
},
|
|
{
|
|
"description": "body",
|
|
"name": "data",
|
|
"in": "body",
|
|
"schema": {
|
|
"$ref": "#/definitions/model.GetAddressRequest"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/model.GeneralResponse"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"$ref": "#/definitions/model.GetAddressResponse"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"model.GeneralResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "integer"
|
|
},
|
|
"data": {
|
|
"type": "object"
|
|
},
|
|
"message": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"model.GetAddressRequest": {
|
|
"type": "object",
|
|
"required": [
|
|
"query"
|
|
],
|
|
"properties": {
|
|
"query": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.GetAddressResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"address": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |