BUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. "cache_test.go",
  11. "dao_test.go",
  12. "question_bank_bind_test.go",
  13. "question_bank_test.go",
  14. "question_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/service/openplatform/anti-fraud/conf:go_default_library",
  21. "//app/service/openplatform/anti-fraud/model:go_default_library",
  22. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  23. ],
  24. )
  25. go_library(
  26. name = "go_default_library",
  27. srcs = [
  28. "cache.go",
  29. "dao.go",
  30. "payShield.go",
  31. "question.go",
  32. "question_bank.go",
  33. "question_bank_bind.go",
  34. "risk.go",
  35. ],
  36. importpath = "go-common/app/service/openplatform/anti-fraud/dao",
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. deps = [
  40. "//app/service/openplatform/anti-fraud/conf:go_default_library",
  41. "//app/service/openplatform/anti-fraud/model:go_default_library",
  42. "//library/cache/redis:go_default_library",
  43. "//library/database/sql:go_default_library",
  44. "//library/ecode:go_default_library",
  45. "//library/log:go_default_library",
  46. "//library/net/http/blademaster:go_default_library",
  47. "//library/xstr:go_default_library",
  48. "//vendor/github.com/json-iterator/go:go_default_library",
  49. ],
  50. )
  51. filegroup(
  52. name = "package-srcs",
  53. srcs = glob(["**"]),
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:private"],
  56. )
  57. filegroup(
  58. name = "all-srcs",
  59. srcs = [":package-srcs"],
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:public"],
  62. )