feat(api): define OnlineUser type with SID and IP fields

This commit is contained in:
Chang lue Tsen 2025-08-25 11:16:39 -04:00
parent 630098bfbb
commit 1ccbdc18b1

View File

@ -11,6 +11,10 @@ info (
import "../types.api" import "../types.api"
type ( type (
OnlineUser {
SID int64 `json:"uid"`
IP string `json:"ip"`
}
ShadowsocksProtocol { ShadowsocksProtocol {
Port int `json:"port"` Port int `json:"port"`
Method string `json:"method"` Method string `json:"method"`