BUILD 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. "academy_test.go",
  11. "dao_test.go",
  12. "material_test.go",
  13. "msg_test.go",
  14. "search_test.go",
  15. "upbfs_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/admin/main/creative/conf:go_default_library",
  22. "//app/admin/main/creative/model/academy:go_default_library",
  23. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  24. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "academy.go",
  31. "dao.go",
  32. "material.go",
  33. "msg.go",
  34. "search.go",
  35. "upbfs.go",
  36. ],
  37. importpath = "go-common/app/admin/main/creative/dao",
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. deps = [
  41. "//app/admin/main/creative/conf:go_default_library",
  42. "//app/admin/main/creative/model/academy:go_default_library",
  43. "//app/admin/main/creative/model/material:go_default_library",
  44. "//app/interface/openplatform/article/model:go_default_library",
  45. "//app/interface/openplatform/article/rpc/client:go_default_library",
  46. "//app/service/main/account/api:go_default_library",
  47. "//app/service/main/archive/api:go_default_library",
  48. "//app/service/main/archive/api/gorpc:go_default_library",
  49. "//app/service/main/archive/model/archive:go_default_library",
  50. "//library/database/elastic:go_default_library",
  51. "//library/database/orm:go_default_library",
  52. "//library/ecode:go_default_library",
  53. "//library/log:go_default_library",
  54. "//library/net/http/blademaster:go_default_library",
  55. "//library/net/metadata:go_default_library",
  56. "//library/xstr:go_default_library",
  57. "//vendor/github.com/jinzhu/gorm:go_default_library",
  58. "//vendor/github.com/pkg/errors:go_default_library",
  59. ],
  60. )
  61. filegroup(
  62. name = "package-srcs",
  63. srcs = glob(["**"]),
  64. tags = ["automanaged"],
  65. visibility = ["//visibility:private"],
  66. )
  67. filegroup(
  68. name = "all-srcs",
  69. srcs = [":package-srcs"],
  70. tags = ["automanaged"],
  71. visibility = ["//visibility:public"],
  72. )