fusenapi/server/websocket/internal/handler/datatransferhandler.go
laodaming 7d2c2ab025 fix
2023-08-16 14:16:33 +08:00

16 lines
376 B
Go

package handler
import (
"fusenapi/server/websocket/internal/logic"
"fusenapi/server/websocket/internal/svc"
"net/http"
)
func DataTransferHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
// 创建一个业务逻辑层实例
l := logic.NewDataTransferLogic(r.Context(), svcCtx)
l.DataTransfer(w, r)
}
}