diff --git a/authorization/rbac/models/module.go b/authorization/rbac/models/module.go index 87702bd..b4a0ebb 100644 --- a/authorization/rbac/models/module.go +++ b/authorization/rbac/models/module.go @@ -45,6 +45,9 @@ func NewPermissionModule(mapObject *object.Collection) *PermissionModule { newPermissionModule := &PermissionModule{ PowerCompactModel: database.NewPowerCompactModel(), Name: mapObject.GetString("name", ""), + URI: mapObject.GetString("uri", ""), + Component: mapObject.GetString("component", ""), + Icon: mapObject.GetString("icon", ""), Description: mapObject.GetString("description", ""), ParentID: mapObject.GetStringPointer("parentID", ""), } diff --git a/database/model.go b/database/model.go index 4b0a8d6..5a8d3f6 100644 --- a/database/model.go +++ b/database/model.go @@ -241,6 +241,7 @@ func GetAllList(db *gorm.DB, conditions *map[string]interface{}, // chunk datas result := db. //Debug(). + Order("id ASC"). Find(items) err = result.Error if err != nil {