BUILD 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "archive.go",
  11. "likes.go",
  12. "service.go",
  13. "subject.go",
  14. ],
  15. importpath = "go-common/app/admin/main/activity/service",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/admin/main/activity/conf:go_default_library",
  20. "//app/admin/main/activity/dao:go_default_library",
  21. "//app/admin/main/activity/model:go_default_library",
  22. "//app/interface/main/tag/model:go_default_library",
  23. "//app/interface/main/tag/rpc/client:go_default_library",
  24. "//app/interface/openplatform/article/model:go_default_library",
  25. "//app/interface/openplatform/article/rpc/client:go_default_library",
  26. "//app/service/main/account/api:go_default_library",
  27. "//app/service/main/archive/api:go_default_library",
  28. "//library/ecode:go_default_library",
  29. "//library/log:go_default_library",
  30. "//library/net/metadata:go_default_library",
  31. "//library/sync/errgroup:go_default_library",
  32. "//library/time:go_default_library",
  33. "//library/xstr:go_default_library",
  34. "//vendor/github.com/jinzhu/gorm:go_default_library",
  35. ],
  36. )
  37. filegroup(
  38. name = "package-srcs",
  39. srcs = glob(["**"]),
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:private"],
  42. )
  43. filegroup(
  44. name = "all-srcs",
  45. srcs = [
  46. ":package-srcs",
  47. "//app/admin/main/activity/service/kfc:all-srcs",
  48. ],
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:public"],
  51. )
  52. go_test(
  53. name = "go_default_test",
  54. srcs = [
  55. "archive_test.go",
  56. "likes_test.go",
  57. "service_test.go",
  58. "subject_test.go",
  59. ],
  60. embed = [":go_default_library"],
  61. rundir = ".",
  62. tags = ["automanaged"],
  63. deps = [
  64. "//app/admin/main/activity/conf:go_default_library",
  65. "//app/admin/main/activity/model:go_default_library",
  66. "//library/time:go_default_library",
  67. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  68. ],
  69. )