BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [":package-srcs"],
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. )
  19. go_test(
  20. name = "go_default_test",
  21. srcs = [
  22. "api_test.go",
  23. "dao_test.go",
  24. "oauth2_api_test.go",
  25. "oauth2_client_test.go",
  26. "vip_test.go",
  27. ],
  28. embed = [":go_default_library"],
  29. rundir = ".",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/interface/main/account/conf:go_default_library",
  33. "//app/interface/main/account/model:go_default_library",
  34. "//app/service/main/vip/model:go_default_library",
  35. "//library/ecode:go_default_library",
  36. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  37. ],
  38. )
  39. go_library(
  40. name = "go_default_library",
  41. srcs = [
  42. "api.go",
  43. "dao.go",
  44. "oauth2_api.go",
  45. "oauth2_client.go",
  46. ],
  47. importpath = "go-common/app/interface/main/account/dao/vip",
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:public"],
  50. deps = [
  51. "//app/interface/main/account/conf:go_default_library",
  52. "//app/interface/main/account/model:go_default_library",
  53. "//app/service/main/vip/model:go_default_library",
  54. "//library/conf/env:go_default_library",
  55. "//library/ecode:go_default_library",
  56. "//library/log:go_default_library",
  57. "//library/net/http/blademaster:go_default_library",
  58. "//library/net/metadata:go_default_library",
  59. "//vendor/github.com/pkg/errors:go_default_library",
  60. ],
  61. )