BUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "guest_test.go",
  11. "item_test.go",
  12. "seat_test.go",
  13. "service_test.go",
  14. "venue_test.go",
  15. "version_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/service/openplatform/ticket-item/api/grpc/v1:go_default_library",
  22. "//app/service/openplatform/ticket-item/conf:go_default_library",
  23. "//app/service/openplatform/ticket-item/model:go_default_library",
  24. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "area.go",
  31. "bulletin.go",
  32. "guest.go",
  33. "item.go",
  34. "place.go",
  35. "seat.go",
  36. "service.go",
  37. "venue.go",
  38. "version.go",
  39. ],
  40. importpath = "go-common/app/service/openplatform/ticket-item/service",
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. deps = [
  44. "//app/service/openplatform/ticket-item/api/grpc/v1:go_default_library",
  45. "//app/service/openplatform/ticket-item/conf:go_default_library",
  46. "//app/service/openplatform/ticket-item/dao:go_default_library",
  47. "//app/service/openplatform/ticket-item/model:go_default_library",
  48. "//library/ecode:go_default_library",
  49. "//library/log:go_default_library",
  50. "//library/time:go_default_library",
  51. "//vendor/github.com/jinzhu/gorm:go_default_library",
  52. "//vendor/gopkg.in/go-playground/validator.v9:go_default_library",
  53. ],
  54. )
  55. filegroup(
  56. name = "package-srcs",
  57. srcs = glob(["**"]),
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:private"],
  60. )
  61. filegroup(
  62. name = "all-srcs",
  63. srcs = [":package-srcs"],
  64. tags = ["automanaged"],
  65. visibility = ["//visibility:public"],
  66. )