实现发送消息到媒介

This commit is contained in:
GoEdgeLab
2021-04-12 19:19:15 +08:00
parent b0990961b8
commit 0eec199ff6
24 changed files with 548 additions and 71 deletions

View File

@@ -3,4 +3,15 @@ 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)
}