You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
373 B
Smarty
18 lines
373 B
Smarty
11 months ago
|
package model
|
||
|
|
||
|
{{- if .HasRequest }}
|
||
|
type Request struct {
|
||
|
{{- range .Request }}
|
||
|
{{ .Key }} {{ .Type }} {{- if ne .Desc "" }} // {{ .Desc }} {{ end -}}
|
||
|
{{- end }}
|
||
|
}
|
||
|
{{ end -}}
|
||
|
|
||
|
{{- if .HasResponse }}
|
||
|
type Response struct {
|
||
|
{{- range .Response }}
|
||
|
{{ .Key }} {{ .Type }} {{- if ne .Desc "" }} // {{ .Desc }} {{ end -}}
|
||
|
{{- end }}
|
||
|
}
|
||
|
{{ end -}}
|