BUILD 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 = ["api_test.go"],
  10. embed = [":go_default_library"],
  11. tags = ["automanaged"],
  12. deps = [
  13. "//app/service/live/xuser/conf:go_default_library",
  14. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  15. ],
  16. )
  17. go_library(
  18. name = "go_default_library",
  19. srcs = ["api.go"],
  20. importpath = "go-common/app/service/live/xuser/dao",
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:public"],
  23. deps = [
  24. "//app/service/live/banned_service/api/liverpc:go_default_library",
  25. "//app/service/live/fans_medal/api/liverpc:go_default_library",
  26. "//app/service/live/room/api/liverpc:go_default_library",
  27. "//app/service/live/xuser/conf:go_default_library",
  28. "//library/net/rpc/liverpc:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [
  40. ":package-srcs",
  41. "//app/service/live/xuser/dao/account:all-srcs",
  42. "//app/service/live/xuser/dao/exp:all-srcs",
  43. "//app/service/live/xuser/dao/guard:all-srcs",
  44. "//app/service/live/xuser/dao/roomAdmin:all-srcs",
  45. "//app/service/live/xuser/dao/vip:all-srcs",
  46. "//app/service/live/xuser/dao/xanchor:all-srcs",
  47. ],
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:public"],
  50. )