BUILD 1.8 KB

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