golang-im聊天
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

group_user_repo_test.go 490 B

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. }