BUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. package(default_visibility = ["//visibility:public"])
  11. load(
  12. "@io_bazel_rules_go//go:def.bzl",
  13. "go_library",
  14. )
  15. go_library(
  16. name = "go_default_library",
  17. srcs = [
  18. "block.go",
  19. "member.go",
  20. "monitor.go",
  21. "official.go",
  22. "pagination.go",
  23. "params.go",
  24. "realname.go",
  25. "realname_old.go",
  26. "review.go",
  27. "search.go",
  28. ],
  29. importpath = "go-common/app/admin/main/member/model",
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. deps = [
  33. "//app/admin/main/member/conf:go_default_library",
  34. "//app/admin/main/member/model/block:go_default_library",
  35. "//app/service/main/member/model:go_default_library",
  36. "//app/service/main/member/model/block:go_default_library",
  37. "//library/log:go_default_library",
  38. "//library/time:go_default_library",
  39. "//vendor/github.com/pkg/errors:go_default_library",
  40. ],
  41. )
  42. filegroup(
  43. name = "package-srcs",
  44. srcs = glob(["**"]),
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:private"],
  47. )
  48. filegroup(
  49. name = "all-srcs",
  50. srcs = [
  51. ":package-srcs",
  52. "//app/admin/main/member/model/block:all-srcs",
  53. "//app/admin/main/member/model/bom:all-srcs",
  54. ],
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:public"],
  57. )
  58. go_test(
  59. name = "go_default_test",
  60. srcs = ["member_test.go"],
  61. embed = [":go_default_library"],
  62. rundir = ".",
  63. tags = ["automanaged"],
  64. deps = ["//vendor/github.com/stretchr/testify/assert:go_default_library"],
  65. )