Add authentication server, dev CLI, Docker multi-service setup, and cross-platform improvements

This commit is contained in:
Ilya Groshev
2026-04-21 16:49:44 +03:00
parent 43d6527b42
commit a3fbb1aeba
121 changed files with 4523 additions and 2888 deletions
+7 -6
View File
@@ -4,11 +4,12 @@ import (
"sort"
"lunar-tear/server/internal/store"
"lunar-tear/server/internal/utils"
)
func init() {
register("IUserBigHuntProgressStatus", func(user store.UserState) string {
s, _ := encodeJSONMaps(map[string]any{
s, _ := utils.EncodeJSONMaps(map[string]any{
"userId": user.UserId,
"currentBigHuntBossQuestId": user.BigHuntProgress.CurrentBigHuntBossQuestId,
"currentBigHuntQuestId": user.BigHuntProgress.CurrentBigHuntQuestId,
@@ -39,7 +40,7 @@ func init() {
"latestVersion": ms.LatestVersion,
})
}
s, _ := encodeJSONMaps(records...)
s, _ := utils.EncodeJSONMaps(records...)
return s
})
@@ -63,7 +64,7 @@ func init() {
"latestVersion": st.LatestVersion,
})
}
s, _ := encodeJSONMaps(records...)
s, _ := utils.EncodeJSONMaps(records...)
return s
})
@@ -97,7 +98,7 @@ func init() {
"latestVersion": ms.LatestVersion,
})
}
s, _ := encodeJSONMaps(records...)
s, _ := utils.EncodeJSONMaps(records...)
return s
})
@@ -130,7 +131,7 @@ func init() {
"latestVersion": ms.LatestVersion,
})
}
s, _ := encodeJSONMaps(records...)
s, _ := utils.EncodeJSONMaps(records...)
return s
})
@@ -153,7 +154,7 @@ func init() {
"latestVersion": ws.LatestVersion,
})
}
s, _ := encodeJSONMaps(records...)
s, _ := utils.EncodeJSONMaps(records...)
return s
})
}