Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【好友需求】增加好友分组功能 #726

Open
liliangdao opened this issue Jan 9, 2025 · 3 comments
Open

【好友需求】增加好友分组功能 #726

liliangdao opened this issue Jan 9, 2025 · 3 comments

Comments

@liliangdao
Copy link

类似qq
分组的创建 删除 维护

@imndx
Copy link
Contributor

imndx commented Jan 9, 2025

  1. handleFriendRequest接受好友请求时,有一个extra参数,然后这个字段会更新到Friendextra字段中,可以通过这个字段来实现好友分组。

  2. 或者将这个功能,在业务服务上去实现

@heavyrain2012
Copy link
Contributor

  1. handleFriendRequest接受好友请求时,有一个extra参数,然后这个字段会更新到Friendextra字段中,可以通过这个字段来实现好友分组。
  2. 或者将这个功能,在业务服务上去实现

方法1不太好,因为好友的extra只有在接受时设置一次,后续不能更改。正确的做法应该是放到业务服务上去实现,记录每个用户的分组列表和每个分组内的情况,然后客户端再CURD这个数据

@imndx
Copy link
Contributor

imndx commented Jan 11, 2025

  1. handleFriendRequest接受好友请求时,有一个extra参数,然后这个字段会更新到Friendextra字段中,可以通过这个字段来实现好友分组。
  2. 或者将这个功能,在业务服务上去实现

方法1不太好,因为好友的extra只有在接受时设置一次,后续不能更改。正确的做法应该是放到业务服务上去实现,记录每个用户的分组列表和每个分组内的情况,然后客户端再CURD这个数据

那是不是也可以加一个设置好友extra的方法?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants