添加全局utc设置方法
This commit is contained in:
parent
519f5cd197
commit
65812bc2e0
|
@ -6,9 +6,14 @@ import (
|
||||||
"{{$.ProjectName}}/server/logics/{{.LogicPackageName}}"
|
"{{$.ProjectName}}/server/logics/{{.LogicPackageName}}"
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
|
"time"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
time.Local = time.UTC
|
||||||
|
}
|
||||||
|
|
||||||
func MainRegisterServer(s *grpc.Server) {
|
func MainRegisterServer(s *grpc.Server) {
|
||||||
{{range .StructServiceNames}}
|
{{range .StructServiceNames}}
|
||||||
service.Register{{.StructServiceName}}Server(s, &{{.LogicPackageName}}.{{.StructServiceName}}LogicGrpc{}) // {{.LogicPackageName}} 服务注册
|
service.Register{{.StructServiceName}}Server(s, &{{.LogicPackageName}}.{{.StructServiceName}}LogicGrpc{}) // {{.LogicPackageName}} 服务注册
|
||||||
|
|
Loading…
Reference in New Issue
Block a user