fix(gen): bt как функция в шаблоне modifier + обновить описание 2.0.12

This commit is contained in:
Repinoid
2026-09-22 21:22:56 +03:00
parent bd46d11155
commit 73357d0e0f
2 changed files with 6 additions and 6 deletions
@@ -37,12 +37,12 @@ type {{ToCamel (printf "%s_%s" .ServiceName .ModifierName)}}Resource struct {
}
type {{ToCamel (printf "%s_%s" .ServiceName .ModifierName)}}Model struct {
ID types.String {{.bt}}tfsdk:"id"{{.bt}}
{{ToCamel .ServiceName}}ID types.String {{.bt}}tfsdk:"{{ToSnake .ServiceName}}_id"{{.bt}}
OperationTimeout types.String {{.bt}}tfsdk:"operation_timeout"{{.bt}}
LogLevel types.String {{.bt}}tfsdk:"log_level"{{.bt}}
ID types.String {{bt}}tfsdk:"id"{{bt}}
{{ToCamel .ServiceName}}ID types.String {{bt}}tfsdk:"{{ToSnake .ServiceName}}_id"{{bt}}
OperationTimeout types.String {{bt}}tfsdk:"operation_timeout"{{bt}}
LogLevel types.String {{bt}}tfsdk:"log_level"{{bt}}
{{- range .SchemaParams }}
{{ToCamel .Code}} {{ParamType .}} {{.bt}}tfsdk:"{{ToSnake .Code}}"{{.bt}}
{{ToCamel .Code}} {{ParamType .}} {{bt}}tfsdk:"{{ToSnake .Code}}"{{bt}}
{{- end }}
}