Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
add 拍一拍
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkerWen authored and mcoo committed Apr 15, 2024
1 parent ff540d0 commit 8dd9a3e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions v2/apiBuilder/groupManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ type IGroupManager interface {
GroupSystemMsgAction(MsgType int, MsgSeq, GroupCode int64) IGroupSystemMsgAction
RevokeMsg() IGroupManager
ToGUin(Uin int64) IGroupManager
ToGroupCode(Uin int64) IGroupManager
MsgSeq(MsgSeq int64) IGroupManager
MsgRandom(MsgRandom int64) IGroupManager
ProhibitedUser() IGroupManager
ToUid(Uid string) IGroupManager
ShutTime(ShutTime int) IGroupManager
RemoveUser() IGroupManager
RenameUserNickName(NickName string) IGroupManager
Pat(Uin int64) IGroupManager
}
type IGroupSystemMsgAction interface {
DoApi
Expand Down Expand Up @@ -97,6 +99,11 @@ func (b *Builder) ToGUin(Uin int64) IGroupManager {
return b
}

func (b *Builder) ToGroupCode(GroupCode int64) IGroupManager {
b.CgiRequest.GroupCode = &GroupCode
return b
}

func (b *Builder) ToUid(Uid string) IGroupManager {
b.CgiRequest.Uid = &Uid
return b
Expand Down Expand Up @@ -141,3 +148,10 @@ func (b *Builder) RenameUserNickName(NickName string) IGroupManager {

return b
}

func (b *Builder) Pat(Uin int64) IGroupManager {
cmd := "SsoGroup.Op.Pat"
b.CgiCmd = &cmd
b.CgiRequest.Uin = &Uin
return b
}
4 changes: 4 additions & 0 deletions v2/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ type IGroupMsg interface {
GetSenderNick() string
GetSenderUin() int64
GetSenderUid() string
GetToUin() int64
ParseTextMsg() ITextMsg
ParsePicMsg() IPicMsg
ContainedPic() bool
Expand Down Expand Up @@ -260,6 +261,9 @@ func (e *EventStruct) GetSenderUin() int64 {
func (e *EventStruct) GetSenderUid() string {
return e.CurrentPacket.EventData.MsgHead.SenderUid
}
func (e *EventStruct) GetToUin() int64 {
return e.CurrentPacket.EventData.MsgHead.ToUin
}
func (e *EventStruct) GetSenderNick() string {
return e.CurrentPacket.EventData.MsgHead.SenderNick
}
Expand Down

0 comments on commit 8dd9a3e

Please sign in to comment.