BUILD 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. tags = ["automanaged"],
  12. deps = [
  13. "//app/interface/main/creative/conf:go_default_library",
  14. "//app/interface/main/creative/service:go_default_library",
  15. ],
  16. )
  17. go_library(
  18. name = "go_default_library",
  19. srcs = [
  20. "h5.go",
  21. "service.go",
  22. "state.go",
  23. "task.go",
  24. ],
  25. importpath = "go-common/app/interface/main/creative/service/newcomer",
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:public"],
  28. deps = [
  29. "//app/interface/main/creative/conf:go_default_library",
  30. "//app/interface/main/creative/dao/academy:go_default_library",
  31. "//app/interface/main/creative/dao/account:go_default_library",
  32. "//app/interface/main/creative/dao/archive:go_default_library",
  33. "//app/interface/main/creative/dao/article:go_default_library",
  34. "//app/interface/main/creative/dao/data:go_default_library",
  35. "//app/interface/main/creative/dao/medal:go_default_library",
  36. "//app/interface/main/creative/dao/newcomer:go_default_library",
  37. "//app/interface/main/creative/dao/order:go_default_library",
  38. "//app/interface/main/creative/dao/watermark:go_default_library",
  39. "//app/interface/main/creative/model/newcomer:go_default_library",
  40. "//app/interface/main/creative/service:go_default_library",
  41. "//app/service/main/account/api:go_default_library",
  42. "//library/conf/env:go_default_library",
  43. "//library/ecode:go_default_library",
  44. "//library/log:go_default_library",
  45. "//library/net/metadata:go_default_library",
  46. "//library/queue/databus/report:go_default_library",
  47. "//library/sync/errgroup.v2:go_default_library",
  48. "//library/time:go_default_library",
  49. ],
  50. )
  51. filegroup(
  52. name = "package-srcs",
  53. srcs = glob(["**"]),
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:private"],
  56. )
  57. filegroup(
  58. name = "all-srcs",
  59. srcs = [":package-srcs"],
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:public"],
  62. )