Files
EdgeAPI/internal/db/models/message_recipient_dao_test.go

19 lines
404 B
Go
Raw Normal View History

2021-04-05 20:48:33 +08:00
package models
import (
2024-07-27 14:15:25 +08:00
"testing"
2021-04-05 20:48:33 +08:00
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
2021-04-12 19:19:15 +08:00
"github.com/iwind/TeaGo/dbs"
2021-04-05 20:48:33 +08:00
)
2021-04-12 19:19:15 +08:00
func TestMessageRecipientDAO_FindAllEnabledAndOnRecipientIdsWithGroup(t *testing.T) {
dbs.NotifyReady()
recipientIds, err := SharedMessageRecipientDAO.FindAllEnabledAndOnRecipientIdsWithGroup(nil, 4)
if err != nil {
t.Fatal(err)
}
t.Log(recipientIds)
}