BUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 = ["dao.go"],
  10. importpath = "go-common/app/interface/live/web-ucenter/dao/user",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//app/interface/live/web-ucenter/conf:go_default_library",
  15. "//app/interface/live/web-ucenter/dao:go_default_library",
  16. "//app/service/live/rankdb/api/liverpc/v1:go_default_library",
  17. "//app/service/live/rc/api/liverpc/v1:go_default_library",
  18. "//app/service/live/xuser/api/grpc/v1:go_default_library",
  19. "//app/service/main/account/model:go_default_library",
  20. "//app/service/main/account/rpc/client:go_default_library",
  21. "//library/ecode:go_default_library",
  22. "//library/log:go_default_library",
  23. "//library/net/http/blademaster:go_default_library",
  24. "//vendor/github.com/pkg/errors:go_default_library",
  25. ],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [":package-srcs"],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )
  39. go_test(
  40. name = "go_default_test",
  41. srcs = ["dao_test.go"],
  42. embed = [":go_default_library"],
  43. tags = ["automanaged"],
  44. deps = [
  45. "//app/interface/live/web-ucenter/conf:go_default_library",
  46. "//app/interface/live/web-ucenter/dao:go_default_library",
  47. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  48. ],
  49. )