You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
629 B
Go

package notify
import (
"context"
"joybuywork/internal/repository/mtype"
"testing"
_ "joybuywork/test"
)
func TestReward(t *testing.T) {
reward := Reward{
CampaignId: 2519,
RewardId: 287662212797321216,
UserId: 16845,
CampaignHashId: "d2jfj9mrdj7t2056562g",
RewardHashId: "cnv42u6rdj7rl1lurpvg",
KvData: []*mtype.KV{{
Key: "1",
Value: "1",
}},
RewardTitle: "ac",
RewardNum: 1,
SubUserId: "jeff",
ParentSubUserId: "",
}
reward.Send(context.Background(), "https://testapi.branchcn.com/admin/notify", "0c62351ecc2fe2cda37eea4ed58e48edf334a2e6", 1, nil)
}