From 7094ddf7da16db936387baa69d9ff0587cb3078d Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Sat, 29 Jun 2024 15:04:04 +0800 Subject: [PATCH] unify --- unify/ad_sdk.go | 2 +- unify/ad_sdk_test.go | 23 ----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 unify/ad_sdk_test.go diff --git a/unify/ad_sdk.go b/unify/ad_sdk.go index 92398a0..e541055 100644 --- a/unify/ad_sdk.go +++ b/unify/ad_sdk.go @@ -16,7 +16,7 @@ type Sdk struct { token string } -func NewSdk(address string, token string) *Sdk { +func NewAdApi(address string, token string) *Sdk { if address == "" { address = "http://127.0.0.1:9281" } diff --git a/unify/ad_sdk_test.go b/unify/ad_sdk_test.go deleted file mode 100644 index b68b879..0000000 --- a/unify/ad_sdk_test.go +++ /dev/null @@ -1,23 +0,0 @@ -package unify - -import ( - "fmt" - "testing" -) - -func TestSdk(t1 *testing.T) { - fmt.Println("ok1") - sdk := NewSdk("http://localhost:9281", "10020", "") - res, err := sdk.GetAccountReport("", "", "") - if err != nil { - panic(err) - } - fmt.Println("ok2") - fmt.Println(len(res)) - fmt.Printf("%+v", res) - for i, r := range res { - fmt.Println(i, r.Name) - } - - fmt.Println("ok3") -}