增加json序列化配置

This commit is contained in:
joylink_zhangsai 2023-07-27 18:18:43 +08:00
parent 055a891ac2
commit 1c878c2962
1 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
package dynamics
type InitTrainInfo struct {
TrainIndex uint16
LinkIndex uint16
LinkOffset uint16
Speed uint16
Up bool
TrainIndex uint16 `json:"trainIndex"`
LinkIndex uint16 `json:"linkIndex"`
LinkOffset uint16 `json:"linkOffset"`
Speed uint16 `json:"speed"`
Up bool `json:"up"`
}