Skip to content

Commit e4bfae8

Browse files
Kauid323yyyytawa
authored andcommitted
add:用户资料和用户备注proto数据结构
/v1/user/get-user 字段18:备注信息 字段19:用户资料 没写响应体,只写了protobuf数据结构(
1 parent 35d2286 commit e4bfae8

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/api/v1/user.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,22 @@ message Medal_info {
172172
uint64 sort = 5; // 勋章顺序
173173
}
174174
175+
message Remark_info {
176+
string remark_name = 1; // 备注名
177+
string phone_number = 2; // 手机号
178+
string extra_remark = 3; // 其他备注(格式为JSON,示例:'[{"key":"他是","value":"我的朋友"},{"key":"职业","value":"打工人"}]'
179+
}
180+
181+
message Profile_info {
182+
string last_active_time = 1; // 该用户上次活跃时间
183+
string introduction = 2; // 简介
184+
int32 gender = 3; // 性别(1-男,2-女,3-其他)
185+
uint64 birthday_timestamp = 4; // 生日时间戳
186+
string city = 5; // 城市
187+
string district = 6; // 地区
188+
string address = 7; // 详细地址
189+
}
190+
175191
// 获取用户信息
176192
message get_user {
177193
Status status = 1; // 状态码
@@ -189,6 +205,8 @@ message get_user {
189205
uint64 continuous_online_day = 12; // 连续在线天数
190206
int32 is_vip = 13; // 是否为vip
191207
uint64 vip_expired_time = 14; // VIP过期时间(时间戳)
208+
Remark_info remark_info = 18; // 备注信息
209+
Profile_info profile_info = 19; // 用户资料信息
192210
}
193211
}
194212
```
@@ -874,4 +892,4 @@ POST /v1/user/get-user-show-adv
874892
},
875893
"msg": "success" // 返回消息
876894
}
877-
```
895+
```

0 commit comments

Comments
 (0)