1
This commit is contained in:
parent
11b1482cec
commit
e2945e13a6
@ -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 {
|
||||
|
@ -21,3 +21,7 @@ type guild struct {
|
||||
func (this *guild) GetGuildId() string {
|
||||
return this.guildId
|
||||
}
|
||||
|
||||
func (this *guild) GetGuildName() string {
|
||||
return this.guildName
|
||||
}
|
||||
|
@ -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)) {
|
||||
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user