refactor(subscribe): replace V2 handler with a unified Handler method for subscription logic

This commit is contained in:
Chang lue Tsen
2025-08-16 12:59:28 -04:00
parent 81a46d1f13
commit 4f2aafd8b2
4 changed files with 119 additions and 370 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func PanDomainMiddleware(svc *svc.ServiceContext) func(c *gin.Context) {
UA: c.Request.Header.Get("User-Agent"),
}
l := subscribe.NewSubscribeLogic(c, svc)
resp, err := l.V2(&request)
resp, err := l.Handler(&request)
if err != nil {
return
}