func (h *identityHandlerImpl) IdentityOpsRegister(params identity_ops.IdentityOpsRegisterParams) middleware.Responder {
	pbReq := &pb.RegisterReq{}
	if err := convert.WithJSON(params.Body, pbReq); err != nil {
		return errors.NewInternalServerErrorResponseWithErr(err)
	}

	pbResp, err := h.cli.Register(params.HTTPRequest.Context(), pbReq)
	if err != nil {
		return errors.NewInternalServerErrorResponseWithErr(err)
	}

	httpResp := &models.ModelCommonResp{}
	if err := convert.WithJSON(pbResp, httpResp); err != nil {
		return errors.NewInternalServerErrorResponseWithErr(err)
	}

	return identity_ops.NewIdentityOpsRegisterOK().WithPayload(httpResp)
}
/* IdentityOpsRegister Register by email and password. */
IdentityOpsRegister Register by email and password.
/ * IdentityOpsRegister Register by email and password . * /
func (h *identityHandlerImpl) IdentityOpsRegister(params identity_ops.IdentityOpsRegisterParams) middleware.Responder {
	pbReq := &pb.RegisterReq{}
	if err := convert.WithJSON(params.Body, pbReq); err != nil {
		return errors.NewInternalServerErrorResponseWithErr(err)
	}
	pbResp, err := h.cli.Register(params.HTTPRequest.Context(), pbReq)
	if err != nil {
		return errors.NewInternalServerErrorResponseWithErr(err)
	}
	httpResp := &models.ModelCommonResp{}
	if err := convert.WithJSON(pbResp, httpResp); err != nil {
		return errors.NewInternalServerErrorResponseWithErr(err)
	}
	return identity_ops.NewIdentityOpsRegisterOK().WithPayload(httpResp)
}
func ( h * identityHandlerImpl ) IdentityOpsRegister ( params identity_ops . IdentityOpsRegisterParams ) middleware . Responder { pbReq := & pb . RegisterReq { } if err := convert . WithJSON ( params . Body , pbReq ) ; err != nil { return errors . NewInternalServerErrorResponseWithErr ( err ) } pbResp , err := h . cli . Register ( params . HTTPRequest . Context ( ) , pbReq ) if err != nil { return errors . NewInternalServerErrorResponseWithErr ( err ) } httpResp := & models . ModelCommonResp { } if err := convert . WithJSON ( pbResp , httpResp ) ; err != nil { return errors . NewInternalServerErrorResponseWithErr ( err ) } return identity_ops . NewIdentityOpsRegisterOK ( ) . WithPayload ( httpResp ) }
IdentityOpsRegister Register by email and password.
IdentityOpsRegister Register by email and password .