BUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "aes.go",
  10. "auth.go",
  11. "clean_token.go",
  12. "contact_bind_log.go",
  13. "login_log.go",
  14. "pwd_log.go",
  15. "service.go",
  16. "set_token.go",
  17. "sync_pwd_log.go",
  18. ],
  19. importpath = "go-common/app/job/main/passport/service",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//app/job/main/passport/conf:go_default_library",
  24. "//app/job/main/passport/dao:go_default_library",
  25. "//app/job/main/passport/model:go_default_library",
  26. "//app/service/main/identify-game/model:go_default_library",
  27. "//app/service/main/identify-game/rpc/client:go_default_library",
  28. "//library/log:go_default_library",
  29. "//library/queue/databus:go_default_library",
  30. ],
  31. )
  32. go_test(
  33. name = "go_default_test",
  34. srcs = [
  35. "aes_test.go",
  36. "contact_bind_log_test.go",
  37. "service_test.go",
  38. ],
  39. embed = [":go_default_library"],
  40. rundir = ".",
  41. tags = ["automanaged"],
  42. deps = [
  43. "//app/job/main/passport/conf:go_default_library",
  44. "//app/job/main/passport/model:go_default_library",
  45. "//app/service/main/identify-game/model:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/queue/databus:go_default_library",
  48. "//library/time:go_default_library",
  49. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  50. ],
  51. )
  52. filegroup(
  53. name = "package-srcs",
  54. srcs = glob(["**"]),
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:private"],
  57. )
  58. filegroup(
  59. name = "all-srcs",
  60. srcs = [":package-srcs"],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )