fix
wangpengfei
2023-09-01 06db0a18315c6ca0a2016293ed108d2332cd4a83
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 -}}