BUILD 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. "memcache_test.go",
  12. "up_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/interface/main/creative/conf:go_default_library",
  18. "//app/interface/main/creative/model/account:go_default_library",
  19. "//app/service/main/account/api:go_default_library",
  20. "//app/service/main/relation/model:go_default_library",
  21. "//app/service/main/relation/rpc/client:go_default_library",
  22. "//library/cache/memcache:go_default_library",
  23. "//library/ecode:go_default_library",
  24. "//vendor/github.com/bouk/monkey:go_default_library",
  25. "//vendor/github.com/golang/mock/gomock:go_default_library",
  26. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  27. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  28. ],
  29. )
  30. go_library(
  31. name = "go_default_library",
  32. srcs = [
  33. "dao.go",
  34. "memcache.go",
  35. "up.go",
  36. ],
  37. importpath = "go-common/app/interface/main/creative/dao/account",
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. deps = [
  41. "//app/interface/main/creative/conf:go_default_library",
  42. "//app/interface/main/creative/model/account:go_default_library",
  43. "//app/interface/main/creative/model/appeal:go_default_library",
  44. "//app/service/main/account/api:go_default_library",
  45. "//app/service/main/relation/model:go_default_library",
  46. "//app/service/main/relation/rpc/client:go_default_library",
  47. "//library/cache/memcache: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/sync/errgroup:go_default_library",
  52. ],
  53. )
  54. filegroup(
  55. name = "package-srcs",
  56. srcs = glob(["**"]),
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:private"],
  59. )
  60. filegroup(
  61. name = "all-srcs",
  62. srcs = [":package-srcs"],
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:public"],
  65. )