添加全局utc设置方法

This commit is contained in:
huangsimin@fusen.cn 2024-01-17 17:26:13 +08:00
parent 519f5cd197
commit 65812bc2e0

View File

@ -6,9 +6,14 @@ import (
"{{$.ProjectName}}/server/logics/{{.LogicPackageName}}"
{{- end}}
"time"
"google.golang.org/grpc"
)
func init() {
time.Local = time.UTC
}
func MainRegisterServer(s *grpc.Server) {
{{range .StructServiceNames}}
service.Register{{.StructServiceName}}Server(s, &{{.LogicPackageName}}.{{.StructServiceName}}LogicGrpc{}) // {{.LogicPackageName}} 服务注册