package notify import ( "github.com/gin-gonic/gin" "github.com/perfect-panel/server/internal/logic/notify" "github.com/perfect-panel/server/internal/svc" "github.com/perfect-panel/server/pkg/result" ) // AppleIAPNotifyHandler 处理 Apple Server Notifications v2 // 参数: 原始 HTTP 请求体 // 返回: 处理结果(空体 200) func AppleIAPNotifyHandler(svcCtx *svc.ServiceContext) func(c *gin.Context) { return func(c *gin.Context) { l := notify.NewAppleIAPNotifyLogic(c.Request.Context(), svcCtx) err := l.Handle(c.Request) result.HttpResult(c, gin.H{"success": err == nil}, err) } }