playerdisconnecthandler.go 400 B

1234567891011121314151617
  1. package handler
  2. import (
  3. "net/http"
  4. "ylink/comm/result"
  5. "ylink/bff/cmdbff/api/internal/logic"
  6. "ylink/bff/cmdbff/api/internal/svc"
  7. )
  8. func playerDisconnectHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
  9. return func(w http.ResponseWriter, r *http.Request) {
  10. l := logic.NewPlayerDisconnectLogic(r.Context(), svcCtx)
  11. err := l.PlayerDisconnect()
  12. result.HttpResult(r, w, nil, err)
  13. }
  14. }