BUILD 1.6 KB

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