BUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. "invite_test.go",
  12. "manager_test.go",
  13. "medal_mc_test.go",
  14. "medal_test.go",
  15. "msg_test.go",
  16. "pendant_redis_test.go",
  17. "pendant_test.go",
  18. ],
  19. embed = [":go_default_library"],
  20. rundir = ".",
  21. tags = ["automanaged"],
  22. deps = [
  23. "//app/admin/main/usersuit/conf:go_default_library",
  24. "//app/admin/main/usersuit/model:go_default_library",
  25. "//library/time:go_default_library",
  26. "//vendor/github.com/satori/go.uuid:go_default_library",
  27. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  28. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  29. ],
  30. )
  31. go_library(
  32. name = "go_default_library",
  33. srcs = [
  34. "dao.go",
  35. "invite.go",
  36. "manager.go",
  37. "medal.go",
  38. "medal_mc.go",
  39. "msg.go",
  40. "pendant.go",
  41. "pendant_mc.go",
  42. "pendant_redis.go",
  43. "upload.go",
  44. ],
  45. importpath = "go-common/app/admin/main/usersuit/dao",
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. deps = [
  49. "//app/admin/main/usersuit/conf:go_default_library",
  50. "//app/admin/main/usersuit/model:go_default_library",
  51. "//library/cache/memcache:go_default_library",
  52. "//library/cache/redis:go_default_library",
  53. "//library/database/sql:go_default_library",
  54. "//library/ecode:go_default_library",
  55. "//library/log:go_default_library",
  56. "//library/net/http/blademaster:go_default_library",
  57. "//library/sync/errgroup:go_default_library",
  58. "//library/xstr:go_default_library",
  59. "//vendor/github.com/pkg/errors:go_default_library",
  60. ],
  61. )
  62. filegroup(
  63. name = "package-srcs",
  64. srcs = glob(["**"]),
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:private"],
  67. )
  68. filegroup(
  69. name = "all-srcs",
  70. srcs = [":package-srcs"],
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:public"],
  73. )