Files
tyass-server/app/main/api/internal/handler/user/cancelouthandler.go
2026-01-30 16:51:19 +08:00

18 lines
399 B
Go

package user
import (
"net/http"
"tyass-server/app/main/api/internal/logic/user"
"tyass-server/app/main/api/internal/svc"
"tyass-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)
}
}