BUILD 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. go_library(
  11. name = "go_default_library",
  12. srcs = [
  13. "associate_banner.go",
  14. "associate_bind.go",
  15. "associate_ele_api.go",
  16. "associate_model.go",
  17. "associate_old.go",
  18. "associate_open.go",
  19. "associate_order.go",
  20. "associate_panel.go",
  21. "associate_params.go",
  22. "bp.go",
  23. "coupon.go",
  24. "dialog.go",
  25. "http.go",
  26. "jointly.go",
  27. "mail_api.go",
  28. "model.go",
  29. "notify.go",
  30. "oldvip.go",
  31. "order.go",
  32. "panel.go",
  33. "params.go",
  34. "pay.go",
  35. "platform.go",
  36. "point.go",
  37. "privilege.go",
  38. "resource.go",
  39. "rpc.go",
  40. "tips.go",
  41. "user.go",
  42. "vip.go",
  43. "welfare.go",
  44. ],
  45. embed = [":model_go_proto"],
  46. importpath = "go-common/app/service/main/vip/model",
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:public"],
  49. deps = [
  50. "//app/admin/main/vip/model:go_default_library",
  51. "//app/service/main/coupon/api:go_default_library",
  52. "//app/service/main/coupon/model:go_default_library",
  53. "//library/time:go_default_library",
  54. "//vendor/github.com/satori/go.uuid:go_default_library",
  55. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  56. "@com_github_gogo_protobuf//proto:go_default_library",
  57. ],
  58. )
  59. filegroup(
  60. name = "package-srcs",
  61. srcs = glob(["**"]),
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:private"],
  64. )
  65. filegroup(
  66. name = "all-srcs",
  67. srcs = [":package-srcs"],
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:public"],
  70. )
  71. proto_library(
  72. name = "model_proto",
  73. srcs = ["vip.proto"],
  74. tags = ["automanaged"],
  75. visibility = ["//visibility:public"],
  76. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  77. )
  78. go_proto_library(
  79. name = "model_go_proto",
  80. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  81. importpath = "go-common/app/service/main/vip/model",
  82. proto = ":model_proto",
  83. tags = ["automanaged"],
  84. deps = [
  85. "//library/time:go_default_library",
  86. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  87. ],
  88. )