Logo
Explore Help
Register Sign In
wanwu/sub2api
1
0
Fork 0
You've already forked sub2api
mirror of https://gitee.com/wanwujie/sub2api synced 2026-04-12 02:54:44 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
43d9ef7f6290010d640ff1f541b02e8a5df0dcc2
sub2api/backend/internal/service/api_key.go

21 lines
309 B
Go
Raw Normal View History

refactor: 调整项目结构为单向依赖
2025-12-26 15:40:24 +08:00
package service
import "time"
chore: 更新依赖、配置和代码生成 主要更新: - 更新 go.mod/go.sum 依赖 - 重新生成 Ent ORM 代码 - 更新 Wire 依赖注入配置 - 添加 docker-compose.override.yml 到 .gitignore - 更新 README 文档(Simple Mode 说明和已知问题) - 清理调试日志 - 其他代码优化和格式修复
2026-01-03 06:37:08 -08:00
type ApiKey struct {
refactor: 调整项目结构为单向依赖
2025-12-26 15:40:24 +08:00
ID int64
UserID int64
Key string
Name string
GroupID *int64
Status string
CreatedAt time.Time
UpdatedAt time.Time
User *User
Group *Group
}
chore: 更新依赖、配置和代码生成 主要更新: - 更新 go.mod/go.sum 依赖 - 重新生成 Ent ORM 代码 - 更新 Wire 依赖注入配置 - 添加 docker-compose.override.yml 到 .gitignore - 更新 README 文档(Simple Mode 说明和已知问题) - 清理调试日志 - 其他代码优化和格式修复
2026-01-03 06:37:08 -08:00
func (k *ApiKey) IsActive() bool {
refactor: 调整项目结构为单向依赖
2025-12-26 15:40:24 +08:00
return k.Status == StatusActive
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.4.3 Page: 52ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API