BUILD 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. "audit_log.go",
  11. "mcn.go",
  12. "msg.go",
  13. "recommend.go",
  14. "service.go",
  15. "statistics.go",
  16. "upload.go",
  17. ],
  18. importpath = "go-common/app/admin/main/mcn/service",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/admin/main/mcn/conf:go_default_library",
  23. "//app/admin/main/mcn/dao/bfs:go_default_library",
  24. "//app/admin/main/mcn/dao/msg:go_default_library",
  25. "//app/admin/main/mcn/dao/up:go_default_library",
  26. "//app/admin/main/mcn/dao/videoup:go_default_library",
  27. "//app/admin/main/mcn/model:go_default_library",
  28. "//app/interface/main/mcn/model/datamodel:go_default_library",
  29. "//app/interface/main/mcn/tool/worker:go_default_library",
  30. "//app/service/main/account/api:go_default_library",
  31. "//app/service/main/archive/api:go_default_library",
  32. "//app/service/main/member/api:go_default_library",
  33. "//app/service/main/member/model/block:go_default_library",
  34. "//library/database/sql:go_default_library",
  35. "//library/ecode:go_default_library",
  36. "//library/log:go_default_library",
  37. "//library/net/metadata:go_default_library",
  38. "//library/queue/databus/report:go_default_library",
  39. "//library/sync/errgroup:go_default_library",
  40. "//library/time:go_default_library",
  41. "//library/xstr:go_default_library",
  42. "//vendor/github.com/pkg/errors:go_default_library",
  43. ],
  44. )
  45. filegroup(
  46. name = "package-srcs",
  47. srcs = glob(["**"]),
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:private"],
  50. )
  51. filegroup(
  52. name = "all-srcs",
  53. srcs = [":package-srcs"],
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:public"],
  56. )
  57. go_test(
  58. name = "go_default_test",
  59. srcs = [
  60. "audit_log_test.go",
  61. "mcn_test.go",
  62. "msg_test.go",
  63. "recommend_test.go",
  64. "service_test.go",
  65. "statistics_test.go",
  66. "upload_test.go",
  67. ],
  68. embed = [":go_default_library"],
  69. rundir = ".",
  70. tags = ["automanaged"],
  71. deps = [
  72. "//app/admin/main/mcn/conf:go_default_library",
  73. "//app/admin/main/mcn/model:go_default_library",
  74. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  75. ],
  76. )