first commit
This commit is contained in:
25
pkg/partner/mq/rocket_test.go
Normal file
25
pkg/partner/mq/rocket_test.go
Normal file
@ -0,0 +1,25 @@
|
||||
package mq
|
||||
|
||||
import (
|
||||
"servicebase/pkg/common"
|
||||
"servicebase/pkg/partner/mq/message"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/anxpp/beego"
|
||||
)
|
||||
|
||||
func TestRocket(t *testing.T) {
|
||||
e := client.PushRegisterMessage(message.RegisterMessage{
|
||||
Message: message.Message{
|
||||
MessageId: "001",
|
||||
},
|
||||
Platform: "android",
|
||||
UserId: "001",
|
||||
DeviceId: "001",
|
||||
RegisterTime: beego.Date(time.Now(), common.TimeDefaultFormat),
|
||||
ChannelCode: "001",
|
||||
Ip: "0.0.0.0",
|
||||
})
|
||||
println(e)
|
||||
}
|
||||
Reference in New Issue
Block a user