BUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. "dao.go",
  11. "mcn_account.go",
  12. "mcn_manage.go",
  13. "mcn_recommend.go",
  14. "memcache.go",
  15. "statistics.go",
  16. "up_base_Info.go",
  17. ],
  18. importpath = "go-common/app/admin/main/mcn/dao/up",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/admin/main/mcn/conf:go_default_library",
  23. "//app/admin/main/mcn/model:go_default_library",
  24. "//app/interface/main/mcn/model/datamodel:go_default_library",
  25. "//app/interface/main/mcn/model/mcnmodel:go_default_library",
  26. "//library/cache/memcache:go_default_library",
  27. "//library/database/sql:go_default_library",
  28. "//library/ecode:go_default_library",
  29. "//library/log:go_default_library",
  30. "//library/net/http/blademaster:go_default_library",
  31. "//library/net/metadata:go_default_library",
  32. "//library/time:go_default_library",
  33. "//library/xstr:go_default_library",
  34. "//vendor/github.com/pkg/errors:go_default_library",
  35. ],
  36. )
  37. filegroup(
  38. name = "package-srcs",
  39. srcs = glob(["**"]),
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:private"],
  42. )
  43. filegroup(
  44. name = "all-srcs",
  45. srcs = [":package-srcs"],
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. )
  49. go_test(
  50. name = "go_default_test",
  51. srcs = [
  52. "dao_test.go",
  53. "mcn_account_test.go",
  54. "mcn_manage_test.go",
  55. "mcn_recommend_test.go",
  56. "memcache_test.go",
  57. "statistics_test.go",
  58. "up_base_Info_test.go",
  59. ],
  60. embed = [":go_default_library"],
  61. rundir = ".",
  62. tags = ["automanaged"],
  63. deps = [
  64. "//app/admin/main/mcn/conf:go_default_library",
  65. "//app/admin/main/mcn/model:go_default_library",
  66. "//library/time:go_default_library",
  67. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  68. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  69. ],
  70. )