test
This commit is contained in:
@@ -2,7 +2,6 @@ package dao
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
@@ -29,6 +28,7 @@ func GetAuthBind(db *DaoDB, bindType int, authType, authID string) (authBind *mo
|
||||
}
|
||||
|
||||
func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []string, authID, authID2, typeID string) (authList []*model.AuthBind, err error) {
|
||||
var auth []*model.AuthBind
|
||||
sql := `
|
||||
SELECT *
|
||||
FROM auth_bind t1
|
||||
@@ -62,7 +62,6 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
||||
sqlParams = append(sqlParams, typeID)
|
||||
}
|
||||
sql += " ORDER BY t1.type"
|
||||
err = GetRows(db, &authList, sql, sqlParams...)
|
||||
fmt.Println("tetetet", utils.Format4Output(authList, false))
|
||||
return authList, err
|
||||
err = GetRows(db, &auth, sql, sqlParams...)
|
||||
return auth, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user