更新文档信息

This commit is contained in:
eatmoreapple 2022-11-15 21:42:21 +08:00
parent 28652aa6ba
commit 21eaf0c137
2 changed files with 6 additions and 4 deletions

View File

@ -108,6 +108,8 @@ msg.IsSendRedPacket()
msg.IsReceiveRedPacket() msg.IsReceiveRedPacket()
``` ```
但是不能领取!
##### 判断是否为拍一拍 ##### 判断是否为拍一拍
```go ```go
@ -120,8 +122,6 @@ msg.IsTickled()
msg.IsJoinGroup() msg.IsJoinGroup()
``` ```
但是不能领取!
#### 获取消息的发送者 #### 获取消息的发送者
@ -278,10 +278,12 @@ type RevokeMsg struct {
#### 同意好友请求 #### 同意好友请求
```go ```go
msg.Agree() friend, err := msg.Agree()
// msg.Agree("我同意了") // msg.Agree("我同意了")
``` ```
返回的friend即刚添加的好友对象
该方法调用成功的前提是`msg.IsFriendAdd()`返回为`true` 该方法调用成功的前提是`msg.IsFriendAdd()`返回为`true`

View File

@ -43,7 +43,7 @@ type User struct {
} }
``` ```
`User`结构体的属性,部信息可以通过它的英文名知道它所描述的意思。 `User`结构体的属性,部信息可以通过它的英文名知道它所描述的意思。
其中要注意的是`UserName`这个属性。 其中要注意的是`UserName`这个属性。