BUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. )
  5. load(
  6. "@io_bazel_rules_go//proto:def.bzl",
  7. "go_proto_library",
  8. )
  9. package(default_visibility = ["//visibility:public"])
  10. go_library(
  11. name = "go_default_library",
  12. srcs = [
  13. "cache.go",
  14. "distrib.go",
  15. "model.go",
  16. "order.go",
  17. "pay.go",
  18. "promo.go",
  19. "stock.go",
  20. "ticket.go",
  21. ],
  22. importpath = "go-common/app/service/openplatform/ticket-sales/model",
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:public"],
  25. deps = [
  26. "//app/common/openplatform/encoding:go_default_library",
  27. "//app/service/openplatform/ticket-sales/api/grpc/type:go_default_library",
  28. "//app/service/openplatform/ticket-sales/api/grpc/v1:go_default_library",
  29. "//library/log:go_default_library",
  30. "//library/time:go_default_library",
  31. "@com_github_gogo_protobuf//types:go_default_library",
  32. ],
  33. )
  34. filegroup(
  35. name = "package-srcs",
  36. srcs = glob(["**"]),
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:private"],
  39. )
  40. filegroup(
  41. name = "all-srcs",
  42. srcs = [
  43. ":package-srcs",
  44. "//app/service/openplatform/ticket-sales/model/consts:all-srcs",
  45. "//app/service/openplatform/ticket-sales/model/order_checker/account:all-srcs",
  46. "//app/service/openplatform/ticket-sales/model/order_checker/item:all-srcs",
  47. ],
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:public"],
  50. )