BUILD 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. "captcha.go",
  12. "dao.go",
  13. "email.go",
  14. "mid_info.go",
  15. "mysql.go",
  16. "redis.go",
  17. "req_rpc.go",
  18. "user_act_log.go",
  19. ],
  20. importpath = "go-common/app/service/main/account-recovery/dao",
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:public"],
  23. deps = [
  24. "//app/service/main/account-recovery/conf:go_default_library",
  25. "//app/service/main/account-recovery/dao/sqlbuilder:go_default_library",
  26. "//app/service/main/account-recovery/model:go_default_library",
  27. "//app/service/main/account/api:go_default_library",
  28. "//app/service/main/location/model:go_default_library",
  29. "//app/service/main/location/rpc/client:go_default_library",
  30. "//app/service/main/member/api:go_default_library",
  31. "//library/cache/redis:go_default_library",
  32. "//library/database/elastic:go_default_library",
  33. "//library/database/sql:go_default_library",
  34. "//library/ecode:go_default_library",
  35. "//library/log:go_default_library",
  36. "//library/net/http/blademaster:go_default_library",
  37. "//library/net/metadata:go_default_library",
  38. "//library/time:go_default_library",
  39. "//library/xstr:go_default_library",
  40. "//vendor/github.com/pkg/errors:go_default_library",
  41. "//vendor/gopkg.in/gomail.v2:go_default_library",
  42. ],
  43. )
  44. filegroup(
  45. name = "package-srcs",
  46. srcs = glob(["**"]),
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:private"],
  49. )
  50. filegroup(
  51. name = "all-srcs",
  52. srcs = [
  53. ":package-srcs",
  54. "//app/service/main/account-recovery/dao/sqlbuilder:all-srcs",
  55. ],
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:public"],
  58. )
  59. go_test(
  60. name = "go_default_test",
  61. srcs = [
  62. "captcha_test.go",
  63. "dao_test.go",
  64. "email_test.go",
  65. "mid_info_test.go",
  66. "mysql_test.go",
  67. "redis_test.go",
  68. "req_rpc_test.go",
  69. "user_act_log_test.go",
  70. ],
  71. embed = [":go_default_library"],
  72. rundir = ".",
  73. tags = ["automanaged"],
  74. deps = [
  75. "//app/service/main/account-recovery/conf:go_default_library",
  76. "//app/service/main/account-recovery/model:go_default_library",
  77. "//library/time:go_default_library",
  78. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  79. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  80. ],
  81. )