Skip to content

Commit

Permalink
remove sonic
Browse files Browse the repository at this point in the history
  • Loading branch information
wubin48435 committed Jan 2, 2025
1 parent e8c832b commit 0ea7a89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/internal/svc/codegen/http2grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/iancoleman/strcase"
"github.com/sirupsen/logrus"
"github.com/unionj-cloud/go-doudou/v2/cmd/internal/templates"
"github.com/unionj-cloud/go-doudou/v2/version"
"github.com/unionj-cloud/toolkit/astutils"
"github.com/unionj-cloud/toolkit/copier"
"github.com/unionj-cloud/go-doudou/v2/version"
)

var appendHttp2GrpcTmpl = `
Expand Down Expand Up @@ -114,8 +114,6 @@ var initHttp2GrpcTmpl = templates.EditableHeaderTmpl + `package httpsrv
import ()
var json = sonic.ConfigDefault
type {{.Meta.Name}}Http2Grpc struct{
{{.Meta.Name | toLowerCamel}} pb.{{.Meta.Name}}ServiceServer
}
Expand All @@ -131,7 +129,6 @@ func New{{.Meta.Name}}Http2Grpc({{.Meta.Name | toLowerCamel}} pb.{{.Meta.Name}}S

var importHttp2GrpcTmpl = `
"context"
"github.com/bytedance/sonic"
"github.com/unionj-cloud/go-doudou/v2/framework/rest"
"net/http"
pb "{{.TransportGrpcPackage}}"
Expand Down

0 comments on commit 0ea7a89

Please sign in to comment.