BUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. "audit_log.go",
  11. "base_model.go",
  12. "formatter.go",
  13. "mcn.go",
  14. "mcn_pay.go",
  15. "msg.go",
  16. "reply.go",
  17. "req.go",
  18. "request_base.go",
  19. "request_example.go",
  20. "statistics.go",
  21. ],
  22. importpath = "go-common/app/admin/main/mcn/model",
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:public"],
  25. deps = [
  26. "//app/interface/main/mcn/model/datamodel:go_default_library",
  27. "//app/service/main/archive/model/archive:go_default_library",
  28. "//library/time:go_default_library",
  29. "//vendor/github.com/pkg/errors:go_default_library",
  30. ],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = ["reply_test.go"],
  47. embed = [":go_default_library"],
  48. tags = ["automanaged"],
  49. )