ProjectWIND/typed/typed.go

29 lines
834 B
Go
Raw Normal View History

2024-11-28 15:20:29 +08:00
package typed
2025-04-01 01:20:35 +08:00
import "ProjectWIND/wba"
2024-12-05 01:00:07 +08:00
type CoreConfigInfo struct {
2025-03-02 11:25:49 +08:00
CoreName string `json:"core_name"`
Protocol Protocol `json:"protocol"`
WebUIPort uint16 `json:"webui_port"`
PasswordHash string `json:"password_hash"`
ServiceName string `json:"service_name"`
}
type Protocol struct {
2025-03-02 11:25:49 +08:00
Name string `json:"protocol_name"`
Platform string `json:"protocol_platform"`
Addr string `json:"protocol_addr"`
Token string `json:"token"`
Enable bool `json:"enable"`
2024-11-28 19:45:03 +08:00
}
2025-03-03 15:37:59 +08:00
type SessionWorkSpace struct {
2025-04-01 01:20:35 +08:00
SessionId string `json:"session_id"`
Rule string `json:"rule"`
Enable bool `json:"enable"`
AppEnable map[wba.AppKey]bool `json:"app_enable"`
CmdEnable map[string]bool `json:"cmd_enable"`
WorkLevel int32 `json:"work_level"`
2025-03-03 15:37:59 +08:00
}