|
|
@@ -1,4 +1,4 @@ |
|
|
|
package implement |
|
|
|
package implement |
|
|
|
|
|
|
|
import ( |
|
|
|
"code.fnuoos.com/zhimeng/model.git/enum" |
|
|
@@ -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.Asc("id").Find(&m); err != nil { |
|
|
|
if err := p.Db.OrderBy("sort desc,id asc").Find(&m); err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|
return &m, nil |
|
|
|