BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 = ["service_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/job/main/sms/conf:go_default_library",
  15. "//app/job/main/sms/model:go_default_library",
  16. "//app/service/main/sms/model:go_default_library",
  17. "//library/net/trace:go_default_library",
  18. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  19. ],
  20. )
  21. go_library(
  22. name = "go_default_library",
  23. srcs = [
  24. "callback.go",
  25. "log.go",
  26. "service.go",
  27. "sms.go",
  28. ],
  29. importpath = "go-common/app/job/main/sms/service",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/job/main/sms/conf:go_default_library",
  33. "//app/job/main/sms/dao:go_default_library",
  34. "//app/job/main/sms/dao/chuanglan:go_default_library",
  35. "//app/job/main/sms/dao/mengwang:go_default_library",
  36. "//app/job/main/sms/model:go_default_library",
  37. "//app/service/main/sms/api:go_default_library",
  38. "//app/service/main/sms/model:go_default_library",
  39. "//library/conf/env:go_default_library",
  40. "//library/log:go_default_library",
  41. "//library/queue/databus:go_default_library",
  42. "//library/queue/databus/report:go_default_library",
  43. "//library/sync/errgroup:go_default_library",
  44. "//library/sync/pipeline/fanout:go_default_library",
  45. ],
  46. )
  47. filegroup(
  48. name = "package-srcs",
  49. srcs = glob(["**"]),
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:private"],
  52. )
  53. filegroup(
  54. name = "all-srcs",
  55. srcs = [":package-srcs"],
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:public"],
  58. )