提交 8faf1140 编写于 作者: programor_guo's avatar programor_guo

nil return modify

上级 bd5480b2
......@@ -100,7 +100,7 @@ func SelectAllUserID() ([]string, error) {
return nil, err
}
var resultArr []string
err = dbConn.Table("user").Select("user_id").Scan(&resultArr).Error
err = dbConn.Table("user").Select("user_id").Pluck("user_id", &resultArr).Error
if err != nil {
return nil, err
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册