BUILD 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. "jury_test.go",
  11. "service_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/admin/main/credit/conf:go_default_library",
  18. "//app/admin/main/credit/model/blocked:go_default_library",
  19. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  20. ],
  21. )
  22. go_library(
  23. name = "go_default_library",
  24. srcs = [
  25. "blocked.go",
  26. "extra_func.go",
  27. "jury.go",
  28. "labour.go",
  29. "msg.go",
  30. "service.go",
  31. "user.go",
  32. ],
  33. importpath = "go-common/app/admin/main/credit/service",
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. deps = [
  37. "//app/admin/main/credit/conf:go_default_library",
  38. "//app/admin/main/credit/dao/account:go_default_library",
  39. "//app/admin/main/credit/dao/blocked:go_default_library",
  40. "//app/admin/main/credit/dao/manager:go_default_library",
  41. "//app/admin/main/credit/dao/msg:go_default_library",
  42. "//app/admin/main/credit/dao/relation:go_default_library",
  43. "//app/admin/main/credit/dao/search:go_default_library",
  44. "//app/admin/main/credit/dao/upload:go_default_library",
  45. "//app/admin/main/credit/model:go_default_library",
  46. "//app/admin/main/credit/model/blocked:go_default_library",
  47. "//app/service/main/account/api:go_default_library",
  48. "//app/service/main/account/model:go_default_library",
  49. "//app/service/main/coin/api:go_default_library",
  50. "//app/service/main/relation/model:go_default_library",
  51. "//library/ecode:go_default_library",
  52. "//library/log:go_default_library",
  53. "//library/net/metadata:go_default_library",
  54. "//library/sync/errgroup:go_default_library",
  55. "//library/time:go_default_library",
  56. "//library/xstr:go_default_library",
  57. "//vendor/github.com/jinzhu/gorm:go_default_library",
  58. ],
  59. )
  60. filegroup(
  61. name = "package-srcs",
  62. srcs = glob(["**"]),
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:private"],
  65. )
  66. filegroup(
  67. name = "all-srcs",
  68. srcs = [":package-srcs"],
  69. tags = ["automanaged"],
  70. visibility = ["//visibility:public"],
  71. )