Closed zxfrocky closed 1 month ago
type ( LoginReq { Type int form:"type,optional" json:"type,optional,omitempty" Name string form:"name,optional json:"name,optional,omitempty" Password string form:"password,optional json:"password,optional,omitempty" Timestamp int64 form:"timestamp,optional" json:"timestamp,optional,omitempty" Webrtc bool form:"webrtc,optional" json:"webrtc,optional,omitempty" } )
form:"type,optional" json:"type,optional,omitempty"
form:"name,optional json:"name,optional,omitempty"
form:"password,optional json:"password,optional,omitempty"
form:"timestamp,optional" json:"timestamp,optional,omitempty"
form:"webrtc,optional" json:"webrtc,optional,omitempty"
req 多个tag时, 报 panic: form:"name,optional json:"name,optional,omitempty", bad syntax for struct tag pair 错误
type (
LoginReq { Type int
form:"type,optional" json:"type,optional,omitempty"
Name stringform:"name,optional json:"name,optional,omitempty"
Password stringform:"password,optional json:"password,optional,omitempty"
Timestamp int64form:"timestamp,optional" json:"timestamp,optional,omitempty"
Webrtc boolform:"webrtc,optional" json:"webrtc,optional,omitempty"
} )req 多个tag时, 报 panic:
form:"name,optional json:"name,optional,omitempty"
, bad syntax for struct tag pair 错误