mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 23:20:26 +08:00
集群节点列表可以使用“未分组”筛选
This commit is contained in:
5
go.mod
5
go.mod
@@ -4,15 +4,18 @@ go 1.16
|
|||||||
|
|
||||||
replace github.com/TeaOSLab/EdgeCommon => ../EdgeCommon
|
replace github.com/TeaOSLab/EdgeCommon => ../EdgeCommon
|
||||||
|
|
||||||
|
replace github.com/TeaOSLab/EdgePlus => ../EdgePlus
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/TeaOSLab/EdgeCommon v0.0.0-00010101000000-000000000000
|
github.com/TeaOSLab/EdgeCommon v0.0.0-00010101000000-000000000000
|
||||||
|
github.com/TeaOSLab/EdgePlus v0.0.0-00010101000000-000000000000
|
||||||
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1183
|
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1183
|
||||||
github.com/andybalholm/brotli v1.0.4
|
github.com/andybalholm/brotli v1.0.4
|
||||||
github.com/cespare/xxhash/v2 v2.1.1
|
github.com/cespare/xxhash/v2 v2.1.1
|
||||||
github.com/go-acme/lego/v4 v4.5.2
|
github.com/go-acme/lego/v4 v4.5.2
|
||||||
github.com/go-sql-driver/mysql v1.5.0
|
github.com/go-sql-driver/mysql v1.5.0
|
||||||
github.com/golang/protobuf v1.5.2
|
github.com/golang/protobuf v1.5.2
|
||||||
github.com/iwind/TeaGo v0.0.0-20220408064305-92be81dc2f7c
|
github.com/iwind/TeaGo v0.0.0-20220408111647-f36b9bba3570
|
||||||
github.com/iwind/gosock v0.0.0-20210722083328-12b2d66abec3
|
github.com/iwind/gosock v0.0.0-20210722083328-12b2d66abec3
|
||||||
github.com/json-iterator/go v1.1.12 // indirect
|
github.com/json-iterator/go v1.1.12 // indirect
|
||||||
github.com/mozillazg/go-pinyin v0.18.0
|
github.com/mozillazg/go-pinyin v0.18.0
|
||||||
|
|||||||
@@ -360,6 +360,8 @@ func (this *NodeDAO) ListEnabledNodesMatch(tx *dbs.Tx,
|
|||||||
// 分组
|
// 分组
|
||||||
if groupId > 0 {
|
if groupId > 0 {
|
||||||
query.Attr("groupId", groupId)
|
query.Attr("groupId", groupId)
|
||||||
|
} else if groupId < 0 {
|
||||||
|
query.Attr("groupId", 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 区域
|
// 区域
|
||||||
@@ -757,6 +759,8 @@ func (this *NodeDAO) CountAllEnabledNodesMatch(tx *dbs.Tx,
|
|||||||
// 分组
|
// 分组
|
||||||
if groupId > 0 {
|
if groupId > 0 {
|
||||||
query.Attr("groupId", groupId)
|
query.Attr("groupId", groupId)
|
||||||
|
} else if groupId < 0 {
|
||||||
|
query.Attr("groupId", 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 区域
|
// 区域
|
||||||
|
|||||||
Reference in New Issue
Block a user