Fix: test error / missing AfterFind hook in user model

This commit is contained in:
HFO4
2019-11-27 15:27:19 +08:00
parent 16067c3ac8
commit b3ef833afd
5 changed files with 30 additions and 10 deletions

View File

@ -47,6 +47,9 @@ func TestGetUserByID(t *testing.T) {
Model: gorm.Model{
ID: 1,
},
OptionsSerialized: PolicyOption{
FileType: []string{},
},
Name: "默认上传策略",
},
}, user)