BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. "av_breach_test.go",
  11. "av_income_test.go",
  12. "bgm_test.go",
  13. "blacklist_test.go",
  14. "charge_test.go",
  15. "dao_test.go",
  16. "lottery_test.go",
  17. "up_account_test.go",
  18. "up_category_info_test.go",
  19. "up_income_test.go",
  20. "up_info_video_test.go",
  21. "up_withdraw_test.go",
  22. ],
  23. embed = [":go_default_library"],
  24. rundir = ".",
  25. tags = ["automanaged"],
  26. deps = [
  27. "//app/admin/main/growup/conf:go_default_library",
  28. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  29. ],
  30. )
  31. go_library(
  32. name = "go_default_library",
  33. srcs = [
  34. "av_breach.go",
  35. "av_income.go",
  36. "bgm.go",
  37. "blacklist.go",
  38. "charge.go",
  39. "dao.go",
  40. "lottery.go",
  41. "up_account.go",
  42. "up_category_info.go",
  43. "up_income.go",
  44. "up_info_video.go",
  45. "up_withdraw.go",
  46. ],
  47. importpath = "go-common/app/admin/main/growup/dao/income",
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:public"],
  50. deps = [
  51. "//app/admin/main/growup/conf:go_default_library",
  52. "//app/admin/main/growup/model/income:go_default_library",
  53. "//library/database/sql:go_default_library",
  54. "//library/log:go_default_library",
  55. "//library/time:go_default_library",
  56. "//library/xstr: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 = [":package-srcs"],
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:public"],
  70. )