BUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. "allowance_test.go",
  11. "captcha_api_test.go",
  12. "code_test.go",
  13. "dao_test.go",
  14. "http_test.go",
  15. "memcache_test.go",
  16. "mysql_test.go",
  17. "prize_test.go",
  18. ],
  19. embed = [":go_default_library"],
  20. rundir = ".",
  21. tags = ["automanaged"],
  22. deps = [
  23. "//app/service/main/coupon/conf:go_default_library",
  24. "//app/service/main/coupon/model:go_default_library",
  25. "//library/database/sql:go_default_library",
  26. "//library/ecode:go_default_library",
  27. "//library/time:go_default_library",
  28. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  29. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  30. ],
  31. )
  32. go_library(
  33. name = "go_default_library",
  34. srcs = [
  35. "allowance.go",
  36. "captcha_api.go",
  37. "code.go",
  38. "dao.go",
  39. "http.go",
  40. "memcache.go",
  41. "mysql.go",
  42. "prize.go",
  43. ],
  44. importpath = "go-common/app/service/main/coupon/dao",
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. deps = [
  48. "//app/service/main/coupon/conf:go_default_library",
  49. "//app/service/main/coupon/model:go_default_library",
  50. "//library/cache/memcache:go_default_library",
  51. "//library/database/sql:go_default_library",
  52. "//library/ecode:go_default_library",
  53. "//library/log:go_default_library",
  54. "//library/net/http/blademaster:go_default_library",
  55. "//library/net/metadata:go_default_library",
  56. "//library/stat/prom:go_default_library",
  57. "//library/xstr:go_default_library",
  58. "//vendor/github.com/pkg/errors:go_default_library",
  59. ],
  60. )
  61. filegroup(
  62. name = "package-srcs",
  63. srcs = glob(["**"]),
  64. tags = ["automanaged"],
  65. visibility = ["//visibility:private"],
  66. )
  67. filegroup(
  68. name = "all-srcs",
  69. srcs = [":package-srcs"],
  70. tags = ["automanaged"],
  71. visibility = ["//visibility:public"],
  72. )