BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "distrib.go",
  10. "http.go",
  11. "promotion.go",
  12. "promotion_group.go",
  13. "promotion_order.go",
  14. "settle.go",
  15. ],
  16. importpath = "go-common/app/service/openplatform/ticket-sales/server/http",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/service/openplatform/ticket-sales/api/grpc/v1:go_default_library",
  21. "//app/service/openplatform/ticket-sales/conf:go_default_library",
  22. "//app/service/openplatform/ticket-sales/model:go_default_library",
  23. "//app/service/openplatform/ticket-sales/service:go_default_library",
  24. "//library/ecode:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/net/http/blademaster:go_default_library",
  27. "//library/net/http/blademaster/binding:go_default_library",
  28. "//library/net/http/blademaster/render:go_default_library",
  29. "//vendor/github.com/pkg/errors:go_default_library",
  30. ],
  31. )
  32. go_test(
  33. name = "go_default_test",
  34. srcs = ["http_test.go"],
  35. embed = [":go_default_library"],
  36. rundir = ".",
  37. tags = ["automanaged"],
  38. deps = [
  39. "//app/service/openplatform/ticket-sales/conf:go_default_library",
  40. "//app/service/openplatform/ticket-sales/service:go_default_library",
  41. "//library/conf/paladin:go_default_library",
  42. "//library/net/http/blademaster:go_default_library",
  43. ],
  44. )
  45. filegroup(
  46. name = "package-srcs",
  47. srcs = glob(["**"]),
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:private"],
  50. )
  51. filegroup(
  52. name = "all-srcs",
  53. srcs = [":package-srcs"],
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:public"],
  56. )