BUILD 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 = ["service_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/admin/main/member/conf:go_default_library",
  15. "//app/admin/main/member/model/block:go_default_library",
  16. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  17. ],
  18. )
  19. go_library(
  20. name = "go_default_library",
  21. srcs = [
  22. "audit_log.go",
  23. "block.go",
  24. "msg.go",
  25. "notify.go",
  26. "rpc.go",
  27. "service.go",
  28. ],
  29. importpath = "go-common/app/admin/main/member/service/block",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/admin/main/member/conf:go_default_library",
  33. "//app/admin/main/member/dao/block:go_default_library",
  34. "//app/admin/main/member/model/block:go_default_library",
  35. "//app/service/main/account/api:go_default_library",
  36. "//app/service/main/figure/model:go_default_library",
  37. "//app/service/main/figure/rpc/client:go_default_library",
  38. "//app/service/main/spy/model:go_default_library",
  39. "//app/service/main/spy/rpc/client:go_default_library",
  40. "//library/database/sql:go_default_library",
  41. "//library/log:go_default_library",
  42. "//library/net/metadata:go_default_library",
  43. "//library/queue/databus:go_default_library",
  44. "//library/queue/databus/report:go_default_library",
  45. "//library/sync/errgroup:go_default_library",
  46. "//library/sync/pipeline/fanout:go_default_library",
  47. "//vendor/github.com/pkg/errors:go_default_library",
  48. ],
  49. )
  50. filegroup(
  51. name = "package-srcs",
  52. srcs = glob(["**"]),
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:private"],
  55. )
  56. filegroup(
  57. name = "all-srcs",
  58. srcs = [":package-srcs"],
  59. tags = ["automanaged"],
  60. visibility = ["//visibility:public"],
  61. )