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

22 lines
465 B
Go
Raw Normal View History

2023-11-06 07:19:14 +00:00
package handler
import (
"encoding/json"
"net/http"
"reflect"
"fusenapi/utils/basic"
"fusenapi/server/feishu-sync/internal/logic"
"fusenapi/server/feishu-sync/internal/svc"
"fusenapi/server/feishu-sync/internal/types"
)
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
}
}