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.

device_ack_test.go 350 B

1 month ago
1 month ago
1 month ago
1234567891011121314151617181920
  1. package service
  2. import (
  3. "context"
  4. "egg-im/pkg/db"
  5. "fmt"
  6. "testing"
  7. )
  8. func init() {
  9. db.InitByTest()
  10. }
  11. func Test_deviceAckService_GetMaxByUserId(t *testing.T) {
  12. fmt.Println(DeviceAckService.Update(context.TODO(), 1, 2, 2))
  13. }
  14. func Test_deviceAckService_Update(t *testing.T) {
  15. fmt.Println(DeviceAckService.GetMaxByUserId(context.TODO(), 1))
  16. }