2023-07-24 08:07:05 +00:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
2023-07-25 09:10:50 +00:00
|
|
|
"fusenapi/server/websocket/internal/logic"
|
2023-07-24 08:07:05 +00:00
|
|
|
"fusenapi/server/websocket/internal/svc"
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
func DataTransferHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
|
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
2023-07-25 09:10:50 +00:00
|
|
|
// 创建一个业务逻辑层实例
|
|
|
|
l := logic.NewDataTransferLogic(r.Context(), svcCtx)
|
2023-07-26 03:53:06 +00:00
|
|
|
l.DataTransfer(svcCtx, w, r)
|
2023-07-25 09:10:50 +00:00
|
|
|
}
|
|
|
|
}
|