[sub] JSON sub enhancement + minor changes

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
MHSanaei
2024-03-11 16:14:24 +03:30
parent 8908e8b16a
commit 5b87b12535
8 changed files with 115 additions and 101 deletions

View File

@@ -27,14 +27,15 @@ func NewSUBController(
update string,
jsonFragment string,
) *SUBController {
sub := NewSubService(showInfo, rModel)
a := &SUBController{
subPath: subPath,
subJsonPath: jsonPath,
subEncrypt: encrypt,
updateInterval: update,
subService: NewSubService(showInfo, rModel),
subJsonService: NewSubJsonService(jsonFragment),
subService: sub,
subJsonService: NewSubJsonService(jsonFragment, sub),
}
a.initRouter(g)
return a