增加json序列化配置
This commit is contained in:
parent
055a891ac2
commit
1c878c2962
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue