BUILD 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. "account.go",
  11. "change_history.go",
  12. "contract.go",
  13. "dao.cache.go",
  14. "dao.go",
  15. "lock.go",
  16. "main_vip.go",
  17. "mc.cache.go",
  18. "mc.cache.key.go",
  19. "pay_order.go",
  20. "price_config.go",
  21. "user_info.go",
  22. "yst.go",
  23. ],
  24. importpath = "go-common/app/service/main/tv/internal/dao",
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:public"],
  27. deps = [
  28. "//app/service/main/account/api:go_default_library",
  29. "//app/service/main/tv/internal/conf:go_default_library",
  30. "//app/service/main/tv/internal/model:go_default_library",
  31. "//app/service/main/tv/internal/pkg:go_default_library",
  32. "//app/service/main/vipinfo/api:go_default_library",
  33. "//library/cache/memcache:go_default_library",
  34. "//library/database/sql:go_default_library",
  35. "//library/ecode:go_default_library",
  36. "//library/log:go_default_library",
  37. "//library/net/http/blademaster:go_default_library",
  38. "//library/stat/prom:go_default_library",
  39. "//library/sync/pipeline/fanout:go_default_library",
  40. "//library/time:go_default_library",
  41. "//vendor/github.com/pkg/errors:go_default_library",
  42. ],
  43. )
  44. filegroup(
  45. name = "package-srcs",
  46. srcs = glob(["**"]),
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:private"],
  49. )
  50. filegroup(
  51. name = "all-srcs",
  52. srcs = [":package-srcs"],
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:public"],
  55. )
  56. go_test(
  57. name = "go_default_test",
  58. srcs = [
  59. "account_test.go",
  60. "change_history_test.go",
  61. "contract_test.go",
  62. "dao.cache_test.go",
  63. "dao_test.go",
  64. "lock_test.go",
  65. "main_vip_test.go",
  66. "mc.cache.key_test.go",
  67. "mc.cache_test.go",
  68. "pay_order_test.go",
  69. "price_config_test.go",
  70. "user_info_test.go",
  71. "yst_test.go",
  72. ],
  73. embed = [":go_default_library"],
  74. tags = ["automanaged"],
  75. deps = [
  76. "//app/service/main/tv/internal/conf:go_default_library",
  77. "//app/service/main/tv/internal/model:go_default_library",
  78. "//library/ecode:go_default_library",
  79. "//library/net/http/blademaster:go_default_library",
  80. "//library/time:go_default_library",
  81. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  82. ],
  83. )