BUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 = ["res_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/interface/main/web-show/conf:go_default_library",
  15. "//app/interface/main/web-show/model/resource:go_default_library",
  16. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  17. ],
  18. )
  19. go_library(
  20. name = "go_default_library",
  21. srcs = [
  22. "ad.go",
  23. "refresh.go",
  24. "res.go",
  25. "service.go",
  26. ],
  27. importpath = "go-common/app/interface/main/web-show/service/resource",
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. deps = [
  31. "//app/interface/main/web-show/conf:go_default_library",
  32. "//app/interface/main/web-show/dao/ad:go_default_library",
  33. "//app/interface/main/web-show/dao/bangumi:go_default_library",
  34. "//app/interface/main/web-show/dao/data:go_default_library",
  35. "//app/interface/main/web-show/dao/resource:go_default_library",
  36. "//app/interface/main/web-show/model/resource:go_default_library",
  37. "//app/service/main/account/model:go_default_library",
  38. "//app/service/main/account/rpc/client:go_default_library",
  39. "//app/service/main/archive/api:go_default_library",
  40. "//app/service/main/archive/api/gorpc:go_default_library",
  41. "//app/service/main/archive/model/archive:go_default_library",
  42. "//app/service/main/location/model:go_default_library",
  43. "//app/service/main/location/rpc/client:go_default_library",
  44. "//app/service/main/resource/rpc/client:go_default_library",
  45. "//library/log:go_default_library",
  46. "//library/net/metadata:go_default_library",
  47. ],
  48. )
  49. filegroup(
  50. name = "package-srcs",
  51. srcs = glob(["**"]),
  52. tags = ["automanaged"],
  53. visibility = ["//visibility:private"],
  54. )
  55. filegroup(
  56. name = "all-srcs",
  57. srcs = [":package-srcs"],
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:public"],
  60. )