BUILD 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. "account.go",
  11. "api.go",
  12. "cmd.go",
  13. "creative.go",
  14. "data.go",
  15. "mcn.go",
  16. "msg.go",
  17. "rank.go",
  18. "service.go",
  19. "uniquecheck.go",
  20. "upload.go",
  21. ],
  22. importpath = "go-common/app/interface/main/mcn/service",
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:public"],
  25. deps = [
  26. "//app/admin/main/mcn/model:go_default_library",
  27. "//app/interface/main/mcn/conf:go_default_library",
  28. "//app/interface/main/mcn/dao/bfs:go_default_library",
  29. "//app/interface/main/mcn/dao/cache:go_default_library",
  30. "//app/interface/main/mcn/dao/datadao:go_default_library",
  31. "//app/interface/main/mcn/dao/global:go_default_library",
  32. "//app/interface/main/mcn/dao/mcndao:go_default_library",
  33. "//app/interface/main/mcn/dao/msg:go_default_library",
  34. "//app/interface/main/mcn/model:go_default_library",
  35. "//app/interface/main/mcn/model/datamodel:go_default_library",
  36. "//app/interface/main/mcn/model/mcnmodel:go_default_library",
  37. "//app/interface/main/mcn/tool/worker:go_default_library",
  38. "//app/service/main/account/api:go_default_library",
  39. "//app/service/main/member/api:go_default_library",
  40. "//app/service/main/member/model:go_default_library",
  41. "//app/service/main/member/model/block:go_default_library",
  42. "//library/ecode:go_default_library",
  43. "//library/log:go_default_library",
  44. "//library/net/metadata:go_default_library",
  45. "//library/time:go_default_library",
  46. "//vendor/github.com/bluele/gcache:go_default_library",
  47. "//vendor/github.com/jinzhu/gorm:go_default_library",
  48. ],
  49. )
  50. filegroup(
  51. name = "package-srcs",
  52. srcs = glob(["**"]),
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:private"],
  55. )
  56. filegroup(
  57. name = "all-srcs",
  58. srcs = [":package-srcs"],
  59. tags = ["automanaged"],
  60. visibility = ["//visibility:public"],
  61. )
  62. go_test(
  63. name = "go_default_test",
  64. srcs = [
  65. "account_test.go",
  66. "cmd_test.go",
  67. "mcn_test.go",
  68. "msg_test.go",
  69. "rank_test.go",
  70. "service_test.go",
  71. "uniquecheck_test.go",
  72. "upload_test.go",
  73. ],
  74. embed = [":go_default_library"],
  75. rundir = ".",
  76. tags = ["automanaged"],
  77. deps = [
  78. "//app/admin/main/mcn/model:go_default_library",
  79. "//app/interface/main/mcn/conf:go_default_library",
  80. "//app/interface/main/mcn/model:go_default_library",
  81. "//app/interface/main/mcn/model/mcnmodel:go_default_library",
  82. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  83. ],
  84. )