api_test.go 443 字节
package pushdata

import (
	"encoding/json"
	"testing"
	"time"
)

func TestToken(t *testing.T) {
	c := NewClient()
	h := c.useHeader()
	t.Logf("%v", h)
}

func TestField(t *testing.T) {
	item := StaffAssessItem{}
	fields := item.AppTableField()
	bt, _ := json.Marshal(fields)
	t.Log(string(bt))
}

func TestPushData(t *testing.T) {
	nowTime := time.Unix(1688572800, 0)
	err := SendDataStaffAssess(nowTime)
	if err != nil {
		t.Error(err)
	}
}