This commit is contained in:
aozhiwei 2024-03-29 09:08:09 +08:00
parent 5d59e9605d
commit 7a96d0874c

View File

@ -148,8 +148,22 @@ func (this *friendMgr) getBlacks(accountId string) *map[string]int32 {
return nil
}
func (this *friendMgr) AsyncGetApplyList(int64, string, func(int32, string, int64, []string)) {
func (this *friendMgr) AsyncGetApplyList(idx int64, accountId string, cb func(int32, string, int64, []string)) {
f5.GetJsStyleDb().PageQuery(
constant.FRIEND_DB,
50,
0,
"SELECT * FROM t_friend_apply",
[]string{},
f5.GetDbFilter().Comp(
f5.GetDbFilter().GT("idx", q5.ToString(idx)).And(),
f5.GetDbFilter().EQ("target_id", accountId).And(),
f5.GetDbFilter().EQ("status", "0"),
),
"",
func (err error, pg *f5.Pagination) {
})
}
func (this *friendMgr) AsyncAddFriend(senderId string, targetId string, cb func(int32, string)) {