golang-im聊天
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.
 
 
 
 

21 regels
347 B

  1. package service
  2. import (
  3. "context"
  4. "fmt"
  5. "gim/pkg/db"
  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. }