You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
469 B
21 lines
469 B
package service
|
|
|
|
import (
|
|
"context"
|
|
"github.com/TremblingV5/DouTok/kitex_gen/message"
|
|
"github.com/cloudwego/hertz/pkg/common/test/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestMessageActionService(t *testing.T) {
|
|
Init()
|
|
msgService := NewMessageActionService(context.Background())
|
|
req := &message.DouyinMessageActionRequest{
|
|
UserId: 10001000,
|
|
ToUserId: 10002000,
|
|
ActionType: 1,
|
|
Content: "test msg",
|
|
}
|
|
err := msgService.MessageAction(req)
|
|
assert.Nil(t, err)
|
|
}
|
|
|