mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
fix: additional field type
This commit is contained in:
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…
x
Reference in New Issue
Block a user