mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 08:10:58 +00:00
FixOrmDescrptionTag
This commit is contained in:
parent
8152ade1b6
commit
0d77a3f8d2
@ -301,7 +301,7 @@ checkType:
|
|||||||
fi.sf = sf
|
fi.sf = sf
|
||||||
fi.fullName = mi.fullName + mName + "." + sf.Name
|
fi.fullName = mi.fullName + mName + "." + sf.Name
|
||||||
|
|
||||||
fi.description = sf.Tag.Get("description")
|
fi.description = tags["description"]
|
||||||
fi.null = attrs["null"]
|
fi.null = attrs["null"]
|
||||||
fi.index = attrs["index"]
|
fi.index = attrs["index"]
|
||||||
fi.auto = attrs["auto"]
|
fi.auto = attrs["auto"]
|
||||||
|
@ -44,6 +44,7 @@ var supportTag = map[string]int{
|
|||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"on_delete": 2,
|
"on_delete": 2,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
|
"description": 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
// get reflect.Type name with package path.
|
// get reflect.Type name with package path.
|
||||||
|
Loading…
Reference in New Issue
Block a user