BUILD 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. "service_test.go",
  11. "weeklyhonor_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/interface/main/creative/model/weeklyhonor:go_default_library",
  18. "//app/job/main/creative/conf:go_default_library",
  19. "//app/service/main/up/api/v1:go_default_library",
  20. "//library/time:go_default_library",
  21. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  22. ],
  23. )
  24. go_library(
  25. name = "go_default_library",
  26. srcs = [
  27. "academy.go",
  28. "databus.go",
  29. "service.go",
  30. "task.go",
  31. "weeklyhonor.go",
  32. ],
  33. importpath = "go-common/app/job/main/creative/service",
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. deps = [
  37. "//app/interface/main/creative/model/weeklyhonor:go_default_library",
  38. "//app/interface/openplatform/article/model:go_default_library",
  39. "//app/job/main/creative/conf:go_default_library",
  40. "//app/job/main/creative/dao/academy:go_default_library",
  41. "//app/job/main/creative/dao/archive:go_default_library",
  42. "//app/job/main/creative/dao/monitor:go_default_library",
  43. "//app/job/main/creative/dao/newcomer:go_default_library",
  44. "//app/job/main/creative/dao/weeklyhonor:go_default_library",
  45. "//app/job/main/creative/model:go_default_library",
  46. "//app/service/main/archive/api:go_default_library",
  47. "//app/service/main/up/api/v1:go_default_library",
  48. "//library/conf/env:go_default_library",
  49. "//library/ecode:go_default_library",
  50. "//library/log:go_default_library",
  51. "//library/queue/databus:go_default_library",
  52. "//library/sync/errgroup:go_default_library",
  53. "//library/xstr:go_default_library",
  54. "//vendor/github.com/robfig/cron:go_default_library",
  55. ],
  56. )
  57. filegroup(
  58. name = "package-srcs",
  59. srcs = glob(["**"]),
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:private"],
  62. )
  63. filegroup(
  64. name = "all-srcs",
  65. srcs = [":package-srcs"],
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:public"],
  68. )