BUILD 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. "archive_test.go",
  11. "public_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. tags = ["automanaged"],
  15. deps = [
  16. "//app/interface/main/creative/conf:go_default_library",
  17. "//library/cache/redis:go_default_library",
  18. "//vendor/github.com/davecgh/go-spew/spew: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 = ["public.go"],
  25. importpath = "go-common/app/interface/main/creative/service",
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:public"],
  28. deps = [
  29. "//app/interface/main/creative/conf:go_default_library",
  30. "//app/interface/main/creative/dao/account:go_default_library",
  31. "//app/interface/main/creative/dao/activity:go_default_library",
  32. "//app/interface/main/creative/dao/archive:go_default_library",
  33. "//app/interface/main/creative/dao/article:go_default_library",
  34. "//app/interface/main/creative/dao/creative:go_default_library",
  35. "//app/interface/main/creative/dao/pay:go_default_library",
  36. "//app/interface/main/creative/dao/subtitle:go_default_library",
  37. "//app/interface/main/creative/dao/tag:go_default_library",
  38. "//app/interface/main/creative/dao/up:go_default_library",
  39. "//app/interface/main/creative/model/activity:go_default_library",
  40. "//app/interface/main/creative/model/archive:go_default_library",
  41. "//app/interface/main/creative/model/music:go_default_library",
  42. "//app/interface/main/creative/model/newcomer:go_default_library",
  43. "//app/interface/main/creative/model/tag:go_default_library",
  44. "//app/service/main/account/model:go_default_library",
  45. "//app/service/main/archive/model/archive:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/queue/databus:go_default_library",
  48. "//library/sync/errgroup:go_default_library",
  49. "//library/time:go_default_library",
  50. "//library/xstr:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [
  62. ":package-srcs",
  63. "//app/interface/main/creative/service/academy:all-srcs",
  64. "//app/interface/main/creative/service/account:all-srcs",
  65. "//app/interface/main/creative/service/ad:all-srcs",
  66. "//app/interface/main/creative/service/app:all-srcs",
  67. "//app/interface/main/creative/service/appeal:all-srcs",
  68. "//app/interface/main/creative/service/archive:all-srcs",
  69. "//app/interface/main/creative/service/article:all-srcs",
  70. "//app/interface/main/creative/service/assist:all-srcs",
  71. "//app/interface/main/creative/service/danmu:all-srcs",
  72. "//app/interface/main/creative/service/data:all-srcs",
  73. "//app/interface/main/creative/service/dynamic:all-srcs",
  74. "//app/interface/main/creative/service/elec:all-srcs",
  75. "//app/interface/main/creative/service/faq:all-srcs",
  76. "//app/interface/main/creative/service/feedback:all-srcs",
  77. "//app/interface/main/creative/service/geetest:all-srcs",
  78. "//app/interface/main/creative/service/growup:all-srcs",
  79. "//app/interface/main/creative/service/medal:all-srcs",
  80. "//app/interface/main/creative/service/music:all-srcs",
  81. "//app/interface/main/creative/service/newcomer:all-srcs",
  82. "//app/interface/main/creative/service/operation:all-srcs",
  83. "//app/interface/main/creative/service/pay:all-srcs",
  84. "//app/interface/main/creative/service/reply:all-srcs",
  85. "//app/interface/main/creative/service/resource:all-srcs",
  86. "//app/interface/main/creative/service/staff:all-srcs",
  87. "//app/interface/main/creative/service/template:all-srcs",
  88. "//app/interface/main/creative/service/up:all-srcs",
  89. "//app/interface/main/creative/service/version:all-srcs",
  90. "//app/interface/main/creative/service/watermark:all-srcs",
  91. "//app/interface/main/creative/service/weeklyhonor:all-srcs",
  92. "//app/interface/main/creative/service/whitelist:all-srcs",
  93. ],
  94. tags = ["automanaged"],
  95. visibility = ["//visibility:public"],
  96. )