go rewrite
This commit is contained in:
parent
3a9d220140
commit
d4290ff553
21 changed files with 437 additions and 552 deletions
11
internal/model/model.go
Normal file
11
internal/model/model.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package model
|
||||
|
||||
type Battery struct {
|
||||
Path string `json:"path"`
|
||||
Command string `json:"command"`
|
||||
ExtraCommand string `json:"extraCommand"`
|
||||
}
|
||||
|
||||
type BatteryConfig struct {
|
||||
BatPaths []Battery `json:"batPaths"`
|
||||
}
|
Reference in a new issue