BUILD 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 = [
  10. "appeal_test.go",
  11. "blocked_mc_test.go",
  12. "blocked_redis_test.go",
  13. "blocked_test.go",
  14. "case_mc_test.go",
  15. "case_redis_test.go",
  16. "case_test.go",
  17. "dao_test.go",
  18. "databus_test.go",
  19. "http_test.go",
  20. "jury_test.go",
  21. "manager_test.go",
  22. "mc_test.go",
  23. "memcache_test.go",
  24. "mysql_test.go",
  25. "opinion_test.go",
  26. "redis_test.go",
  27. ],
  28. embed = [":go_default_library"],
  29. rundir = ".",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/interface/main/credit/conf:go_default_library",
  33. "//app/interface/main/credit/model:go_default_library",
  34. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  35. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  36. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  37. ],
  38. )
  39. go_library(
  40. name = "go_default_library",
  41. srcs = [
  42. "appeal.go",
  43. "blocked.go",
  44. "blocked_mc.go",
  45. "blocked_redis.go",
  46. "case.go",
  47. "case_mc.go",
  48. "case_redis.go",
  49. "dao.go",
  50. "databus.go",
  51. "http.go",
  52. "jury.go",
  53. "manager.go",
  54. "memcache.go",
  55. "mysql.go",
  56. "opinion.go",
  57. "redis.go",
  58. ],
  59. importpath = "go-common/app/interface/main/credit/dao",
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:public"],
  62. deps = [
  63. "//app/interface/main/credit/conf:go_default_library",
  64. "//app/interface/main/credit/model:go_default_library",
  65. "//library/cache/memcache:go_default_library",
  66. "//library/cache/redis:go_default_library",
  67. "//library/database/sql:go_default_library",
  68. "//library/ecode:go_default_library",
  69. "//library/log:go_default_library",
  70. "//library/net/http/blademaster:go_default_library",
  71. "//library/net/metadata:go_default_library",
  72. "//library/queue/databus:go_default_library",
  73. "//library/sync/errgroup:go_default_library",
  74. "//library/time:go_default_library",
  75. "//library/xstr:go_default_library",
  76. "//vendor/github.com/pkg/errors:go_default_library",
  77. ],
  78. )
  79. filegroup(
  80. name = "package-srcs",
  81. srcs = glob(["**"]),
  82. tags = ["automanaged"],
  83. visibility = ["//visibility:private"],
  84. )
  85. filegroup(
  86. name = "all-srcs",
  87. srcs = [":package-srcs"],
  88. tags = ["automanaged"],
  89. visibility = ["//visibility:public"],
  90. )