BUILD 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. "match_test.go",
  11. "service_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/job/main/activity/conf:go_default_library",
  18. "//app/job/main/activity/model/like:go_default_library",
  19. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  20. ],
  21. )
  22. go_library(
  23. name = "go_default_library",
  24. srcs = [
  25. "action.go",
  26. "archive.go",
  27. "bnj.go",
  28. "kfc.go",
  29. "like.go",
  30. "match.go",
  31. "service.go",
  32. "subject.go",
  33. ],
  34. importpath = "go-common/app/job/main/activity/service",
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. deps = [
  38. "//app/admin/main/activity/model:go_default_library",
  39. "//app/interface/main/activity/model/like:go_default_library",
  40. "//app/interface/main/activity/rpc/client:go_default_library",
  41. "//app/interface/openplatform/article/model:go_default_library",
  42. "//app/interface/openplatform/article/rpc/client:go_default_library",
  43. "//app/job/main/activity/conf:go_default_library",
  44. "//app/job/main/activity/dao/bnj:go_default_library",
  45. "//app/job/main/activity/dao/dm:go_default_library",
  46. "//app/job/main/activity/dao/kfc:go_default_library",
  47. "//app/job/main/activity/dao/like:go_default_library",
  48. "//app/job/main/activity/model/bnj:go_default_library",
  49. "//app/job/main/activity/model/kfc:go_default_library",
  50. "//app/job/main/activity/model/like:go_default_library",
  51. "//app/job/main/activity/model/match:go_default_library",
  52. "//app/service/main/account/api:go_default_library",
  53. "//app/service/main/archive/api:go_default_library",
  54. "//app/service/main/archive/api/gorpc:go_default_library",
  55. "//app/service/main/archive/model/archive:go_default_library",
  56. "//app/service/main/coin/api/gorpc:go_default_library",
  57. "//app/service/main/coin/model:go_default_library",
  58. "//library/ecode:go_default_library",
  59. "//library/log:go_default_library",
  60. "//library/queue/databus:go_default_library",
  61. "//vendor/github.com/robfig/cron:go_default_library",
  62. ],
  63. )
  64. filegroup(
  65. name = "package-srcs",
  66. srcs = glob(["**"]),
  67. tags = ["automanaged"],
  68. visibility = ["//visibility:private"],
  69. )
  70. filegroup(
  71. name = "all-srcs",
  72. srcs = [":package-srcs"],
  73. tags = ["automanaged"],
  74. visibility = ["//visibility:public"],
  75. )