wsHandler.go 339 B

12345678910111213141516
  1. package user
  2. import (
  3. "net/http"
  4. "microGame/app/usercenter/cmd/api/internal/logic/user"
  5. "microGame/app/usercenter/cmd/api/internal/svc"
  6. )
  7. // WsHandler ws
  8. func WsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
  9. return func(w http.ResponseWriter, r *http.Request) {
  10. l := user.NewWsLogic(r.Context(), svcCtx)
  11. l.Ws(w, r)
  12. }
  13. }