fix
wangpengfei
2023-08-26 2cffaad12f0ed5ff562f49cf7cdf202a8f328c8d
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 -}}