Skip to content

Commit 20767f1

Browse files
Kauid323QianLin-Jiaxi
authored andcommitted
Update user.md
1 parent 6968b70 commit 20767f1

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

src/api/v1/user.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,3 +536,46 @@ POST /v1/user/notification-info
536536
"msg": "success" // 返回消息
537537
}
538538
```
539+
540+
## 金币增减记录
541+
542+
POST /v1/user/gold-coin-increase-decrease-record
543+
544+
请求头:
545+
546+
|名称|必须|备注|
547+
|-----|-----|-----|
548+
|token|||
549+
550+
响应体:
551+
```JSONC
552+
{
553+
"size": 20, // 尺寸
554+
"page": 1 // 页数
555+
}
556+
```
557+
558+
响应体:
559+
```JSONC
560+
{
561+
"code": 1, // 请求状态码,1为正常
562+
"data": {
563+
"goldCoinRecord": [
564+
{
565+
"id": 193275, // 金币记录id
566+
"userId": "用户id",
567+
"typ": 8, // 类型
568+
"beforeAmount": 55.01, // 之前金币数量
569+
"afterAmount": 57.01, // 之后的金币数量
570+
"changeAmount": 2, // 增加/减少的金币数量
571+
"reason": "抽奖金币", // 增加/减少金币的原因
572+
"remark": "", // 备注
573+
"createTime": 1754669040 // 创建时间戳
574+
}
575+
// ...
576+
],
577+
"total": 243 // 总共的金币记录
578+
},
579+
"msg": "success" // 返回消息
580+
}
581+
```

0 commit comments

Comments
 (0)