- 注释掉老user与auth相关的代码
This commit is contained in:
@@ -1,41 +1,33 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"testing"
|
||||
// func TestCreateWeiXins(t *testing.T) {
|
||||
// err := CreateWeiXins(GetDB(), &legacymodel.WeiXins{
|
||||
// Tel: "12345",
|
||||
// })
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// }
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/model/legacymodel"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
// func TestGetWeiXinUserByIDs(t *testing.T) {
|
||||
// user, err := GetWeiXinUserByIDs(GetDB(), "", "unionid", "", "")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// globals.SugarLogger.Debug(utils.Format4Output(user, false))
|
||||
// }
|
||||
|
||||
func TestCreateWeiXins(t *testing.T) {
|
||||
err := CreateWeiXins(GetDB(), &legacymodel.WeiXins{
|
||||
Tel: "12345",
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
// func TestUpdateWeiXinUser(t *testing.T) {
|
||||
// err := UpdateWeiXinUser(GetDB(), "12345", "nickname", "unionid", "openid", "miniid")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// }
|
||||
|
||||
func TestGetWeiXinUserByIDs(t *testing.T) {
|
||||
user, err := GetWeiXinUserByIDs(GetDB(), "", "unionid", "", "")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
globals.SugarLogger.Debug(utils.Format4Output(user, false))
|
||||
}
|
||||
|
||||
func TestUpdateWeiXinUser(t *testing.T) {
|
||||
err := UpdateWeiXinUser(GetDB(), "12345", "nickname", "unionid", "openid", "miniid")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetUserStoreInfo(t *testing.T) {
|
||||
user, err := GetUserStoreInfo(GetDB(), "tel", "18180948107")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
globals.SugarLogger.Debug(utils.Format4Output(user, false))
|
||||
}
|
||||
// func TestGetUserStoreInfo(t *testing.T) {
|
||||
// user, err := GetUserStoreInfo(GetDB(), "tel", "18180948107")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// globals.SugarLogger.Debug(utils.Format4Output(user, false))
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user