send_test.go 480 B

12345678910111213141516171819202122232425262728293031
  1. package service
  2. import (
  3. "flag"
  4. "testing"
  5. "kpt.notice/apiserver/config"
  6. "kpt.notice/pkg/log"
  7. )
  8. func TestXxx(t *testing.T) {
  9. flag.Parse()
  10. config.Init("")
  11. log.Init(config.Conf.Log)
  12. svc := New(config.Conf)
  13. re, err := svc.QueryMsg()
  14. log.Info(re)
  15. t.Log(err)
  16. }
  17. func TestSysUser(t *testing.T) {
  18. flag.Parse()
  19. config.Init("")
  20. log.Init(config.Conf.Log)
  21. svc := New(config.Conf)
  22. re, err := svc.GetSysUser([]string{"123", "123111"}, "crm", 0)
  23. log.Info(re)
  24. t.Log(err)
  25. }