remove logic
This commit is contained in:
parent
e27a7af285
commit
60d5ab3232
@ -59,4 +59,4 @@ func (ss *SensorItemService) Remove(s *SensorItem) (string, error) {
|
||||
}
|
||||
|
||||
return out, nil
|
||||
}
|
||||
}
|
||||
|
@ -67,4 +67,4 @@ func (t *TargetService) Remove(target *Target) (string, error) {
|
||||
}
|
||||
|
||||
return out, nil
|
||||
}
|
||||
}
|
||||
|
@ -50,11 +50,10 @@ func TestTargetRead(t *testing.T) {
|
||||
t.Log(res)
|
||||
}
|
||||
|
||||
|
||||
func TestTargetDelete(t *testing.T) {
|
||||
ts := NewTargetService()
|
||||
target := &Target{
|
||||
Id:"1",
|
||||
Id: "1",
|
||||
}
|
||||
res, err := ts.Remove(target)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user