1
0
Fork 0

[golang] refactor ships api

This commit is contained in:
Julien Dessaux 2025-02-12 23:43:52 +01:00
parent d16dd4f38e
commit 23dd8f4a27
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 40 additions and 32 deletions

View file

@ -1,15 +1,15 @@
package model
type Ship struct {
Cargo Cargo `json:"cargo"`
Cooldown Cooldown `json:"cooldown"`
Cargo *Cargo `json:"cargo"`
Cooldown *Cooldown `json:"cooldown"`
//// crew
//// engine
//// frame
Fuel Fuel `json:"fuel"`
Fuel *Fuel `json:"fuel"`
//// modules
//// mounts
Nav Nav `json:"nav"`
Nav *Nav `json:"nav"`
//// reactor
//registration: Registration;
Symbol string `json:"symbol"`