BUILD 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. "dialog_test.go",
  11. "jointly_test.go",
  12. "order_test.go",
  13. "panel_test.go",
  14. "privilege_test.go",
  15. "push_test.go",
  16. "resouce_test.go",
  17. "service_test.go",
  18. "tips_test.go",
  19. ],
  20. embed = [":go_default_library"],
  21. rundir = ".",
  22. tags = ["automanaged"],
  23. deps = [
  24. "//app/admin/main/vip/conf:go_default_library",
  25. "//app/admin/main/vip/model:go_default_library",
  26. "//library/ecode:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/time:go_default_library",
  29. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  30. ],
  31. )
  32. go_library(
  33. name = "go_default_library",
  34. srcs = [
  35. "business.go",
  36. "dialog.go",
  37. "jointly.go",
  38. "month.go",
  39. "order.go",
  40. "panel.go",
  41. "platform.go",
  42. "privilege.go",
  43. "push.go",
  44. "resouce.go",
  45. "service.go",
  46. "tips.go",
  47. "version.go",
  48. "vip.go",
  49. "welfare.go",
  50. ],
  51. importpath = "go-common/app/admin/main/vip/service",
  52. tags = ["automanaged"],
  53. visibility = ["//visibility:public"],
  54. deps = [
  55. "//app/admin/main/vip/conf:go_default_library",
  56. "//app/admin/main/vip/dao:go_default_library",
  57. "//app/admin/main/vip/model:go_default_library",
  58. "//app/service/main/vip/model:go_default_library",
  59. "//library/database/sql:go_default_library",
  60. "//library/ecode:go_default_library",
  61. "//library/log:go_default_library",
  62. "//library/time:go_default_library",
  63. "//vendor/github.com/google/uuid:go_default_library",
  64. "//vendor/github.com/jinzhu/gorm:go_default_library",
  65. "//vendor/github.com/pkg/errors:go_default_library",
  66. "//vendor/golang.org/x/sync/errgroup:go_default_library",
  67. ],
  68. )
  69. filegroup(
  70. name = "package-srcs",
  71. srcs = glob(["**"]),
  72. tags = ["automanaged"],
  73. visibility = ["//visibility:private"],
  74. )
  75. filegroup(
  76. name = "all-srcs",
  77. srcs = [":package-srcs"],
  78. tags = ["automanaged"],
  79. visibility = ["//visibility:public"],
  80. )