[sub] JSON sub enhancement #1029

This commit is contained in:
Alireza Ahmadi
2024-03-11 11:56:28 +01:00
parent 1cc72ae6af
commit 5ae613c188
4 changed files with 97 additions and 83 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