BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. "dao_test.go",
  11. "local_equip_test.go",
  12. "memcache_test.go",
  13. "mysql_test.go",
  14. "pay_test.go",
  15. "redis_test.go",
  16. "vip_test.go",
  17. ],
  18. embed = [":go_default_library"],
  19. rundir = ".",
  20. tags = ["automanaged"],
  21. deps = [
  22. "//app/service/main/usersuit/conf:go_default_library",
  23. "//app/service/main/usersuit/model:go_default_library",
  24. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  25. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  26. ],
  27. )
  28. go_library(
  29. name = "go_default_library",
  30. srcs = [
  31. "dao.go",
  32. "local_equip.go",
  33. "memcache.go",
  34. "mysql.go",
  35. "pay.go",
  36. "redis.go",
  37. "vip.go",
  38. ],
  39. importpath = "go-common/app/service/main/usersuit/dao/pendant",
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. deps = [
  43. "//app/service/main/usersuit/conf:go_default_library",
  44. "//app/service/main/usersuit/model:go_default_library",
  45. "//library/cache/memcache:go_default_library",
  46. "//library/cache/redis:go_default_library",
  47. "//library/database/sql:go_default_library",
  48. "//library/ecode:go_default_library",
  49. "//library/log:go_default_library",
  50. "//library/net/http/blademaster:go_default_library",
  51. "//library/stat/prom:go_default_library",
  52. "//library/xstr:go_default_library",
  53. "//vendor/github.com/bluele/gcache:go_default_library",
  54. "//vendor/github.com/pkg/errors:go_default_library",
  55. ],
  56. )
  57. filegroup(
  58. name = "package-srcs",
  59. srcs = glob(["**"]),
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:private"],
  62. )
  63. filegroup(
  64. name = "all-srcs",
  65. srcs = [":package-srcs"],
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:public"],
  68. )