添加Friend.AddIntoGroup
This commit is contained in:
parent
6ec0a4905a
commit
b00708e811
10
relations.go
10
relations.go
@ -34,6 +34,16 @@ func (f *Friend) SendImage(file *os.File) error {
|
|||||||
return f.sendImage(file)
|
return f.sendImage(file)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 拉该好友入群
|
||||||
|
func (f *Friend) AddIntoGroup(groups ...*Group) error {
|
||||||
|
for _, group := range groups {
|
||||||
|
if err := group.AddFriendsIn(f); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type Friends []*Friend
|
type Friends []*Friend
|
||||||
|
|
||||||
// 获取好友的数量
|
// 获取好友的数量
|
||||||
|
Loading…
x
Reference in New Issue
Block a user