12345678910111213141516171819 |
- package model
- import (
- "encoding/json"
- "metawant.greentech.com.cn/gaoyagang/gt-common/identify"
- "testing"
- )
- func TestEvent_SetT(t *testing.T) {
- _ = `{"C.M.UF1_DB@word_control":{"NvIn":["26"]},"C.M.UF1_DB@time_production":{"NvIn":["360...660"]}}`
- jso1 := `{"NvIn":["26"]}`
- x := identify.Rule{}
- err := json.Unmarshal([]byte(jso1), &x)
- t.Log(err)
- t.Logf("%+v", x)
- }
|