hertz101/app/facade/biz/service/register.go
2025-01-20 21:45:01 +08:00

27 lines
680 B
Go

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
}