successfully run facade

This commit is contained in:
2025-01-20 21:45:01 +08:00
parent 98273c7645
commit 19851da7f1
24 changed files with 435 additions and 1620 deletions
+26
View File
@@ -0,0 +1,26 @@
package service
import (
"context"
"github.com/cloudwego/hertz/pkg/app"
facade "github.com/suyiiyii/hertz101/app/facade/hertz_gen/facade"
)
type RegisterService struct {
RequestContext *app.RequestContext
Context context.Context
}
func NewRegisterService(Context context.Context, RequestContext *app.RequestContext) *RegisterService {
return &RegisterService{RequestContext: RequestContext, Context: Context}
}
func (h *RegisterService) Run(req *facade.RegisterReq) (resp *facade.RegisterResp, err error) {
//defer func() {
// hlog.CtxInfof(h.Context, "req = %+v", req)
// hlog.CtxInfof(h.Context, "resp = %+v", resp)
//}()
// todo edit your code
return
}