BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "activity.go",
  11. "allowance.go",
  12. "code.go",
  13. "coupon.go",
  14. "service.go",
  15. "view.go",
  16. ],
  17. importpath = "go-common/app/admin/main/coupon/service",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/admin/main/coupon/conf:go_default_library",
  22. "//app/admin/main/coupon/dao:go_default_library",
  23. "//app/admin/main/coupon/model:go_default_library",
  24. "//app/service/main/coupon/model:go_default_library",
  25. "//app/service/main/coupon/rpc/client:go_default_library",
  26. "//library/database/sql:go_default_library",
  27. "//library/ecode:go_default_library",
  28. "//library/log:go_default_library",
  29. "//library/net/metadata:go_default_library",
  30. "//library/sync/pipeline/fanout:go_default_library",
  31. "//library/time:go_default_library",
  32. "//library/xstr:go_default_library",
  33. "//vendor/github.com/pkg/errors:go_default_library",
  34. ],
  35. )
  36. filegroup(
  37. name = "package-srcs",
  38. srcs = glob(["**"]),
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:private"],
  41. )
  42. filegroup(
  43. name = "all-srcs",
  44. srcs = [":package-srcs"],
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. )
  48. go_test(
  49. name = "go_default_test",
  50. srcs = [
  51. "activity_test.go",
  52. "allowance_test.go",
  53. "code_test.go",
  54. "coupon_test.go",
  55. ],
  56. embed = [":go_default_library"],
  57. rundir = ".",
  58. tags = ["automanaged"],
  59. deps = [
  60. "//app/admin/main/coupon/conf:go_default_library",
  61. "//app/admin/main/coupon/model:go_default_library",
  62. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  63. ],
  64. )