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.
20 lines
449 B
20 lines
449 B
package service
|
|
|
|
import (
|
|
"context"
|
|
"github.com/TremblingV5/DouTok/kitex_gen/relation"
|
|
"github.com/cloudwego/hertz/pkg/common/test/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestRelationActionService(t *testing.T) {
|
|
Init()
|
|
relService := NewRelationActionService(context.Background())
|
|
req := &relation.DouyinRelationActionRequest{
|
|
UserId: 10001000,
|
|
ToUserId: 10002000,
|
|
ActionType: 1,
|
|
}
|
|
err := relService.RelationAction(req)
|
|
assert.Nil(t, err)
|
|
}
|
|
|