Add new LemmyTime type and remove omitempty from json tag

This commit is contained in:
2023-01-05 13:42:24 -08:00
parent 187da56546
commit 1765ca2db5
32 changed files with 1262 additions and 1276 deletions

View File

@@ -218,7 +218,7 @@ func TransformTypeGo(t string) string {
case "i8":
t = "int8"
case "chrono::NaiveDateTime":
return "time.Time"
return "LemmyTime"
case "Value":
return "any"
}