mirror of https://github.com/Xhofe/alist
fix: additional field type
parent
65fba7936c
commit
cd21f14106
|
@ -82,7 +82,7 @@ func getAdditionalItems(t reflect.Type) []Item {
|
|||
}
|
||||
item := Item{
|
||||
Name: tag.Get("json"),
|
||||
Type: strings.ToLower(field.Name),
|
||||
Type: strings.ToLower(field.Type.Name()),
|
||||
Default: tag.Get("default"),
|
||||
Values: tag.Get("values"),
|
||||
Required: tag.Get("required") == "true",
|
||||
|
|
Loading…
Reference in New Issue