优化节点列表

This commit is contained in:
GoEdgeLab
2022-04-07 18:31:38 +08:00
parent 63d070f7e0
commit cc1e806cee
7 changed files with 329 additions and 33 deletions

View File

@@ -97,6 +97,7 @@ func (this *NodeClusterDAO) FindAllEnableClusters(tx *dbs.Tx) (result []*NodeClu
_, err = this.Query(tx).
State(NodeClusterStateEnabled).
Slice(&result).
Desc("isPinned").
Desc("order").
DescPk().
FindAll()