BUILD 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. "associate_outer_test.go",
  11. "coupon_test.go",
  12. "manager_test.go",
  13. "panel_test.go",
  14. "vip_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/interface/main/account/conf:go_default_library",
  21. "//app/interface/main/account/model:go_default_library",
  22. "//app/service/main/vip/model:go_default_library",
  23. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  24. ],
  25. )
  26. go_library(
  27. name = "go_default_library",
  28. srcs = [
  29. "associate.go",
  30. "associate_limit.go",
  31. "associate_outer.go",
  32. "coupon.go",
  33. "manager.go",
  34. "panel.go",
  35. "privilege.go",
  36. "resource.go",
  37. "tips.go",
  38. "vip.go",
  39. "welfare.go",
  40. ],
  41. importpath = "go-common/app/interface/main/account/service/vip",
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. deps = [
  45. "//app/interface/main/account/conf:go_default_library",
  46. "//app/interface/main/account/dao/vip:go_default_library",
  47. "//app/interface/main/account/model:go_default_library",
  48. "//app/service/main/coupon/model:go_default_library",
  49. "//app/service/main/relation/model:go_default_library",
  50. "//app/service/main/relation/rpc/client:go_default_library",
  51. "//app/service/main/resource/model:go_default_library",
  52. "//app/service/main/resource/rpc/client:go_default_library",
  53. "//app/service/main/vip/api:go_default_library",
  54. "//app/service/main/vip/model:go_default_library",
  55. "//app/service/main/vip/rpc/client:go_default_library",
  56. "//library/ecode:go_default_library",
  57. "//library/log:go_default_library",
  58. "//library/net/metadata:go_default_library",
  59. "//library/sync/errgroup:go_default_library",
  60. "//vendor/github.com/pkg/errors:go_default_library",
  61. ],
  62. )
  63. filegroup(
  64. name = "package-srcs",
  65. srcs = glob(["**"]),
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:private"],
  68. )
  69. filegroup(
  70. name = "all-srcs",
  71. srcs = [":package-srcs"],
  72. tags = ["automanaged"],
  73. visibility = ["//visibility:public"],
  74. )