package service import ( "context" "egg-im/pkg/db" "fmt" "testing" ) func init() { db.InitByTest() } func Test_deviceAckService_GetMaxByUserId(t *testing.T) { fmt.Println(DeviceAckService.Update(context.TODO(), 1, 2, 2)) } func Test_deviceAckService_Update(t *testing.T) { fmt.Println(DeviceAckService.GetMaxByUserId(context.TODO(), 1)) }