BUILD 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. "code.go",
  11. "dao.go",
  12. "http.go",
  13. "memcache.go",
  14. "mysql.go",
  15. "remote.go",
  16. ],
  17. importpath = "go-common/app/admin/main/coupon/dao",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/admin/main/coupon/conf:go_default_library",
  22. "//app/admin/main/coupon/model:go_default_library",
  23. "//app/service/openplatform/pgc-season/api/grpc/season/v1:go_default_library",
  24. "//library/cache/memcache:go_default_library",
  25. "//library/database/elastic:go_default_library",
  26. "//library/database/sql:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/net/http/blademaster: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 = [
  47. "code_test.go",
  48. "dao_test.go",
  49. "http_test.go",
  50. "memcache_test.go",
  51. "mysql_test.go",
  52. "remote_test.go",
  53. ],
  54. embed = [":go_default_library"],
  55. rundir = ".",
  56. tags = ["automanaged"],
  57. deps = [
  58. "//app/admin/main/coupon/conf:go_default_library",
  59. "//app/admin/main/coupon/model:go_default_library",
  60. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  61. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  62. ],
  63. )