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.

group_user_repo_test.go 490 B

2 years ago
123456789101112131415161718192021222324
  1. package repo
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestGroupUserDao_ListByUserId(t *testing.T) {
  7. groups, err := GroupUserRepo.ListByUserId(1)
  8. fmt.Printf("%+v\n %+v\n", groups, err)
  9. }
  10. func TestGroupUserDao_ListGroupUser(t *testing.T) {
  11. users, err := GroupUserRepo.ListUser(1)
  12. fmt.Printf("%+v\n %+v\n", users, err)
  13. }
  14. func TestGroupUserDao_Get(t *testing.T) {
  15. fmt.Println(GroupUserRepo.Get(1, 1))
  16. }
  17. func TestGroupUserDao_Delete(t *testing.T) {
  18. fmt.Println(GroupUserRepo.Delete(1, 1))
  19. }