解码器合并到数据集中

This commit is contained in:
huanghua_2017
2019-02-01 15:05:17 +08:00
parent c7eaa17582
commit e13e6cbca5
2 changed files with 16 additions and 28 deletions

View File

@@ -24,9 +24,9 @@ func TestDBModule(t *testing.T) {
Addtime int64 `json:"addtime"`
Tname string `json:"tname"`
Uuid string `json:"uuid,omitempty"`
AAAA string `json:"-"`
AAAA string `json:"xxx"`
}{}
err := sysmodule.NewSQLDecoder(res).SetSpecificTag("json").SetStrictMode(true).UnMarshal(&out)
err := res.SetSpecificTag("json").SetBlurMode(false).UnMarshal(&out)
if err != nil {
t.Error(err)
}