BUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.go",
  11. "db_project.go",
  12. "db_sync.go",
  13. "db_task.go",
  14. "db_wechat.go",
  15. "http.go",
  16. "mc.go",
  17. "redis.go",
  18. ],
  19. importpath = "go-common/app/admin/ep/saga/dao",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//app/admin/ep/saga/conf:go_default_library",
  24. "//app/admin/ep/saga/model:go_default_library",
  25. "//library/cache/memcache:go_default_library",
  26. "//library/cache/redis:go_default_library",
  27. "//library/database/orm:go_default_library",
  28. "//library/ecode:go_default_library",
  29. "//library/log:go_default_library",
  30. "//library/net/http/blademaster:go_default_library",
  31. "//vendor/github.com/jinzhu/gorm:go_default_library",
  32. "//vendor/github.com/pkg/errors:go_default_library",
  33. ],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [":package-srcs"],
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )
  47. go_test(
  48. name = "go_default_test",
  49. srcs = [
  50. "dao_test.go",
  51. "db_project_test.go",
  52. "db_sync_test.go",
  53. "db_wechat_test.go",
  54. "mc_test.go",
  55. "redis_test.go",
  56. ],
  57. embed = [":go_default_library"],
  58. tags = ["automanaged"],
  59. deps = [
  60. "//app/admin/ep/saga/conf:go_default_library",
  61. "//app/admin/ep/saga/model:go_default_library",
  62. "//app/admin/ep/saga/service/utils:go_default_library",
  63. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  64. ],
  65. )