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