diff --git a/module/category/Category.go b/module/category/Category.go index 5d26945..3d43075 100644 --- a/module/category/Category.go +++ b/module/category/Category.go @@ -17,5 +17,10 @@ type Category struct { } func (c *Category) AfterQuery(session basedboperat.DbTransactionSession) { + var children []Category + var list basedboperat.List + list.Limit = -1 + session.ListScan(&list, c, &children) + c.Children = children }