File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ data {
143143 text: "100000用户"
144144 id: 500
145145 }
146- registered_time: "注册时间(YYYY-MM-DD hh:mm:ss"
146+ registered_time: "注册时间(YYYY-MM-DD hh:mm:ss) "
147147 online_day: 在线时长(整数)
148148 continue_online_day: 连续在线时长(整数)
149149 vip_expired_time: unix时间戳
@@ -176,4 +176,50 @@ message get_user {
176176 }
177177}
178178```
179+ :::
180+
181+ ## 用户勋章
182+
183+ POST /v1/user/medal
184+
185+ 请求头:
186+
187+ | 名称| 必须| 备注|
188+ | -----| -----| -----|
189+ | token| 是| 空|
190+
191+ 响应体:
192+ ``` ProtoBuf
193+ status {
194+ number: 114514
195+ code: 1
196+ msg: "success"
197+ }
198+ medal {
199+ order: 1
200+ text: "内测用户"
201+ id: 100
202+ }
203+ medal {
204+ order: 6
205+ text: "100000用户"
206+ id: 500
207+ }
208+ ```
209+
210+ ::: details ProtoBuf数据结构
211+ ``` proto
212+ // 勋章
213+ message medal {
214+ Status status = 1; // 状态信息
215+ repeated Medal_info medal = 2; // 勋章信息
216+ }
217+
218+ // 勋章信息
219+ message Medal_info {
220+ uint64 order = 1; // 勋章序列
221+ string text = 2; // 勋章文本
222+ uint64 id = 5; // 勋章ID? 不确定
223+ }
224+ ```
179225:::
You can’t perform that action at this time.
0 commit comments