BUILD 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. "dao.cache.go",
  11. "dao.go",
  12. "forbid_user.go",
  13. "location.go",
  14. "monkey.go",
  15. "user.go",
  16. "user_base.go",
  17. "user_black.go",
  18. "user_card.go",
  19. "user_fan.go",
  20. "user_follow.go",
  21. "user_like.go",
  22. "user_stat.go",
  23. ],
  24. importpath = "go-common/app/service/bbq/user/internal/dao",
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:public"],
  27. deps = [
  28. "//app/service/bbq/notice-service/api/v1:go_default_library",
  29. "//app/service/bbq/user/api:go_default_library",
  30. "//app/service/bbq/user/internal/conf:go_default_library",
  31. "//app/service/bbq/user/internal/model:go_default_library",
  32. "//app/service/main/account/api:go_default_library",
  33. "//app/service/main/filter/api/grpc/v1:go_default_library",
  34. "//library/cache/redis:go_default_library",
  35. "//library/database/sql:go_default_library",
  36. "//library/ecode:go_default_library",
  37. "//library/log:go_default_library",
  38. "//library/net/metadata:go_default_library",
  39. "//library/net/rpc/warden:go_default_library",
  40. "//library/stat/prom:go_default_library",
  41. "//library/sync/errgroup:go_default_library",
  42. "//library/sync/pipeline/fanout:go_default_library",
  43. "//library/time:go_default_library",
  44. "//library/xstr:go_default_library",
  45. "//vendor/github.com/bouk/monkey:go_default_library",
  46. ],
  47. )
  48. filegroup(
  49. name = "package-srcs",
  50. srcs = glob(["**"]),
  51. tags = ["automanaged"],
  52. visibility = ["//visibility:private"],
  53. )
  54. filegroup(
  55. name = "all-srcs",
  56. srcs = [":package-srcs"],
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:public"],
  59. )
  60. go_test(
  61. name = "go_default_test",
  62. srcs = [
  63. "dao.cache_test.go",
  64. "dao_test.go",
  65. "user_base_test.go",
  66. "user_black_test.go",
  67. "user_card_test.go",
  68. "user_fan_test.go",
  69. "user_follow_test.go",
  70. "user_like_test.go",
  71. "user_stat_test.go",
  72. ],
  73. embed = [":go_default_library"],
  74. tags = ["automanaged"],
  75. deps = [
  76. "//app/service/bbq/user/api:go_default_library",
  77. "//app/service/bbq/user/internal/conf:go_default_library",
  78. "//app/service/bbq/user/internal/model:go_default_library",
  79. "//library/conf/paladin:go_default_library",
  80. "//library/log:go_default_library",
  81. "//library/time:go_default_library",
  82. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  83. ],
  84. )