sample/swagger/passport.swagger.json

264 lines
5.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"swagger": "2.0",
"info": {
"title": "blocks.proto",
"version": "version not set"
},
"tags": [
{
"name": "Account"
},
{
"name": "Forget"
},
{
"name": "Login"
},
{
"name": "Register"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"sampleForgetReply": {
"type": "object",
"properties": {
"identity": {
"type": "string",
"title": "用户唯一码"
},
"dataBind": {
"type": "string",
"title": "数据绑定的相关说明,PASS通过NOPHONE没有绑定手机号NOPWD没有设置密码NOBIND没有手机号同时没有密码"
},
"token": {
"type": "string",
"title": "用户凭证"
},
"extend": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"title": "扩展字段"
}
}
},
"sampleGetFullReply": {
"type": "object",
"properties": {
"identity": {
"type": "string",
"title": "唯一标识"
},
"account": {
"type": "string",
"title": "帐号"
},
"phone": {
"type": "string",
"title": "手机号码 必填"
},
"email": {
"type": "string",
"title": "验证码"
},
"rights": {
"type": "string",
"title": "权限"
},
"nickname": {
"type": "string",
"title": "昵称"
},
"avatar": {
"type": "string",
"title": "头像"
},
"birthday": {
"type": "string",
"title": "生日"
},
"sex": {
"type": "integer",
"format": "int32",
"title": "性别1为男性2为女性"
},
"country": {
"type": "integer",
"format": "int32",
"title": "国家"
},
"province": {
"type": "integer",
"format": "int32",
"title": "省"
},
"city": {
"type": "integer",
"format": "int32",
"title": "市"
},
"area": {
"type": "integer",
"format": "int32",
"title": "区"
},
"sign": {
"type": "string",
"title": "签名"
},
"cover": {
"type": "string",
"title": "背景\u0026封面"
},
"score": {
"type": "integer",
"format": "int32",
"title": "积分"
},
"level": {
"type": "integer",
"format": "int32",
"title": "等级"
},
"verify": {
"type": "object",
"additionalProperties": {
"type": "boolean"
},
"title": "数据"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/sampleTagItem"
}
}
},
"title": "获取会员的完整信息"
},
"sampleLoginReply": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
},
"identity": {
"type": "string",
"title": "用户唯一码"
},
"token": {
"type": "string",
"title": "用户凭证"
},
"extend": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"title": "扩展字段"
}
}
},
"sampleRegisterReply": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
},
"identity": {
"type": "string",
"title": "用户唯一码"
},
"token": {
"type": "string",
"title": "用户Header所需Token"
},
"extend": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"title": "扩展字段"
}
}
},
"sampleStatisticsReply": {
"type": "object",
"properties": {
"Data": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "int64"
},
"title": "数据以Map格式输出"
}
}
},
"sampleStatusReply": {
"type": "object",
"properties": {
"data": {
"type": "string",
"title": "数据"
},
"timeseq": {
"type": "string",
"format": "int64",
"title": "响应时间序列"
}
}
},
"sampleTagItem": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"icon": {
"type": "string"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}