BUILD 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. "article_test.go",
  11. "author_test.go",
  12. "category_test.go",
  13. "coin_test.go",
  14. "creation_check_test.go",
  15. "creation_test.go",
  16. "creative_list_test.go",
  17. "draft_test.go",
  18. "favorite_test.go",
  19. "hotspots_test.go",
  20. "like_test.go",
  21. "list_test.go",
  22. "message_test.go",
  23. "notice_test.go",
  24. "rank_test.go",
  25. "recommends_test.go",
  26. "service_test.go",
  27. "stat_test.go",
  28. "tag_test.go",
  29. "upper_test.go",
  30. "users_test.go",
  31. "view_test.go",
  32. "xss_test.go",
  33. ],
  34. embed = [":go_default_library"],
  35. rundir = ".",
  36. tags = ["automanaged"],
  37. deps = [
  38. "//app/interface/openplatform/article/conf:go_default_library",
  39. "//app/interface/openplatform/article/model:go_default_library",
  40. "//app/service/main/coin/api/gorpc:go_default_library",
  41. "//app/service/main/coin/model:go_default_library",
  42. "//app/service/main/thumbup/model:go_default_library",
  43. "//app/service/main/thumbup/rpc/client:go_default_library",
  44. "//library/cache/redis:go_default_library",
  45. "//library/time:go_default_library",
  46. "//vendor/github.com/golang/mock/gomock:go_default_library",
  47. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  48. ],
  49. )
  50. go_library(
  51. name = "go_default_library",
  52. srcs = [
  53. "activity.go",
  54. "anniversary.go",
  55. "apply.go",
  56. "archive.go",
  57. "article.go",
  58. "author.go",
  59. "banner.go",
  60. "cards.go",
  61. "category.go",
  62. "coin.go",
  63. "creation.go",
  64. "creation_check.go",
  65. "creative_list.go",
  66. "draft.go",
  67. "favorite.go",
  68. "history.go",
  69. "hotspots.go",
  70. "infoc.go",
  71. "like.go",
  72. "list.go",
  73. "message.go",
  74. "notice.go",
  75. "old_creative.go",
  76. "rank.go",
  77. "read.go",
  78. "recommends.go",
  79. "search.go",
  80. "sentinel.go",
  81. "service.go",
  82. "setting.go",
  83. "share.go",
  84. "slide.go",
  85. "sort.go",
  86. "stat.go",
  87. "tag.go",
  88. "upper.go",
  89. "users.go",
  90. "view.go",
  91. "xss.go",
  92. ],
  93. importpath = "go-common/app/interface/openplatform/article/service",
  94. tags = ["automanaged"],
  95. deps = [
  96. "//app/interface/main/history/model:go_default_library",
  97. "//app/interface/main/history/rpc/client:go_default_library",
  98. "//app/interface/main/tag/model:go_default_library",
  99. "//app/interface/main/tag/rpc/client:go_default_library",
  100. "//app/interface/openplatform/article/conf:go_default_library",
  101. "//app/interface/openplatform/article/dao:go_default_library",
  102. "//app/interface/openplatform/article/model:go_default_library",
  103. "//app/interface/openplatform/article/model/search:go_default_library",
  104. "//app/service/main/account/model:go_default_library",
  105. "//app/service/main/account/rpc/client:go_default_library",
  106. "//app/service/main/archive/api:go_default_library",
  107. "//app/service/main/archive/api/gorpc:go_default_library",
  108. "//app/service/main/archive/model/archive:go_default_library",
  109. "//app/service/main/coin/api/gorpc:go_default_library",
  110. "//app/service/main/coin/model:go_default_library",
  111. "//app/service/main/favorite/api/gorpc:go_default_library",
  112. "//app/service/main/favorite/model:go_default_library",
  113. "//app/service/main/filter/model/rpc:go_default_library",
  114. "//app/service/main/filter/rpc/client:go_default_library",
  115. "//app/service/main/resource/model:go_default_library",
  116. "//app/service/main/resource/rpc/client:go_default_library",
  117. "//app/service/main/thumbup/model:go_default_library",
  118. "//app/service/main/thumbup/rpc/client:go_default_library",
  119. "//library/cache:go_default_library",
  120. "//library/database/sql:go_default_library",
  121. "//library/ecode:go_default_library",
  122. "//library/log:go_default_library",
  123. "//library/log/anticheat:go_default_library",
  124. "//library/log/infoc:go_default_library",
  125. "//library/net/rpc/warden:go_default_library",
  126. "//library/stat/prom:go_default_library",
  127. "//library/sync/errgroup:go_default_library",
  128. "//library/time:go_default_library",
  129. "//vendor/github.com/grokify/html-strip-tags-go:go_default_library",
  130. "//vendor/github.com/microcosm-cc/bluemonday:go_default_library",
  131. ],
  132. )
  133. filegroup(
  134. name = "package-srcs",
  135. srcs = glob(["**"]),
  136. tags = ["automanaged"],
  137. visibility = ["//visibility:private"],
  138. )
  139. filegroup(
  140. name = "all-srcs",
  141. srcs = [":package-srcs"],
  142. tags = ["automanaged"],
  143. visibility = ["//visibility:public"],
  144. )