fusenapi/server/feishu-sync/internal/handler/webhookhandler.go

16 lines
365 B
Go
Raw Normal View History

2023-11-06 07:19:14 +00:00
package handler
import (
"fusenapi/server/feishu-sync/internal/logic"
"fusenapi/server/feishu-sync/internal/svc"
2023-11-07 02:17:33 +00:00
"net/http"
2023-11-06 07:19:14 +00:00
)
func WebhookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
// 创建一个业务逻辑层实例
l := logic.NewWebhookLogic(r.Context(), svcCtx)
2023-11-07 02:16:20 +00:00
l.Webhook(w, r)
2023-11-06 07:19:14 +00:00
}
}