BUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 = [
  10. "aes.go",
  11. "service.go",
  12. "user_act_log.go",
  13. ],
  14. importpath = "go-common/app/admin/main/passport/service",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/admin/main/passport/conf:go_default_library",
  19. "//app/admin/main/passport/dao:go_default_library",
  20. "//app/admin/main/passport/model:go_default_library",
  21. "//library/database/elastic:go_default_library",
  22. "//library/log:go_default_library",
  23. ],
  24. )
  25. filegroup(
  26. name = "package-srcs",
  27. srcs = glob(["**"]),
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:private"],
  30. )
  31. filegroup(
  32. name = "all-srcs",
  33. srcs = [":package-srcs"],
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. )
  37. go_test(
  38. name = "go_default_test",
  39. srcs = ["user_act_log_test.go"],
  40. embed = [":go_default_library"],
  41. rundir = ".",
  42. tags = ["automanaged"],
  43. deps = [
  44. "//app/admin/main/passport/conf:go_default_library",
  45. "//app/admin/main/passport/model:go_default_library",
  46. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  47. ],
  48. )