BUILD 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. "archive_income_test.go",
  11. "av_breach_test.go",
  12. "blacklist_test.go",
  13. "service_test.go",
  14. "up_account_test.go",
  15. "up_category_info_test.go",
  16. "up_income_test.go",
  17. "up_info_video_test.go",
  18. "withdraw_test.go",
  19. ],
  20. embed = [":go_default_library"],
  21. rundir = ".",
  22. tags = ["automanaged"],
  23. deps = [
  24. "//app/admin/main/growup/conf:go_default_library",
  25. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  26. ],
  27. )
  28. go_library(
  29. name = "go_default_library",
  30. srcs = [
  31. "archive_income.go",
  32. "av_breach.go",
  33. "blacklist.go",
  34. "charge.go",
  35. "const.go",
  36. "format.go",
  37. "lottery.go",
  38. "service.go",
  39. "up_account.go",
  40. "up_category_info.go",
  41. "up_income.go",
  42. "up_info_video.go",
  43. "withdraw.go",
  44. ],
  45. importpath = "go-common/app/admin/main/growup/service/income",
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. deps = [
  49. "//app/admin/main/growup/conf:go_default_library",
  50. "//app/admin/main/growup/dao:go_default_library",
  51. "//app/admin/main/growup/dao/income:go_default_library",
  52. "//app/admin/main/growup/dao/message:go_default_library",
  53. "//app/admin/main/growup/dao/resource:go_default_library",
  54. "//app/admin/main/growup/model:go_default_library",
  55. "//app/admin/main/growup/model/income:go_default_library",
  56. "//app/admin/main/growup/service:go_default_library",
  57. "//library/database/sql:go_default_library",
  58. "//library/log:go_default_library",
  59. "//library/time:go_default_library",
  60. "//library/xstr:go_default_library",
  61. "//vendor/golang.org/x/sync/errgroup:go_default_library",
  62. ],
  63. )
  64. filegroup(
  65. name = "package-srcs",
  66. srcs = glob(["**"]),
  67. tags = ["automanaged"],
  68. visibility = ["//visibility:private"],
  69. )
  70. filegroup(
  71. name = "all-srcs",
  72. srcs = [":package-srcs"],
  73. tags = ["automanaged"],
  74. visibility = ["//visibility:public"],
  75. )