add ntg configurable work hours, weekdays

master
bel 2022-01-30 08:29:06 -07:00
parent 0ded04f072
commit 93d74fb9e1
3 changed files with 13 additions and 1 deletions

View File

@ -79,6 +79,10 @@
"UseZips": true, "UseZips": true,
"RadiusMiles": 200, "RadiusMiles": 200,
"NTG": { "NTG": {
"Working": {
"Hours": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
"Weekdays": [0, 1, 2, 3, 4, 5, 6]
},
"Enabled": false, "Enabled": false,
"JobInfo": true, "JobInfo": true,
"Mock": true, "Mock": true,
@ -94,4 +98,4 @@
"Password": "166647" "Password": "166647"
} }
} }
} }

View File

@ -83,6 +83,10 @@
"Password": "p" "Password": "p"
}, },
"NTG": { "NTG": {
"Working": {
"Hours": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
"Weekdays": [0, 1, 2, 3, 4, 5, 6]
},
"Enabled": true, "Enabled": true,
"JobInfo": true, "JobInfo": true,
"Mock": true, "Mock": true,

View File

@ -67,6 +67,10 @@ type Config struct {
UseZips bool UseZips bool
RadiusMiles int RadiusMiles int
NTG struct { NTG struct {
Working struct {
Hours []int
Weekdays []int
}
Enabled bool Enabled bool
JobInfo bool JobInfo bool
Mock bool Mock bool