feat: api key manage page funciton is ready

This commit is contained in:
RockYang
2024-01-04 10:48:04 +08:00
parent 79f6a43019
commit 21f2622a4b
6 changed files with 133 additions and 19 deletions

View File

@@ -6,5 +6,8 @@ type ApiKey struct {
Platform string
Type string // 用途 chat => 聊天img => 绘图
Value string // API Key 的值
ApiURL string // 当前 KEY 的 API 地址
Enabled bool // 是否启用
UseProxy bool // 是否使用代理访问 API URL
LastUsedAt int64 // 最后使用时间
}

View File

@@ -5,6 +5,9 @@ type ApiKey struct {
BaseVo
Platform string `json:"platform"`
Type string `json:"type"`
Value string `json:"value"` // API Key 的值
Value string `json:"value"` // API Key 的值
ApiURL string `json:"api_url"`
Enabled bool `json:"enabled"`
UseProxy bool `json:"use_proxy"`
LastUsedAt int64 `json:"last_used_at"` // 最后使用时间
}