BUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. "fav_test.go",
  11. "service_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/job/main/favorite/conf:go_default_library",
  18. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  19. ],
  20. )
  21. go_library(
  22. name = "go_default_library",
  23. srcs = [
  24. "fav.go",
  25. "service.go",
  26. "stat.go",
  27. ],
  28. importpath = "go-common/app/job/main/favorite/service",
  29. tags = ["automanaged"],
  30. deps = [
  31. "//app/interface/openplatform/article/model:go_default_library",
  32. "//app/interface/openplatform/article/rpc/client:go_default_library",
  33. "//app/job/main/favorite/conf:go_default_library",
  34. "//app/job/main/favorite/dao/fav:go_default_library",
  35. "//app/job/main/favorite/dao/music:go_default_library",
  36. "//app/job/main/favorite/dao/pub:go_default_library",
  37. "//app/job/main/favorite/dao/stat:go_default_library",
  38. "//app/job/main/favorite/model:go_default_library",
  39. "//app/service/main/archive/api:go_default_library",
  40. "//app/service/main/archive/api/gorpc:go_default_library",
  41. "//app/service/main/archive/model/archive:go_default_library",
  42. "//app/service/main/coin/api/gorpc:go_default_library",
  43. "//app/service/main/coin/model:go_default_library",
  44. "//app/service/main/favorite/model:go_default_library",
  45. "//library/ecode:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/queue/databus:go_default_library",
  48. "//library/sync/pipeline/fanout:go_default_library",
  49. "//library/time:go_default_library",
  50. ],
  51. )
  52. filegroup(
  53. name = "package-srcs",
  54. srcs = glob(["**"]),
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:private"],
  57. )
  58. filegroup(
  59. name = "all-srcs",
  60. srcs = [":package-srcs"],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )