BUILD 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. "associate_test.go",
  11. "autorenew_test.go",
  12. "coupon_test.go",
  13. "frozen_test.go",
  14. "order_test.go",
  15. "salary_test.go",
  16. "service_test.go",
  17. "sync_test.go",
  18. "vip_test.go",
  19. ],
  20. embed = [":go_default_library"],
  21. rundir = ".",
  22. tags = ["automanaged"],
  23. deps = [
  24. "//app/job/main/vip/conf:go_default_library",
  25. "//app/job/main/vip/model:go_default_library",
  26. "//library/log:go_default_library",
  27. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  28. ],
  29. )
  30. go_library(
  31. name = "go_default_library",
  32. srcs = [
  33. "associate.go",
  34. "autorenew.go",
  35. "bcoin.go",
  36. "check_data.go",
  37. "coupon.go",
  38. "frozen.go",
  39. "message.go",
  40. "order.go",
  41. "push.go",
  42. "salary.go",
  43. "salary_data.go",
  44. "service.go",
  45. "sync.go",
  46. "vip.go",
  47. ],
  48. importpath = "go-common/app/job/main/vip/service",
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:public"],
  51. deps = [
  52. "//app/job/main/vip/conf:go_default_library",
  53. "//app/job/main/vip/dao:go_default_library",
  54. "//app/job/main/vip/model:go_default_library",
  55. "//app/service/main/coupon/model:go_default_library",
  56. "//app/service/main/coupon/rpc/client:go_default_library",
  57. "//app/service/main/vip/api:go_default_library",
  58. "//app/service/main/vip/model:go_default_library",
  59. "//library/database/sql:go_default_library",
  60. "//library/log:go_default_library",
  61. "//library/queue/databus:go_default_library",
  62. "//library/sync/errgroup:go_default_library",
  63. "//library/time:go_default_library",
  64. "//vendor/github.com/pkg/errors:go_default_library",
  65. "//vendor/github.com/robfig/cron:go_default_library",
  66. ],
  67. )
  68. filegroup(
  69. name = "package-srcs",
  70. srcs = glob(["**"]),
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:private"],
  73. )
  74. filegroup(
  75. name = "all-srcs",
  76. srcs = [":package-srcs"],
  77. tags = ["automanaged"],
  78. visibility = ["//visibility:public"],
  79. )