Skip to content

Feat api key creator show#6342

Open
Binx98 wants to merge 3 commits into
1Panel-dev:v2from
Binx98:feat-binx-creator-show
Open

Feat api key creator show#6342
Binx98 wants to merge 3 commits into
1Panel-dev:v2from
Binx98:feat-binx-creator-show

Conversation

@Binx98

@Binx98 Binx98 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it?

在智能体的 API Key 管理列表中补充“创建者”信息。此前创建 API Key 时没有记录创建用户,列表中也无法看出某个 API Key 是由谁创建的,不利于审计和管理。

Summary of your change

  • 为应用 API Key 模型补充创建用户字段,并新增对应数据库迁移。
  • 创建 API Key 时记录当前登录用户。
  • API Key 列表接口返回创建者信息,包括用户 ID、用户名和昵称。
  • API Key 管理弹窗新增“创建者”列,优先展示昵称,缺失时展示用户名。
  • 兼容历史 API Key 数据,缺少创建者时显示为空。

@Binx98 Binx98 changed the title Feat binx creator show Feat api key creator show Jul 4, 2026
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

Successfully merging this pull request may close these issues.

1 participant