BUILD 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. "dao_test.go",
  11. "order_admin_test.go",
  12. "order_test.go",
  13. "rank_test.go",
  14. "scene_test.go",
  15. "user_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/admin/ep/melloi/conf:go_default_library",
  22. "//app/admin/ep/melloi/model:go_default_library",
  23. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  24. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  25. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  26. ],
  27. )
  28. go_library(
  29. name = "go_default_library",
  30. srcs = [
  31. "apply.go",
  32. "bfs.go",
  33. "clientmoni.go",
  34. "cluster.go",
  35. "comment.go",
  36. "dao.go",
  37. "dapper.go",
  38. "job.go",
  39. "label.go",
  40. "mail.go",
  41. "mysql_grpc.go",
  42. "mysql_grpc_snap.go",
  43. "order.go",
  44. "order_admin.go",
  45. "order_report.go",
  46. "ptestjob.go",
  47. "rank.go",
  48. "report.go",
  49. "reportgraph.go",
  50. "scene.go",
  51. "script.go",
  52. "tree.go",
  53. "user.go",
  54. "wechat.go",
  55. ],
  56. importpath = "go-common/app/admin/ep/melloi/dao",
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:public"],
  59. deps = [
  60. "//app/admin/ep/melloi/conf:go_default_library",
  61. "//app/admin/ep/melloi/model:go_default_library",
  62. "//library/cache/memcache:go_default_library",
  63. "//library/database/orm:go_default_library",
  64. "//library/ecode:go_default_library",
  65. "//library/log:go_default_library",
  66. "//library/net/http/blademaster:go_default_library",
  67. "//library/stat/prom:go_default_library",
  68. "//vendor/github.com/jinzhu/gorm:go_default_library",
  69. "//vendor/github.com/pkg/errors:go_default_library",
  70. "//vendor/gopkg.in/gomail.v2:go_default_library",
  71. ],
  72. )
  73. filegroup(
  74. name = "package-srcs",
  75. srcs = glob(["**"]),
  76. tags = ["automanaged"],
  77. visibility = ["//visibility:private"],
  78. )
  79. filegroup(
  80. name = "all-srcs",
  81. srcs = [":package-srcs"],
  82. tags = ["automanaged"],
  83. visibility = ["//visibility:public"],
  84. )