BUILD 2.0 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. "income_test.go",
  11. "notice_test.go",
  12. "service_test.go",
  13. "withdraw_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. rundir = ".",
  17. tags = ["automanaged"],
  18. deps = [
  19. "//app/interface/main/growup/conf:go_default_library",
  20. "//app/interface/main/growup/model:go_default_library",
  21. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  22. ],
  23. )
  24. go_library(
  25. name = "go_default_library",
  26. srcs = [
  27. "activity.go",
  28. "archive_stat.go",
  29. "banner.go",
  30. "bgm.go",
  31. "column.go",
  32. "exchange.go",
  33. "income.go",
  34. "notice.go",
  35. "service.go",
  36. "snow_flake.go",
  37. "special_award.go",
  38. "up_bill.go",
  39. "up_status.go",
  40. "up_year.go",
  41. "withdraw.go",
  42. ],
  43. importpath = "go-common/app/interface/main/growup/service",
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. deps = [
  47. "//app/interface/main/growup/conf:go_default_library",
  48. "//app/interface/main/growup/dao:go_default_library",
  49. "//app/interface/main/growup/model:go_default_library",
  50. "//library/database/sql:go_default_library",
  51. "//library/ecode:go_default_library",
  52. "//library/log:go_default_library",
  53. "//library/net/metadata:go_default_library",
  54. "//library/time:go_default_library",
  55. "//library/xstr:go_default_library",
  56. "//vendor/golang.org/x/sync/errgroup:go_default_library",
  57. ],
  58. )
  59. filegroup(
  60. name = "package-srcs",
  61. srcs = glob(["**"]),
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:private"],
  64. )
  65. filegroup(
  66. name = "all-srcs",
  67. srcs = [
  68. ":package-srcs",
  69. "//app/interface/main/growup/service/newbie:all-srcs",
  70. ],
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:public"],
  73. )