Files
EdgeAPI/internal/db/models/message_recipient_dao_test.go
2021-04-12 19:19:15 +08:00

18 lines
403 B
Go

package models
import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestMessageRecipientDAO_FindAllEnabledAndOnRecipientIdsWithGroup(t *testing.T) {
dbs.NotifyReady()
recipientIds, err := SharedMessageRecipientDAO.FindAllEnabledAndOnRecipientIdsWithGroup(nil, 4)
if err != nil {
t.Fatal(err)
}
t.Log(recipientIds)
}