This commit is contained in:
aozhiwei 2024-03-30 12:55:36 +08:00
parent 11b1482cec
commit e2945e13a6
4 changed files with 8 additions and 2 deletions

View File

@ -58,7 +58,7 @@ type FriendMgr interface {
IsFriend(string, string) bool
GetFriendList(string) []string
GetBlackList(string) []string
AsyncGetApplyList(int64, string, func(int32, string, int64, []string))
AsyncGetApplyList(string, string, func(int32, string, int64, []string))
AsyncAddFriend(string, string, func(int32, string))
AsyncAccpetApply(string, string, func(int32, string))
AsyncRejectApply(string, string, func(int32, string))
@ -69,6 +69,7 @@ type FriendMgr interface {
type Guild interface {
GetGuildId() string
GetGuildName() string
}
type GuildMember interface {

View File

@ -21,3 +21,7 @@ type guild struct {
func (this *guild) GetGuildId() string {
return this.guildId
}
func (this *guild) GetGuildName() string {
return this.guildName
}

View File

@ -50,6 +50,7 @@ func (this *guildMgr) GetGuildRank() []common.Guild {
func (this *guildMgr) AsyncCreateGuild(string, string, func(int32, string, int64)) {
}
func (this *guildMgr) AsyncGetApplyList(int64, string, func(int32, string, int64, []string)) {
}

View File

@ -92,7 +92,7 @@ func (this *player) CMSearchUserByAccountId(hdr *f5.MsgHdr, msg *cs.CMSearchUser
func (this *player) CMListPendingFriendRequest(hdr *f5.MsgHdr, msg *cs.CMListPendingFriendRequest) {
GetFriendMgr().AsyncGetApplyList(
0,
"",
this.GetAccountId(),
func (errCode int32, errMsg string, sinceId int64, accountIds []string) {
rspMsg := new(cs.SMListPendingFriendRequest)