BUILD 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. "bfs_test.go",
  11. "dao_test.go",
  12. "dialog_test.go",
  13. "jointly_test.go",
  14. "memcache_test.go",
  15. "month_test.go",
  16. "mysql_test.go",
  17. "order_test.go",
  18. "panel_test.go",
  19. "platform_test.go",
  20. "privilege_test.go",
  21. "push_test.go",
  22. "resouce_test.go",
  23. "send_test.go",
  24. "tips_test.go",
  25. "vip_test.go",
  26. "welfare_test.go",
  27. ],
  28. embed = [":go_default_library"],
  29. rundir = ".",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/admin/main/vip/conf:go_default_library",
  33. "//app/admin/main/vip/model:go_default_library",
  34. "//library/database/sql:go_default_library",
  35. "//library/log:go_default_library",
  36. "//library/time:go_default_library",
  37. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  38. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  39. ],
  40. )
  41. go_library(
  42. name = "go_default_library",
  43. srcs = [
  44. "bfs.go",
  45. "dao.go",
  46. "dialog.go",
  47. "jointly.go",
  48. "memcache.go",
  49. "month.go",
  50. "mysql.go",
  51. "order.go",
  52. "panel.go",
  53. "platform.go",
  54. "privilege.go",
  55. "push.go",
  56. "resouce.go",
  57. "send.go",
  58. "tips.go",
  59. "vip.go",
  60. "welfare.go",
  61. ],
  62. importpath = "go-common/app/admin/main/vip/dao",
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:public"],
  65. deps = [
  66. "//app/admin/main/vip/conf:go_default_library",
  67. "//app/admin/main/vip/model:go_default_library",
  68. "//library/cache/memcache:go_default_library",
  69. "//library/database/orm:go_default_library",
  70. "//library/database/sql:go_default_library",
  71. "//library/ecode:go_default_library",
  72. "//library/log:go_default_library",
  73. "//library/net/http/blademaster:go_default_library",
  74. "//library/stat/prom:go_default_library",
  75. "//library/time:go_default_library",
  76. "//vendor/github.com/google/uuid:go_default_library",
  77. "//vendor/github.com/jinzhu/gorm:go_default_library",
  78. "//vendor/github.com/pkg/errors:go_default_library",
  79. ],
  80. )
  81. filegroup(
  82. name = "package-srcs",
  83. srcs = glob(["**"]),
  84. tags = ["automanaged"],
  85. visibility = ["//visibility:private"],
  86. )
  87. filegroup(
  88. name = "all-srcs",
  89. srcs = [":package-srcs"],
  90. tags = ["automanaged"],
  91. visibility = ["//visibility:public"],
  92. )