feat: use go:embed to embed templates (#1756)
This commit is contained in:
22
tools/goctl/api/javagen/component.tpl
Normal file
22
tools/goctl/api/javagen/component.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
package com.xhb.logic.http.packet.{{.packet}}.model;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
{{.imports}}
|
||||
|
||||
public class {{.className}} extends {{.superClassName}} {
|
||||
|
||||
{{.properties}}
|
||||
{{if .HasProperty}}
|
||||
|
||||
public {{.className}}() {
|
||||
}
|
||||
|
||||
public {{.className}}({{.params}}) {
|
||||
{{.constructorSetter}}
|
||||
}
|
||||
{{end}}
|
||||
|
||||
{{.getSet}}
|
||||
}
|
||||
Reference in New Issue
Block a user