增加IVYZ9a2b

This commit is contained in:
2025-05-21 17:46:31 +08:00
parent 004fd5782c
commit 190bd0cb0f
9 changed files with 199 additions and 31 deletions

View File

@@ -0,0 +1,28 @@
package IVYZ
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"tianyuan-api/apps/api/internal/logic/IVYZ"
"tianyuan-api/apps/api/internal/svc"
"tianyuan-api/apps/api/internal/types"
)
func IVYZ9A2BHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.Request
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := IVYZ.NewIVYZ9A2BLogic(r.Context(), svcCtx)
resp, err := l.IVYZ9A2B(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@@ -115,6 +115,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/IVYZ9363",
Handler: IVYZ.IVYZ9363Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/IVYZ9A2B",
Handler: IVYZ.IVYZ9A2BHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/IVYZADEE",