mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
optimize: template spaces to tabs (#1352)
* optimize: template spaces to tabs
This commit is contained in:
parent
807edfce82
commit
9c6f2713e7
@ -16,11 +16,11 @@ option java_multiple_files = true;
|
||||
option java_package = "{{.JavaPackage}}";
|
||||
|
||||
service {{.Service}} {
|
||||
rpc Create{{.Service}} (Create{{.Service}}Request) returns (Create{{.Service}}Reply);
|
||||
rpc Update{{.Service}} (Update{{.Service}}Request) returns (Update{{.Service}}Reply);
|
||||
rpc Delete{{.Service}} (Delete{{.Service}}Request) returns (Delete{{.Service}}Reply);
|
||||
rpc Get{{.Service}} (Get{{.Service}}Request) returns (Get{{.Service}}Reply);
|
||||
rpc List{{.Service}} (List{{.Service}}Request) returns (List{{.Service}}Reply);
|
||||
rpc Create{{.Service}} (Create{{.Service}}Request) returns (Create{{.Service}}Reply);
|
||||
rpc Update{{.Service}} (Update{{.Service}}Request) returns (Update{{.Service}}Reply);
|
||||
rpc Delete{{.Service}} (Delete{{.Service}}Request) returns (Delete{{.Service}}Reply);
|
||||
rpc Get{{.Service}} (Get{{.Service}}Request) returns (Get{{.Service}}Reply);
|
||||
rpc List{{.Service}} (List{{.Service}}Request) returns (List{{.Service}}Reply);
|
||||
}
|
||||
|
||||
message Create{{.Service}}Request {}
|
||||
|
@ -11,16 +11,16 @@ package service
|
||||
|
||||
import (
|
||||
{{- if .UseContext }}
|
||||
"context"
|
||||
"context"
|
||||
{{- end }}
|
||||
{{- if .UseIO }}
|
||||
"io"
|
||||
{{- end }}
|
||||
|
||||
pb "{{ .Package }}"
|
||||
{{- if .GoogleEmpty }}
|
||||
"google.golang.org/protobuf/types/known/emptypb"
|
||||
{{- end }}
|
||||
pb "{{ .Package }}"
|
||||
{{- if .GoogleEmpty }}
|
||||
"google.golang.org/protobuf/types/known/emptypb"
|
||||
{{- end }}
|
||||
)
|
||||
|
||||
type {{ .Service }}Service struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user