figure_test.go 323 B

123456789101112131415161718192021222324
  1. package figure
  2. import (
  3. "context"
  4. "fmt"
  5. "testing"
  6. "time"
  7. "go-common/app/service/main/figure/model"
  8. )
  9. var (
  10. s *Service
  11. )
  12. func init() {
  13. s = New(nil)
  14. time.Sleep(2 * time.Second)
  15. }
  16. func TestUserFigure(t *testing.T) {
  17. res, _ := s.UserFigure(context.TODO(), &model.ArgUserFigure{Mid: 27515628})
  18. fmt.Println(res)
  19. }