tydata-server/app/main/api/internal/handler/user/cancelouthandler.go
2025-06-08 15:14:34 +08:00

18 lines
402 B
Go

package user
import (
"net/http"
"tydata-server/app/main/api/internal/logic/user"
"tydata-server/app/main/api/internal/svc"
"tydata-server/common/result"
)
func CancelOutHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := user.NewCancelOutLogic(r.Context(), svcCtx)
err := l.CancelOut()
result.HttpResult(r, w, nil, err)
}
}