mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-04-01 18:35:18 +08:00
实现基础的通知媒介管理
This commit is contained in:
@@ -244,6 +244,9 @@ func (this *UserNodeDAO) GenUniqueId(tx *dbs.Tx) (string, error) {
|
||||
|
||||
// 更改节点状态
|
||||
func (this *UserNodeDAO) UpdateNodeStatus(tx *dbs.Tx, nodeId int64, statusJSON []byte) error {
|
||||
if len(statusJSON) == 0 {
|
||||
return nil
|
||||
}
|
||||
_, err := this.Query(tx).
|
||||
Pk(nodeId).
|
||||
Set("status", string(statusJSON)).
|
||||
|
||||
Reference in New Issue
Block a user