BUILD 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. "bulletin_test.go",
  11. "dao_test.go",
  12. "guest_test.go",
  13. "item_test.go",
  14. "promotion_test.go",
  15. "screen_test.go",
  16. "seat_test.go",
  17. "stock_test.go",
  18. "tag_test.go",
  19. "ticket_test.go",
  20. "venue_test.go",
  21. "version_test.go",
  22. ],
  23. embed = [":go_default_library"],
  24. rundir = ".",
  25. tags = ["automanaged"],
  26. deps = [
  27. "//app/service/openplatform/ticket-item/api/grpc/v1:go_default_library",
  28. "//app/service/openplatform/ticket-item/conf:go_default_library",
  29. "//app/service/openplatform/ticket-item/model:go_default_library",
  30. "//library/log:go_default_library",
  31. "//vendor/github.com/davecgh/go-spew/spew:go_default_library",
  32. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  33. ],
  34. )
  35. go_library(
  36. name = "go_default_library",
  37. srcs = [
  38. "banner.go",
  39. "bulletin.go",
  40. "dao.cache.go",
  41. "dao.go",
  42. "fav.go",
  43. "guest.go",
  44. "item.go",
  45. "project.go",
  46. "promotion.go",
  47. "screen.go",
  48. "seat.go",
  49. "stock.go",
  50. "tag.go",
  51. "ticket.go",
  52. "venue.go",
  53. "version.go",
  54. "wish.go",
  55. ],
  56. importpath = "go-common/app/service/openplatform/ticket-item/dao",
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:public"],
  59. deps = [
  60. "//app/common/openplatform/random:go_default_library",
  61. "//app/service/openplatform/ticket-item/api/grpc/v1:go_default_library",
  62. "//app/service/openplatform/ticket-item/conf:go_default_library",
  63. "//app/service/openplatform/ticket-item/model:go_default_library",
  64. "//library/cache/redis:go_default_library",
  65. "//library/database/elastic:go_default_library",
  66. "//library/database/orm:go_default_library",
  67. "//library/database/sql:go_default_library",
  68. "//library/ecode:go_default_library",
  69. "//library/log:go_default_library",
  70. "//library/stat/prom:go_default_library",
  71. "//library/sync/pipeline/fanout:go_default_library",
  72. "//library/time:go_default_library",
  73. "//vendor/github.com/jinzhu/gorm:go_default_library",
  74. ],
  75. )
  76. filegroup(
  77. name = "package-srcs",
  78. srcs = glob(["**"]),
  79. tags = ["automanaged"],
  80. visibility = ["//visibility:private"],
  81. )
  82. filegroup(
  83. name = "all-srcs",
  84. srcs = [":package-srcs"],
  85. tags = ["automanaged"],
  86. visibility = ["//visibility:public"],
  87. )