BUILD 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_test",
  4. "go_library",
  5. )
  6. go_test(
  7. name = "go_default_test",
  8. srcs = [
  9. "account_test.go",
  10. "dao_test.go",
  11. "distrib_test.go",
  12. "item_test.go",
  13. "order_detail_test.go",
  14. "order_log_test.go",
  15. "order_test.go",
  16. "promotion_group_test.go",
  17. "promotion_order_test.go",
  18. "promotion_test.go",
  19. "stock_test.go",
  20. "ticket_test.go",
  21. ],
  22. embed = [":go_default_library"],
  23. rundir = ".",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/service/openplatform/ticket-sales/api/grpc/type:go_default_library",
  27. "//app/service/openplatform/ticket-sales/api/grpc/v1:go_default_library",
  28. "//app/service/openplatform/ticket-sales/conf:go_default_library",
  29. "//app/service/openplatform/ticket-sales/model:go_default_library",
  30. "//app/service/openplatform/ticket-sales/model/consts:go_default_library",
  31. "//library/conf/paladin: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. "account.go",
  39. "dao.cache.go",
  40. "dao.go",
  41. "distrib.go",
  42. "item.go",
  43. "order.go",
  44. "order_detail.go",
  45. "order_log.go",
  46. "promotion.go",
  47. "promotion_group.go",
  48. "promotion_order.go",
  49. "redis.go",
  50. "stock.go",
  51. "ticket.go",
  52. ],
  53. importpath = "go-common/app/service/openplatform/ticket-sales/dao",
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:public"],
  56. deps = [
  57. "//app/common/openplatform/encoding:go_default_library",
  58. "//app/service/main/account/api:go_default_library",
  59. "//app/service/openplatform/ticket-item/api/grpc/v1:go_default_library",
  60. "//app/service/openplatform/ticket-sales/api/grpc/type:go_default_library",
  61. "//app/service/openplatform/ticket-sales/api/grpc/v1:go_default_library",
  62. "//app/service/openplatform/ticket-sales/conf:go_default_library",
  63. "//app/service/openplatform/ticket-sales/model:go_default_library",
  64. "//app/service/openplatform/ticket-sales/model/consts:go_default_library",
  65. "//library/cache:go_default_library",
  66. "//library/cache/redis:go_default_library",
  67. "//library/database/sql:go_default_library",
  68. "//library/ecode:go_default_library",
  69. "//library/log:go_default_library",
  70. "//library/naming/discovery:go_default_library",
  71. "//library/net/http/blademaster:go_default_library",
  72. "//library/net/metadata:go_default_library",
  73. "//library/net/rpc/warden:go_default_library",
  74. "//library/net/rpc/warden/resolver:go_default_library",
  75. "//library/queue/databus:go_default_library",
  76. "//library/stat/prom:go_default_library",
  77. "//library/time:go_default_library",
  78. "//library/xstr:go_default_library",
  79. "//vendor/github.com/pkg/errors:go_default_library",
  80. "@com_github_gogo_protobuf//types:go_default_library",
  81. ],
  82. )
  83. filegroup(
  84. name = "package-srcs",
  85. srcs = glob(["**"]),
  86. tags = ["automanaged"],
  87. visibility = ["//visibility:private"],
  88. )
  89. filegroup(
  90. name = "all-srcs",
  91. srcs = [":package-srcs"],
  92. tags = ["automanaged"],
  93. visibility = ["//visibility:public"],
  94. )