BUILD 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 = [
  10. "service_test.go",
  11. "upbfs_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/admin/main/creative/conf:go_default_library",
  18. "//app/service/main/account/api:go_default_library",
  19. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  20. ],
  21. )
  22. go_library(
  23. name = "go_default_library",
  24. srcs = [
  25. "academy.go",
  26. "log.go",
  27. "material.go",
  28. "music.go",
  29. "service.go",
  30. "task.go",
  31. "upbfs.go",
  32. "whitelist.go",
  33. ],
  34. importpath = "go-common/app/admin/main/creative/service",
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. deps = [
  38. "//app/admin/main/creative/conf:go_default_library",
  39. "//app/admin/main/creative/dao:go_default_library",
  40. "//app/admin/main/creative/model/academy:go_default_library",
  41. "//app/admin/main/creative/model/bfs:go_default_library",
  42. "//app/admin/main/creative/model/logcli:go_default_library",
  43. "//app/admin/main/creative/model/material:go_default_library",
  44. "//app/admin/main/creative/model/music:go_default_library",
  45. "//app/admin/main/creative/model/task:go_default_library",
  46. "//app/admin/main/creative/model/whitelist:go_default_library",
  47. "//app/interface/openplatform/article/model:go_default_library",
  48. "//app/service/main/account/api:go_default_library",
  49. "//app/service/main/archive/api:go_default_library",
  50. "//library/conf/env:go_default_library",
  51. "//library/ecode:go_default_library",
  52. "//library/log:go_default_library",
  53. "//library/net/http/blademaster:go_default_library",
  54. "//library/queue/databus/report:go_default_library",
  55. "//library/xstr:go_default_library",
  56. "//vendor/github.com/jinzhu/gorm:go_default_library",
  57. "//vendor/golang.org/x/sync/errgroup:go_default_library",
  58. ],
  59. )
  60. filegroup(
  61. name = "package-srcs",
  62. srcs = glob(["**"]),
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:private"],
  65. )
  66. filegroup(
  67. name = "all-srcs",
  68. srcs = [":package-srcs"],
  69. tags = ["automanaged"],
  70. visibility = ["//visibility:public"],
  71. )