main_test.go 574 B

123456789101112131415161718192021222324252627
  1. package main
  2. import (
  3. "testing"
  4. )
  5. func TestGormUser(t *testing.T) {
  6. }
  7. // func TestDbCreateEnterprise(t *testing.T) {
  8. // ctx := context.Background()
  9. // config.Init()
  10. // newEnterprise := http_model.CreateEnterpriseRequest{
  11. // Industry: 2,
  12. // BusinessName: "Test公司",
  13. // RealName: "测试员",
  14. // Phone: "13010101010",
  15. // Email: "test@younggee.com",
  16. // }
  17. // res := service.CreateEnterprise.CreateEnterpriseUser(ctx, newEnterprise)
  18. // if res != nil {
  19. // fmt.Printf("%+v\n", res)
  20. // } else {
  21. // fmt.Printf("error\n")
  22. // }
  23. // }