mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 20:20:34 +07:00
fix: date
This commit is contained in:
@@ -94,6 +94,7 @@ func parseModelDecl(fileset *token.FileSet, decl *ast.TypeSpec) Model {
|
||||
metadata.Label = uiTag.GetParamOr("label", "")
|
||||
metadata.IsSlice = utils.IsSlice(fieldDecl.Type)
|
||||
metadata.IsPrimitiveType = utils.IsPrimitiveType(fieldDecl.Type)
|
||||
metadata.Readonly = uiTag.HasOption("readonly")
|
||||
metadata.Datatype = uiTag.GetParamOr("datatype", "")
|
||||
if uiTag.HasParam("field") {
|
||||
metadata.RelatedFields = strings.Split(uiTag.GetParam("field").Value, ".")
|
||||
|
||||
Reference in New Issue
Block a user