调整设备数限制实现方式

This commit is contained in:
wyx2685
2024-08-30 06:48:41 +09:00
parent 130e94cf45
commit 173c48a76f
6 changed files with 75 additions and 74 deletions

View File

@@ -25,6 +25,8 @@ type Client struct {
userEtag string
responseBodyHash string
LastReportOnline map[int]int
UserList *UserListBody
AliveMap *AliveMap
}
func New(c *conf.ApiConfig) (*Client, error) {
@@ -71,5 +73,7 @@ func New(c *conf.ApiConfig) (*Client, error) {
APIHost: c.APIHost,
NodeType: c.NodeType,
NodeId: c.NodeID,
UserList: &UserListBody{},
AliveMap: &AliveMap{},
}, nil
}