AIStudio2API
AIStudio2API copied to clipboard
[Feature] Add optional "Note" / remark field to AccountConfig for managing large pools (50+ accounts)
想要什么,用来做什么 / What you want and what for
What I want & Use Case
When managing a large pool (50–100+ accounts), remembering account-specific metadata (e.g. subscription renewal date, device used for QR verification, proxy provider, or team owner) is currently impossible because:
account.jsononly containslabel,enabled,proxy,locale,timezone,auth_user.internal/app/admin.go:795explicitly forbids changinglabel:if !strings.EqualFold(input.Label, accountID) { return invalidAccount("账户邮箱不可修改") }
Adding an optional Note (or remark) string field to AccountConfig and exposing it in the edit dialog, account row, and search filter would make large-scale account management significantly easier.
Proposed Changes
- Config & Schema (
internal/aistudio/accounts.go,internal/api/admin.go):- Add
Note stringjson:"note,omitempty"`` toAccountConfig,AccountDraft, andAdminAccount. - Update
saveAccountConfigto persistNote.
- Add
- Web UI (
web/src/components/AccountsPanel.vue):- Add a
Notetext field in the Edit Account dialog (showEditor). - Display the note in the account row summary line (e.g.
[email protected] · Pro · [Note text]). - Include
account.notein thevisibleAccountssearch filter so typing a note keyword immediately filters matching accounts.
- Add a
版本 / Version
v0.3.13