struce slice with string slice
This commit is contained in:
parent
ccbddbb914
commit
16458a2b4b
|
@ -204,6 +204,14 @@ func (b *Builder) parseRequestParams() error {
|
|||
if fieldValue != nil {
|
||||
requestParams[tagKey] = *fieldValue
|
||||
}
|
||||
case []*string:
|
||||
dst := make([]string, len(fieldValue))
|
||||
for i := 0; i < len(fieldValue); i++ {
|
||||
if fieldValue[i] != nil {
|
||||
dst[i] = *(fieldValue[i])
|
||||
}
|
||||
}
|
||||
requestParams[tagKey] = strings.Join(dst, ",")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue