init: initial commit

This commit is contained in:
Blizzard
2026-04-10 13:49:04 +08:00
commit 7b1588e2ff
56 changed files with 5499 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package main
// Game represents a user-defined game with its own API configuration
type Game struct {
ID string `json:"id" gorm:"primaryKey"`
Name string `json:"name"`
Icon string `json:"icon"`
URL string `json:"url"`
Token string `json:"token"`
}
// ConnectionResult represents the result of a connection test
type ConnectionResult struct {
Success bool `json:"success"`
Message string `json:"message"`
Latency int64 `json:"latency"`
Status int `json:"status"`
}
// XRayResult represents the raw JSON response of a test call
type XRayResult struct {
Success bool `json:"success"`
Body string `json:"body"`
Latency int64 `json:"latency"`
Error string `json:"error"`
}