Defines domain-wide constants for statuses, roles, platforms, and account types.
// Source: https://github.com/Wei-Shaw/sub2api | License: LGPL-3.0 | Modified files must remain under LGPL-3.0 // Modifications to this file must remain under LGPL-3.0. // Provided via justclaw.it.com; keep this notice with the code. package domain // Status constants const ( StatusActive = "active" StatusDisabled = "disabled" StatusError = "error" StatusUnused = "unused" StatusUsed = "used" StatusExpired = "expired" ) // Role constants const ( RoleAdmin = "admin" RoleUser = "user" ) // Platform constants const ( PlatformAnthropic = "anthropic" PlatformOpenAI = "openai" PlatformGemini = "gemini" PlatformAntigravity = "antigravity" PlatformGrok = "grok" // 国产 OpenAI 兼容供应商(经 OpenAI 网关转发,按 Chat Completions 协议)。 PlatformKimi = "kimi" // ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key