Skip to content

用户角色 #4

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

Open
1 task done
iRuxu opened this issue Mar 24, 2025 · 5 comments
Open
1 task done

用户角色 #4

iRuxu opened this issue Mar 24, 2025 · 5 comments

Comments

@iRuxu
Copy link
Member

iRuxu commented Mar 24, 2025

概述

现在个人主页准备拟展示用户的角色。
但是应该要让用户自己决定自己的哪些角色是否对外公开。

  • 小胡:已明白
@iRuxu
Copy link
Member Author

iRuxu commented Mar 24, 2025

角色表扩展

https://www.jx3box.com/dashboard/role
https://team.jx3box.com/api/team/my-game-roles?mount=&name=

角色表扩展一个字段is_public_visible代表角色是否公开可见。
默认都是不公开的。

  • 小胡:已完成

@iRuxu
Copy link
Member Author

iRuxu commented Mar 24, 2025

接口

  1. 增加一个接口,用户可自行修改自己指定角色的is_public_visible
  2. 增加一个接口,可以查询某个用户的全部公开角色(不分页),注意jx3id和player_id不要在接口中返回出来
  • 小胡:已完成

@iRuxu
Copy link
Member Author

iRuxu commented Mar 24, 2025

前端

Image

  1. 利用楼上1号接口,可以修改is_public_visible的值。
    开关的文字为:公开

  2. 更多的按钮下面,解绑和删除现在看起来是同一个,其实是2个不同的,只是表现图标一样,自定义角色是删除+设置,游戏内绑定的角色则只能解绑

  • 醉栩:已完成

@iRuxu
Copy link
Member Author

iRuxu commented Mar 24, 2025

小程序

利用上面的2号接口,返回对应公开角色的信息

  • Blank:已完成

Kaviilee added a commit that referenced this issue Mar 25, 2025
@blankqwq

This comment has been minimized.

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

No branches or pull requests

2 participants