|
|
@@ -26,7 +26,7 @@ func (p PermissionGroupDb) FindPermissionGroup() (*[]model.PermissionGroup, erro |
|
|
|
|
|
|
|
func (p PermissionGroupDb) FindPermissionGroupV2() (*[]model.PermissionGroup, error) { |
|
|
|
var m []model.PermissionGroup |
|
|
|
if err := p.Db.OrderBy("sort desc,id asc").Find(&m); err != nil { |
|
|
|
if err := p.Db.OrderBy("id asc").Find(&m); err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|
return &m, nil |
|
|
|