BUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "achievement.go",
  11. "bws.go",
  12. "check.go",
  13. "lottery.go",
  14. "point.go",
  15. ],
  16. importpath = "go-common/app/interface/main/activity/service/bws",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/interface/main/activity/conf:go_default_library",
  21. "//app/interface/main/activity/dao/bws:go_default_library",
  22. "//app/interface/main/activity/model/bws:go_default_library",
  23. "//app/service/main/account/api:go_default_library",
  24. "//app/service/main/usersuit/model:go_default_library",
  25. "//app/service/main/usersuit/rpc/client:go_default_library",
  26. "//library/ecode:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/sync/errgroup:go_default_library",
  29. "//library/sync/pipeline/fanout:go_default_library",
  30. "//library/time:go_default_library",
  31. ],
  32. )
  33. filegroup(
  34. name = "package-srcs",
  35. srcs = glob(["**"]),
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:private"],
  38. )
  39. filegroup(
  40. name = "all-srcs",
  41. srcs = [":package-srcs"],
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. )
  45. go_test(
  46. name = "go_default_test",
  47. srcs = ["bws_test.go"],
  48. embed = [":go_default_library"],
  49. rundir = ".",
  50. tags = ["automanaged"],
  51. deps = [
  52. "//app/interface/main/activity/conf:go_default_library",
  53. "//app/interface/main/activity/model/bws:go_default_library",
  54. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  55. ],
  56. )