12345678910111213141516171819202122 |
- package main
- import (
- "context"
- "fmt"
- "testing"
- "youngee_b_api/config"
- "youngee_b_api/db"
- )
- func TestGormUser(t *testing.T) {
- ctx := context.Background()
- config.Init()
- res, err := db.GetUserByPhone(ctx, "123")
- if err != nil {
- panic(err)
- } else {
- fmt.Printf("%+v", res)
- }
- }
- //
|