otto
2 months ago
8 changed files with 3296 additions and 22 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,229 @@
|
||||
{ |
||||
"swagger": "2.0", |
||||
"info": { |
||||
"title": "app_gateway/v1/user_gateway.proto", |
||||
"version": "version not set" |
||||
}, |
||||
"tags": [ |
||||
{ |
||||
"name": "UserGateway" |
||||
} |
||||
], |
||||
"consumes": [ |
||||
"application/json" |
||||
], |
||||
"produces": [ |
||||
"application/json" |
||||
], |
||||
"paths": { |
||||
"/v1/user_profile/query": { |
||||
"get": { |
||||
"summary": "查询用户详情信息", |
||||
"operationId": "UserGateway_QueryUserProfile", |
||||
"responses": { |
||||
"200": { |
||||
"description": "A successful response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/v1QueryUserProfileResponse" |
||||
} |
||||
}, |
||||
"default": { |
||||
"description": "An unexpected error response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/rpcStatus" |
||||
} |
||||
} |
||||
}, |
||||
"parameters": [ |
||||
{ |
||||
"name": "uid", |
||||
"description": "用户id【后期废弃】", |
||||
"in": "query", |
||||
"required": false, |
||||
"type": "string" |
||||
}, |
||||
{ |
||||
"name": "role_id", |
||||
"description": "用户id,不传默认获取当前用户", |
||||
"in": "query", |
||||
"required": false, |
||||
"type": "string", |
||||
"format": "int64" |
||||
}, |
||||
{ |
||||
"name": "public_id", |
||||
"description": "用户号,不传默认获取当前用户", |
||||
"in": "query", |
||||
"required": false, |
||||
"type": "string" |
||||
}, |
||||
{ |
||||
"name": "phone", |
||||
"description": "手机号码", |
||||
"in": "query", |
||||
"required": false, |
||||
"type": "string" |
||||
} |
||||
], |
||||
"tags": [ |
||||
"UserGateway" |
||||
] |
||||
} |
||||
} |
||||
}, |
||||
"definitions": { |
||||
"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" |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"v1QueryUserProfileResponse": { |
||||
"type": "object", |
||||
"properties": { |
||||
"uid": { |
||||
"type": "string", |
||||
"title": "用户id 【废弃】" |
||||
}, |
||||
"username": { |
||||
"type": "string", |
||||
"title": "昵称" |
||||
}, |
||||
"sex": { |
||||
"$ref": "#/definitions/v1UserSex", |
||||
"title": "性别 1男 2女 3其他" |
||||
}, |
||||
"avatar_url": { |
||||
"type": "string", |
||||
"title": "头像地址" |
||||
}, |
||||
"role_id": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "用户id" |
||||
}, |
||||
"public_id": { |
||||
"type": "string", |
||||
"title": "用户号" |
||||
}, |
||||
"description": { |
||||
"type": "string", |
||||
"title": "用户描述" |
||||
}, |
||||
"is_follow": { |
||||
"type": "boolean", |
||||
"title": "是否已关注,当查询其他用户资料时,会有该字段" |
||||
}, |
||||
"level": { |
||||
"type": "string", |
||||
"title": "等级" |
||||
}, |
||||
"growth_value": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "成长值" |
||||
}, |
||||
"phone": { |
||||
"type": "string", |
||||
"title": "手机号码" |
||||
}, |
||||
"data_birth": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "出生日期的时间戳" |
||||
}, |
||||
"avatar_extra": { |
||||
"type": "string", |
||||
"title": "头像备注" |
||||
}, |
||||
"charm_level": { |
||||
"type": "string", |
||||
"title": "魅力等级" |
||||
}, |
||||
"charm_growth_value": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "魅力成长值" |
||||
}, |
||||
"need_dress_up_mall_guide": { |
||||
"type": "boolean", |
||||
"title": "是否需要装扮商城指南" |
||||
}, |
||||
"need_dress_up_warehouse_guide": { |
||||
"type": "boolean", |
||||
"title": "是否需要装扮仓库指南" |
||||
}, |
||||
"need_room_guide": { |
||||
"type": "boolean", |
||||
"title": "是否需要房间指南" |
||||
}, |
||||
"show_winning_lottery": { |
||||
"type": "boolean", |
||||
"title": "是否显示中奖信息" |
||||
}, |
||||
"star_sign": { |
||||
"type": "string", |
||||
"title": "个性签名" |
||||
}, |
||||
"location": { |
||||
"type": "string", |
||||
"title": "地址" |
||||
}, |
||||
"age_show": { |
||||
"type": "string", |
||||
"title": "年龄" |
||||
}, |
||||
"gift_wall_count": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "礼物墙数量" |
||||
}, |
||||
"lighten_gift_wall_count": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "点亮礼物墙数" |
||||
}, |
||||
"collect_start_count": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "收集的星星数" |
||||
} |
||||
}, |
||||
"title": "用户详情信息响应" |
||||
}, |
||||
"v1UserSex": { |
||||
"type": "string", |
||||
"enum": [ |
||||
"UNKNOWN", |
||||
"MALE", |
||||
"FEMALE", |
||||
"OTHER" |
||||
], |
||||
"default": "UNKNOWN", |
||||
"description": "- MALE: 男\n - FEMALE: 女\n - OTHER: 其他", |
||||
"title": "性别" |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,167 @@
|
||||
swagger: "2.0" |
||||
info: |
||||
title: app_gateway/v1/user_gateway.proto |
||||
version: version not set |
||||
tags: |
||||
- name: UserGateway |
||||
consumes: |
||||
- application/json |
||||
produces: |
||||
- application/json |
||||
paths: |
||||
/v1/user_profile/query: |
||||
get: |
||||
summary: 查询用户详情信息 |
||||
operationId: UserGateway_QueryUserProfile |
||||
responses: |
||||
"200": |
||||
description: A successful response. |
||||
schema: |
||||
$ref: '#/definitions/v1QueryUserProfileResponse' |
||||
default: |
||||
description: An unexpected error response. |
||||
schema: |
||||
$ref: '#/definitions/rpcStatus' |
||||
parameters: |
||||
- name: uid |
||||
description: 用户id【后期废弃】 |
||||
in: query |
||||
required: false |
||||
type: string |
||||
- name: role_id |
||||
description: 用户id,不传默认获取当前用户 |
||||
in: query |
||||
required: false |
||||
type: string |
||||
format: int64 |
||||
- name: public_id |
||||
description: 用户号,不传默认获取当前用户 |
||||
in: query |
||||
required: false |
||||
type: string |
||||
- name: phone |
||||
description: 手机号码 |
||||
in: query |
||||
required: false |
||||
type: string |
||||
tags: |
||||
- UserGateway |
||||
definitions: |
||||
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' |
||||
v1QueryUserProfileResponse: |
||||
type: object |
||||
properties: |
||||
uid: |
||||
type: string |
||||
title: 用户id 【废弃】 |
||||
username: |
||||
type: string |
||||
title: 昵称 |
||||
sex: |
||||
$ref: '#/definitions/v1UserSex' |
||||
title: 性别 1男 2女 3其他 |
||||
avatar_url: |
||||
type: string |
||||
title: 头像地址 |
||||
role_id: |
||||
type: string |
||||
format: int64 |
||||
title: 用户id |
||||
public_id: |
||||
type: string |
||||
title: 用户号 |
||||
description: |
||||
type: string |
||||
title: 用户描述 |
||||
is_follow: |
||||
type: boolean |
||||
title: 是否已关注,当查询其他用户资料时,会有该字段 |
||||
level: |
||||
type: string |
||||
title: 等级 |
||||
growth_value: |
||||
type: string |
||||
format: int64 |
||||
title: 成长值 |
||||
phone: |
||||
type: string |
||||
title: 手机号码 |
||||
data_birth: |
||||
type: string |
||||
format: int64 |
||||
title: 出生日期的时间戳 |
||||
avatar_extra: |
||||
type: string |
||||
title: 头像备注 |
||||
charm_level: |
||||
type: string |
||||
title: 魅力等级 |
||||
charm_growth_value: |
||||
type: string |
||||
format: int64 |
||||
title: 魅力成长值 |
||||
need_dress_up_mall_guide: |
||||
type: boolean |
||||
title: 是否需要装扮商城指南 |
||||
need_dress_up_warehouse_guide: |
||||
type: boolean |
||||
title: 是否需要装扮仓库指南 |
||||
need_room_guide: |
||||
type: boolean |
||||
title: 是否需要房间指南 |
||||
show_winning_lottery: |
||||
type: boolean |
||||
title: 是否显示中奖信息 |
||||
star_sign: |
||||
type: string |
||||
title: 个性签名 |
||||
location: |
||||
type: string |
||||
title: 地址 |
||||
age_show: |
||||
type: string |
||||
title: 年龄 |
||||
gift_wall_count: |
||||
type: integer |
||||
format: int32 |
||||
title: 礼物墙数量 |
||||
lighten_gift_wall_count: |
||||
type: integer |
||||
format: int32 |
||||
title: 点亮礼物墙数 |
||||
collect_start_count: |
||||
type: integer |
||||
format: int32 |
||||
title: 收集的星星数 |
||||
title: 用户详情信息响应 |
||||
v1UserSex: |
||||
type: string |
||||
enum: |
||||
- UNKNOWN |
||||
- MALE |
||||
- FEMALE |
||||
- OTHER |
||||
default: UNKNOWN |
||||
description: |- |
||||
- MALE: 男 |
||||
- FEMALE: 女 |
||||
- OTHER: 其他 |
||||
title: 性别 |
Loading…
Reference in new issue