feat(event): 添加酒局报名审核功能并优化前端组件
- 新增 ApproveEvent API 接口用于审核报名用户
- 在 EventCard 组件中显示待审核状态(⏳ 待审核)
- 实现酒局发起人审核报名用户的完整流程
- 添加用户协议和隐私政策页面
- 优化 FeedCard 组件中的图片展示逻辑
- 修复连续打卡天数计算问题
- 更新 HaveADrink SDK 至 1.0.15 版本
This commit is contained in:
+62
-1
@@ -14,7 +14,7 @@
|
||||
* 6. 社交模块 - 朋友圈动态、点赞
|
||||
|
||||
|
||||
**版本:** v1.0.12
|
||||
**版本:** v1.0.15
|
||||
|
||||
## 安装
|
||||
|
||||
@@ -1116,6 +1116,34 @@ const req = new UpdatePreferencesReq()
|
||||
client.UpdatePreferences(req).then(...).catch(...)
|
||||
```
|
||||
|
||||
### 获取用户基础信息
|
||||
|
||||
|
||||
|
||||
<font color="green">GET</font> `/api/have_a_drink/v1/user/user/basic_info`
|
||||
|
||||
#### 请求参数
|
||||
|名称|类型|校验规则|说明|
|
||||
|:-|:-|:-|:-|
|
||||
|id|`string\|number`|| 用户ID|
|
||||
|
||||
|
||||
|
||||
|
||||
#### 返回值
|
||||
|名称|类型|说明|
|
||||
|:-|:-:|:-|
|
||||
|nickname|`string`| 用户昵称<br>|
|
||||
|avatar|`string`| 头像URL<br>|
|
||||
|
||||
|
||||
|
||||
|
||||
```javascript
|
||||
const req = new GetUserBasicInfoReq()
|
||||
client.GetUserBasicInfo(req).then(...).catch(...)
|
||||
```
|
||||
|
||||
### 上传文件
|
||||
|
||||
|
||||
@@ -1865,6 +1893,35 @@ const req = new CheckInEventReq()
|
||||
client.CheckInEvent(req).then(...).catch(...)
|
||||
```
|
||||
|
||||
### 酒局发起者审核报名用户
|
||||
|
||||
|
||||
|
||||
<font color="green">POST</font> `/api/have_a_drink/v1/events/events/approve`
|
||||
|
||||
#### 请求参数
|
||||
|名称|类型|校验规则|说明|
|
||||
|:-|:-|:-|:-|
|
||||
|id|`string\|number`|| 酒局ID|
|
||||
|userId|`string\|number`|| 报名用户ID|
|
||||
|approve|`ApproveStatus`|待审核: ApproveStatus.Pending = 1<br>已通过: ApproveStatus.Approved = 2<br>已拒绝: ApproveStatus.Rejected = 3| 审核结果|
|
||||
|
||||
|
||||
|
||||
|
||||
#### 返回值
|
||||
|名称|类型|说明|
|
||||
|:-|:-:|:-|
|
||||
|ok|`boolean`| 是否成功<br>|
|
||||
|
||||
|
||||
|
||||
|
||||
```javascript
|
||||
const req = new ApproveEventReq()
|
||||
client.ApproveEvent(req).then(...).catch(...)
|
||||
```
|
||||
|
||||
### 获取会话列表
|
||||
|
||||
|
||||
@@ -1935,6 +1992,10 @@ client.GetConversations(req).then(...).catch(...)
|
||||
|conversationId|`string`| 会话ID|
|
||||
|senderId|`string\|number`| 发送者ID|
|
||||
|receiverId|`string\|number`| 接收者ID|
|
||||
|senderName|`string`| 发送者昵称|
|
||||
|receiverName|`string`| 接收者昵称|
|
||||
|senderAvatar|`string`| 发送者头像URL|
|
||||
|receiverAvatar|`string`| 接收者头像URL|
|
||||
|type|`MessageType`| 消息类型|
|
||||
|content|`string`| 消息内容|
|
||||
|timestamp|`number`| 发送时间(毫秒时间戳)|
|
||||
|
||||
Reference in New Issue
Block a user