add init db data, fix bugs, refactor
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"errors"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"gitea.local.lab/Lbenedar/foundry_helper_service/internal/foundry/models/db"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -31,6 +33,18 @@ var WsTypeData = map[string]string{
|
||||
UpdatePath: "getUpdateData",
|
||||
}
|
||||
|
||||
var PathToSetupState = map[string]db.StateType{
|
||||
SetupPath: db.SetupState,
|
||||
// AuthPath: db.AuthState,
|
||||
// UpdatePath: db.UpdateState,
|
||||
// LicensePath: db.LicenseState,
|
||||
}
|
||||
|
||||
var PathToWorldState = map[string]db.StateType{
|
||||
JoinPath: db.JoinState,
|
||||
PlayersPath: db.PlayersState,
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Host string
|
||||
Password string
|
||||
|
||||
Reference in New Issue
Block a user