BUILD 2.3 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. "answer_test.go",
  11. "answercheck_test.go",
  12. "common_test.go",
  13. "geetest_test.go",
  14. "service_test.go",
  15. "user_info_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/interface/main/answer/conf:go_default_library",
  22. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  23. ],
  24. )
  25. go_library(
  26. name = "go_default_library",
  27. srcs = [
  28. "answer.go",
  29. "answercheck.go",
  30. "common.go",
  31. "geetest.go",
  32. "rank_share.go",
  33. "service.go",
  34. "user_info.go",
  35. ],
  36. importpath = "go-common/app/interface/main/answer/service",
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. deps = [
  40. "//app/interface/main/answer/conf:go_default_library",
  41. "//app/interface/main/answer/dao:go_default_library",
  42. "//app/interface/main/answer/dao/account:go_default_library",
  43. "//app/interface/main/answer/dao/geetest:go_default_library",
  44. "//app/interface/main/answer/model:go_default_library",
  45. "//app/service/main/account/api:go_default_library",
  46. "//app/service/main/member/api/gorpc:go_default_library",
  47. "//app/service/main/member/model:go_default_library",
  48. "//library/ecode:go_default_library",
  49. "//library/log:go_default_library",
  50. "//library/log/anticheat:go_default_library",
  51. "//library/log/infoc:go_default_library",
  52. "//library/net/metadata:go_default_library",
  53. "//library/queue/databus/report:go_default_library",
  54. "//library/stat/prom:go_default_library",
  55. "//library/sync/pipeline/fanout:go_default_library",
  56. "//library/text/translate/chinese:go_default_library",
  57. "//vendor/github.com/pkg/errors:go_default_library",
  58. "@org_golang_x_net//context: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. )