diff --git a/models/user_test.go b/models/user_test.go index 841c6d6..5d7f295 100644 --- a/models/user_test.go +++ b/models/user_test.go @@ -25,7 +25,8 @@ func TestGetUserByID(t *testing.T) { ID: 1, DeletedAt: nil, }, - Email: "admin@cloudreve.org", + Email: "admin@cloudreve.org", + Options: "{}", }, user) //未找到用户时 diff --git a/routers/controllers/main_test.go b/routers/controllers/main_test.go index 9c6eab1..7095d63 100644 --- a/routers/controllers/main_test.go +++ b/routers/controllers/main_test.go @@ -55,7 +55,7 @@ func TestParamErrorMsg(t *testing.T) { { "UserName", "required", - "用户名不能为空", + "邮箱不能为空", }, { "Password",