This commit is contained in:
2024-10-12 23:49:59 +08:00
parent d520deacb3
commit 915d3f3716
37 changed files with 173 additions and 92 deletions

View File

@@ -2,6 +2,7 @@ package IVYZ
import (
"net/http"
"tianyuan-api/pkg/response"
"github.com/zeromicro/go-zero/rest/httpx"
"tianyuan-api/apps/api/internal/logic/IVYZ"
@@ -22,9 +23,9 @@ func IVYZ385EHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
l := IVYZ.NewIVYZ385ELogic(r.Context(), svcCtx)
resp, err := l.IVYZ385E(&req)
if err != nil {
xhttp.JsonBaseResponseCtx(r.Context(), w, err)
response.Fail(r.Context(), w, err)
} else {
xhttp.JsonBaseResponseCtx(r.Context(), w, resp)
response.Success(r.Context(), w, resp)
}
}
}