BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 = ["service_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/admin/main/manager/conf:go_default_library",
  15. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  16. ],
  17. )
  18. go_library(
  19. name = "go_default_library",
  20. srcs = [
  21. "auth.go",
  22. "business.go",
  23. "department.go",
  24. "journal.go",
  25. "permit.go",
  26. "rank.go",
  27. "reason.go",
  28. "service.go",
  29. "tag.go",
  30. "user.go",
  31. ],
  32. importpath = "go-common/app/admin/main/manager/service",
  33. tags = ["automanaged"],
  34. deps = [
  35. "//app/admin/main/manager/conf:go_default_library",
  36. "//app/admin/main/manager/dao:go_default_library",
  37. "//app/admin/main/manager/model:go_default_library",
  38. "//library/ecode:go_default_library",
  39. "//library/log:go_default_library",
  40. "//library/net/http/blademaster:go_default_library",
  41. "//library/net/http/blademaster/middleware/permit:go_default_library",
  42. "//vendor/github.com/jinzhu/gorm:go_default_library",
  43. "//vendor/github.com/pkg/errors:go_default_library",
  44. ],
  45. )
  46. filegroup(
  47. name = "package-srcs",
  48. srcs = glob(["**"]),
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:private"],
  51. )
  52. filegroup(
  53. name = "all-srcs",
  54. srcs = [":package-srcs"],
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:public"],
  57. )