sort ascending
This commit is contained in:
@@ -196,17 +196,17 @@ type %s struct {
|
||||
case structName == "Account" && name == "ip":
|
||||
code += "\tIP string `json:\"ip,omitempty\"`\n"
|
||||
continue
|
||||
case structName == "SettingUsg" && strings.HasSuffix(name, "_timeout"):
|
||||
field := strcase.ToCamel(name)
|
||||
field = cleanName(field, fieldReps)
|
||||
code += fmt.Sprintf("\t%s int `json:\"%s,omitempty\"`\n", field, name)
|
||||
continue
|
||||
case structName == "User" && name == "blocked":
|
||||
code += "\tBlocked bool `json:\"blocked,omitempty\"`\n"
|
||||
continue
|
||||
case structName == "User" && name == "last_seen":
|
||||
code += "\tLastSeen int `json:\"last_seen,omitempty\"`\n"
|
||||
continue
|
||||
case structName == "SettingUsg" && strings.HasSuffix(name, "_timeout"):
|
||||
field := strcase.ToCamel(name)
|
||||
field = cleanName(field, fieldReps)
|
||||
code += fmt.Sprintf("\t%s int `json:\"%s,omitempty\"`\n", field, name)
|
||||
continue
|
||||
}
|
||||
|
||||
validation := fields[name]
|
||||
|
||||
Reference in New Issue
Block a user