BUILD 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 = ["dao.go"],
  10. importpath = "go-common/app/interface/main/creative/dao/lottery",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//app/interface/main/creative/conf:go_default_library",
  15. "//app/interface/main/creative/model/lottery:go_default_library",
  16. "//library/ecode:go_default_library",
  17. "//library/log:go_default_library",
  18. "//library/net/http/blademaster:go_default_library",
  19. ],
  20. )
  21. filegroup(
  22. name = "package-srcs",
  23. srcs = glob(["**"]),
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:private"],
  26. )
  27. filegroup(
  28. name = "all-srcs",
  29. srcs = [":package-srcs"],
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. )
  33. go_test(
  34. name = "go_default_test",
  35. srcs = ["dao_test.go"],
  36. embed = [":go_default_library"],
  37. tags = ["automanaged"],
  38. deps = [
  39. "//app/interface/main/creative/conf:go_default_library",
  40. "//app/interface/main/creative/model/lottery:go_default_library",
  41. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  42. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  43. ],
  44. )