新增新个人和企业司法
This commit is contained in:
30
apps/api/internal/handler/FLXG/flxg0v4bhandler.go
Normal file
30
apps/api/internal/handler/FLXG/flxg0v4bhandler.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package FLXG
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"tianyuan-api/pkg/errs"
|
||||
"tianyuan-api/pkg/response"
|
||||
|
||||
"github.com/zeromicro/go-zero/rest/httpx"
|
||||
"tianyuan-api/apps/api/internal/logic/FLXG"
|
||||
"tianyuan-api/apps/api/internal/svc"
|
||||
"tianyuan-api/apps/api/internal/types"
|
||||
)
|
||||
|
||||
func FLXG0V4BHandler(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 {
|
||||
response.Fail(r.Context(), w, errs.ErrParamValidation, nil)
|
||||
return
|
||||
}
|
||||
|
||||
l := FLXG.NewFLXG0V4BLogic(r.Context(), svcCtx)
|
||||
resp, err := l.FLXG0V4B(&req)
|
||||
if err != nil {
|
||||
response.Fail(r.Context(), w, err, resp)
|
||||
} else {
|
||||
response.Success(r.Context(), w, resp)
|
||||
}
|
||||
}
|
||||
}
|
||||
31
apps/api/internal/handler/QYGL/qygl8271handler.go
Normal file
31
apps/api/internal/handler/QYGL/qygl8271handler.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package QYGL
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"tianyuan-api/apps/api/internal/logic/QYGL"
|
||||
"tianyuan-api/apps/api/internal/svc"
|
||||
"tianyuan-api/apps/api/internal/types"
|
||||
"tianyuan-api/pkg/errs"
|
||||
"tianyuan-api/pkg/response"
|
||||
|
||||
"github.com/zeromicro/go-zero/rest/httpx"
|
||||
)
|
||||
|
||||
func QYGL8271Handler(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 {
|
||||
response.Fail(r.Context(), w, errs.ErrParamValidation, nil)
|
||||
return
|
||||
}
|
||||
|
||||
l := QYGL.NewQYGL8271Logic(r.Context(), svcCtx)
|
||||
resp, err := l.QYGL8271(&req)
|
||||
if err != nil {
|
||||
response.Fail(r.Context(), w, err, resp)
|
||||
} else {
|
||||
response.Success(r.Context(), w, resp)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.7.2
|
||||
// goctl 1.7.3
|
||||
|
||||
package handler
|
||||
|
||||
@@ -26,6 +26,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
Path: "/FLXG0V3B",
|
||||
Handler: FLXG.FLXG0V3BHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/FLXG0V4B",
|
||||
Handler: FLXG.FLXG0V4BHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/FLXG162A",
|
||||
@@ -173,6 +178,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
Path: "/QYGL8261",
|
||||
Handler: QYGL.QYGL8261Handler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/QYGL8271",
|
||||
Handler: QYGL.QYGL8271Handler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/QYGLB4C0",
|
||||
|
||||
Reference in New Issue
Block a user