fix
wangpengfei
2023-08-30 0acdfc60dbb5ee96045ccd695db1fec9d1e9d127
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 -}}