55 lines
1.1 KiB
Go
55 lines
1.1 KiB
Go
package tbunionapi
|
|
|
|
import (
|
|
"git.rosy.net.cn/baseapi/utils"
|
|
"testing"
|
|
)
|
|
|
|
func TestAdzoneCreate(t *testing.T) {
|
|
err := api.AdzoneCreate(2293250207, "999999")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
//t.Log(utils.Format4Output(result, false))
|
|
}
|
|
|
|
func TestActivityInfoGet(t *testing.T) {
|
|
result, err := api.ActivityInfoGet("999999", "20150318020002597", 999999)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
|
|
func TestAllOrders(t *testing.T) {
|
|
result, err := api.AllOrders("2021-04-23 00:00:00", "2021-04-23 23:59:59")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
|
|
func TestNewUserAllOrders(t *testing.T) {
|
|
result, err := api.NewUserAllOrders("20150318020002597")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
|
|
func TestRebateOrderGet(t *testing.T) {
|
|
result, err := api.RebateOrderGet("2021-04-05 09:10:00")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
|
|
func TestGatewayUnionpub(t *testing.T) {
|
|
result, err := api.GatewayUnionpub()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|