BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "av_charge.go",
  11. "av_charge_statis.go",
  12. "bgm.go",
  13. "column_charge.go",
  14. "dao.go",
  15. "date_statia.go",
  16. "up_charge.go",
  17. ],
  18. importpath = "go-common/app/job/main/growup/dao/charge",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/job/main/growup/conf:go_default_library",
  23. "//app/job/main/growup/model/charge:go_default_library",
  24. "//library/database/sql:go_default_library",
  25. "//library/log:go_default_library",
  26. ],
  27. )
  28. filegroup(
  29. name = "package-srcs",
  30. srcs = glob(["**"]),
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:private"],
  33. )
  34. filegroup(
  35. name = "all-srcs",
  36. srcs = [":package-srcs"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )
  40. go_test(
  41. name = "go_default_test",
  42. srcs = [
  43. "av_charge_statis_test.go",
  44. "av_charge_test.go",
  45. "bgm_test.go",
  46. "column_charge_test.go",
  47. "dao_test.go",
  48. "date_statia_test.go",
  49. "up_charge_test.go",
  50. ],
  51. embed = [":go_default_library"],
  52. rundir = ".",
  53. tags = ["automanaged"],
  54. deps = [
  55. "//app/job/main/growup/conf:go_default_library",
  56. "//app/job/main/growup/model/charge:go_default_library",
  57. "//library/time:go_default_library",
  58. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  59. ],
  60. )