Functions and Usage

Group API Functions and Usage

Functions

Parameters

Return

CreateGrp

{ name : "STRING", data : "OBJECT"}

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

UpdateGrp

{ gid : "STRING", name : "STRING", data: "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

RemoveGrp

{ condition : "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

AppendGrp

{ condition : "OBJECT", data: "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING"}

GetChildGrp

{ condition : "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

FindGrp

{ condition : "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

FindTreeGrp

{ condition : "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

GrpAddObj

{ data : "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

GrpRemoveObj

{ data : "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

GrpObjList

{ data : "OBJECT" }

{ RstCode : "STRING", RstMsg:"STRING", Data: "OBJRCT"}

The sample of input

{
name : "test",
ddn : "xxxxxx",
uid : "xxxxxx",
properties : {
isActive : true,
...
...
..
}
}

The structure of group json result

{
name : "test",
ddn : "xxxxxx",
uid : "xxxxxx",
insertDate : "2019-01-05 10:30:00",
updateDate : "2019-02-03 00:23:18",
properties : {
isActive : true,
...
...
..
},
objects : [
"507f191e810c19729de860ea",
"5cdf352fac83fb136cb30424",
"5cdf3531ac83fb136cb30426"
]
}

The sample of condition

{
name : "test"
}
{
gid : "507f191e810c19729de860ea"
}