BUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 = ["http_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/admin/main/up/conf:go_default_library",
  15. "//vendor/github.com/davecgh/go-spew/spew:go_default_library",
  16. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  17. ],
  18. )
  19. go_library(
  20. name = "go_default_library",
  21. srcs = [
  22. "command.go",
  23. "http.go",
  24. "http_base.go",
  25. "signup.go",
  26. "up_data.go",
  27. "up_trend.go",
  28. "upcrm.go",
  29. "upload.go",
  30. ],
  31. importmap = "go-common/app/admin/main/up/http",
  32. importpath = "go-common/app/admin/main/up/http",
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:public"],
  35. deps = [
  36. "//app/admin/main/up/conf:go_default_library",
  37. "//app/admin/main/up/dao/upcrm:go_default_library",
  38. "//app/admin/main/up/model:go_default_library",
  39. "//app/admin/main/up/model/datamodel:go_default_library",
  40. "//app/admin/main/up/model/signmodel:go_default_library",
  41. "//app/admin/main/up/model/upcrmmodel:go_default_library",
  42. "//app/admin/main/up/service:go_default_library",
  43. "//app/admin/main/up/util:go_default_library",
  44. "//library/ecode:go_default_library",
  45. "//library/log:go_default_library",
  46. "//library/net/http/blademaster:go_default_library",
  47. "//library/net/http/blademaster/middleware/permit:go_default_library",
  48. "//library/net/http/blademaster/middleware/verify:go_default_library",
  49. "//vendor/github.com/siddontang/go-mysql/mysql:go_default_library",
  50. ],
  51. )
  52. filegroup(
  53. name = "package-srcs",
  54. srcs = glob(["**"]),
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:private"],
  57. )
  58. filegroup(
  59. name = "all-srcs",
  60. srcs = [":package-srcs"],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )