From 75e37c6f227204fbda236163554c34430a427b67 Mon Sep 17 00:00:00 2001 From: tx7do Date: Mon, 6 May 2024 15:58:19 +0800 Subject: [PATCH] feat: refactor, move api. --- backend/Makefile | 6 +- backend/api/BUILD.bazel | 1 - backend/{ => api}/buf.gen.yaml | 100 +++---- backend/api/buf.lock | 31 --- backend/{ => api}/buf.work.yaml | 8 +- backend/api/buf.yaml | 11 - .../go/admin/service/v1/admin_error.pb.go | 4 +- .../service/v1/admin_error.pb.validate.go | 0 .../admin/service/v1/admin_error_errors.pb.go | 0 .../gen}/go/admin/service/v1/i_admin.pb.go | 2 +- .../admin/service/v1/i_admin.pb.validate.go | 0 .../go/admin/service/v1/i_attachment.pb.go | 6 +- .../service/v1/i_attachment.pb.validate.go | 0 .../admin/service/v1/i_attachment_grpc.pb.go | 2 +- .../admin/service/v1/i_attachment_http.pb.go | 2 +- .../admin/service/v1/i_authentication.pb.go | 4 +- .../v1/i_authentication.pb.validate.go | 0 .../service/v1/i_authentication_grpc.pb.go | 2 +- .../service/v1/i_authentication_http.pb.go | 2 +- .../gen}/go/admin/service/v1/i_category.pb.go | 6 +- .../service/v1/i_category.pb.validate.go | 0 .../go/admin/service/v1/i_category_grpc.pb.go | 2 +- .../go/admin/service/v1/i_category_http.pb.go | 2 +- .../gen}/go/admin/service/v1/i_comment.pb.go | 4 +- .../admin/service/v1/i_comment.pb.validate.go | 0 .../go/admin/service/v1/i_comment_grpc.pb.go | 2 +- .../go/admin/service/v1/i_comment_http.pb.go | 2 +- .../gen}/go/admin/service/v1/i_link.pb.go | 6 +- .../go/admin/service/v1/i_link.pb.validate.go | 0 .../go/admin/service/v1/i_link_grpc.pb.go | 2 +- .../go/admin/service/v1/i_link_http.pb.go | 2 +- .../gen}/go/admin/service/v1/i_menu.pb.go | 6 +- .../go/admin/service/v1/i_menu.pb.validate.go | 0 .../go/admin/service/v1/i_menu_grpc.pb.go | 2 +- .../go/admin/service/v1/i_menu_http.pb.go | 2 +- .../gen}/go/admin/service/v1/i_photo.pb.go | 4 +- .../admin/service/v1/i_photo.pb.validate.go | 0 .../go/admin/service/v1/i_photo_grpc.pb.go | 2 +- .../go/admin/service/v1/i_photo_http.pb.go | 2 +- .../gen}/go/admin/service/v1/i_post.pb.go | 6 +- .../go/admin/service/v1/i_post.pb.validate.go | 0 .../go/admin/service/v1/i_post_grpc.pb.go | 2 +- .../go/admin/service/v1/i_post_http.pb.go | 2 +- .../gen}/go/admin/service/v1/i_system.pb.go | 4 +- .../admin/service/v1/i_system.pb.validate.go | 0 .../go/admin/service/v1/i_system_grpc.pb.go | 0 .../go/admin/service/v1/i_system_http.pb.go | 0 .../gen}/go/admin/service/v1/i_tag.pb.go | 4 +- .../go/admin/service/v1/i_tag.pb.validate.go | 0 .../gen}/go/admin/service/v1/i_tag_grpc.pb.go | 2 +- .../gen}/go/admin/service/v1/i_tag_http.pb.go | 2 +- .../gen}/go/admin/service/v1/i_user.pb.go | 4 +- .../go/admin/service/v1/i_user.pb.validate.go | 0 .../go/admin/service/v1/i_user_grpc.pb.go | 2 +- .../go/admin/service/v1/i_user_http.pb.go | 2 +- .../gen}/go/comment/service/v1/comment.pb.go | 2 +- .../comment/service/v1/comment.pb.validate.go | 0 .../go/comment/service/v1/comment_grpc.pb.go | 0 .../gen}/go/content/service/v1/category.pb.go | 4 +- .../service/v1/category.pb.validate.go | 0 .../go/content/service/v1/category_grpc.pb.go | 0 .../gen}/go/content/service/v1/link.pb.go | 4 +- .../go/content/service/v1/link.pb.validate.go | 0 .../go/content/service/v1/link_grpc.pb.go | 0 .../gen}/go/content/service/v1/menu.pb.go | 4 +- .../go/content/service/v1/menu.pb.validate.go | 0 .../go/content/service/v1/menu_grpc.pb.go | 0 .../gen}/go/content/service/v1/photo.pb.go | 4 +- .../content/service/v1/photo.pb.validate.go | 0 .../go/content/service/v1/photo_grpc.pb.go | 0 .../gen}/go/content/service/v1/post.pb.go | 4 +- .../go/content/service/v1/post.pb.validate.go | 0 .../go/content/service/v1/post_grpc.pb.go | 0 .../gen}/go/content/service/v1/tag.pb.go | 4 +- .../go/content/service/v1/tag.pb.validate.go | 0 .../gen}/go/content/service/v1/tag_grpc.pb.go | 0 .../gen}/go/file/service/v1/attachment.pb.go | 2 +- .../file/service/v1/attachment.pb.validate.go | 0 .../go/file/service/v1/attachment_grpc.pb.go | 0 .../go/front/service/v1/front_error.pb.go | 4 +- .../service/v1/front_error.pb.validate.go | 0 .../front/service/v1/front_error_errors.pb.go | 0 .../go/front/service/v1/i_attachment.pb.go | 4 +- .../service/v1/i_attachment.pb.validate.go | 0 .../front/service/v1/i_attachment_grpc.pb.go | 2 +- .../front/service/v1/i_attachment_http.pb.go | 2 +- .../front/service/v1/i_authentication.pb.go | 4 +- .../v1/i_authentication.pb.validate.go | 0 .../service/v1/i_authentication_grpc.pb.go | 2 +- .../service/v1/i_authentication_http.pb.go | 2 +- .../gen}/go/front/service/v1/i_category.pb.go | 4 +- .../service/v1/i_category.pb.validate.go | 0 .../go/front/service/v1/i_category_grpc.pb.go | 2 +- .../go/front/service/v1/i_category_http.pb.go | 2 +- .../gen}/go/front/service/v1/i_comment.pb.go | 6 +- .../front/service/v1/i_comment.pb.validate.go | 0 .../go/front/service/v1/i_comment_grpc.pb.go | 2 +- .../go/front/service/v1/i_comment_http.pb.go | 2 +- .../gen}/go/front/service/v1/i_front.pb.go | 2 +- .../front/service/v1/i_front.pb.validate.go | 0 .../gen}/go/front/service/v1/i_link.pb.go | 4 +- .../go/front/service/v1/i_link.pb.validate.go | 0 .../go/front/service/v1/i_link_grpc.pb.go | 2 +- .../go/front/service/v1/i_link_http.pb.go | 2 +- .../gen}/go/front/service/v1/i_menu.pb.go | 4 +- .../go/front/service/v1/i_menu.pb.validate.go | 0 .../go/front/service/v1/i_menu_grpc.pb.go | 2 +- .../go/front/service/v1/i_menu_http.pb.go | 2 +- .../gen}/go/front/service/v1/i_photo.pb.go | 6 +- .../front/service/v1/i_photo.pb.validate.go | 0 .../go/front/service/v1/i_photo_grpc.pb.go | 2 +- .../go/front/service/v1/i_photo_http.pb.go | 2 +- .../gen}/go/front/service/v1/i_post.pb.go | 4 +- .../go/front/service/v1/i_post.pb.validate.go | 0 .../go/front/service/v1/i_post_grpc.pb.go | 2 +- .../go/front/service/v1/i_post_http.pb.go | 2 +- .../gen}/go/front/service/v1/i_tag.pb.go | 6 +- .../go/front/service/v1/i_tag.pb.validate.go | 0 .../gen}/go/front/service/v1/i_tag_grpc.pb.go | 2 +- .../gen}/go/front/service/v1/i_tag_http.pb.go | 2 +- .../gen}/go/user/service/v1/user.pb.go | 2 +- .../go/user/service/v1/user.pb.validate.go | 0 .../gen}/go/user/service/v1/user_error.pb.go | 2 +- .../user/service/v1/user_error.pb.validate.go | 0 .../user/service/v1/user_error_errors.pb.go | 0 .../gen}/go/user/service/v1/user_grpc.pb.go | 0 .../admin/service/v1/admin_error.proto | 64 ++--- .../admin}/service/v1/buf.openapi.gen.yaml | 4 +- .../admin/service/v1/i_admin.proto | 0 .../admin/service/v1/i_attachment.proto | 102 +++---- .../admin/service/v1/i_authentication.proto | 0 .../admin/service/v1/i_category.proto | 102 +++---- .../admin/service/v1/i_comment.proto | 102 +++---- .../admin/service/v1/i_link.proto | 102 +++---- .../admin/service/v1/i_menu.proto | 100 +++---- .../admin/service/v1/i_photo.proto | 102 +++---- .../admin/service/v1/i_post.proto | 102 +++---- .../admin/service/v1/i_system.proto | 178 ++++++------ .../{ => protos}/admin/service/v1/i_tag.proto | 102 +++---- .../admin/service/v1/i_user.proto | 102 +++---- backend/api/protos/buf.lock | 33 +++ backend/api/protos/buf.yaml | 20 ++ .../comment/service/v1/comment.proto | 150 +++++----- .../content/service/v1/category.proto | 152 +++++----- .../content/service/v1/link.proto | 140 +++++----- .../content/service/v1/menu.proto | 142 +++++----- .../content/service/v1/photo.proto | 142 +++++----- .../content/service/v1/post.proto | 170 ++++++------ .../{ => protos}/content/service/v1/tag.proto | 142 +++++----- .../file/service/v1/attachment.proto | 150 +++++----- .../front}/service/v1/buf.openapi.gen.yaml | 70 ++--- .../front/service/v1/front_error.proto | 0 .../front/service/v1/i_attachment.proto | 0 .../front/service/v1/i_authentication.proto | 0 .../front/service/v1/i_category.proto | 0 .../front/service/v1/i_comment.proto | 0 .../front/service/v1/i_front.proto | 0 .../front/service/v1/i_link.proto | 0 .../front/service/v1/i_menu.proto | 0 .../front/service/v1/i_photo.proto | 0 .../front/service/v1/i_post.proto | 0 .../{ => protos}/front/service/v1/i_tag.proto | 0 .../{ => protos}/user/service/v1/user.proto | 260 +++++++++--------- .../user/service/v1/user_error.proto | 64 ++--- backend/app.mk | 8 +- .../app/admin/service/internal/data/data.go | 8 +- .../app/admin/service/internal/server/rest.go | 2 +- .../service/internal/service/attachment.go | 4 +- .../internal/service/authentication.go | 4 +- .../service/internal/service/category.go | 4 +- .../admin/service/internal/service/comment.go | 4 +- .../admin/service/internal/service/link.go | 4 +- .../admin/service/internal/service/post.go | 4 +- .../app/admin/service/internal/service/tag.go | 4 +- .../admin/service/internal/service/user.go | 4 +- .../core/service/internal/data/attachment.go | 2 +- .../core/service/internal/data/category.go | 2 +- .../app/core/service/internal/data/comment.go | 2 +- .../app/core/service/internal/data/link.go | 2 +- .../app/core/service/internal/data/post.go | 2 +- backend/app/core/service/internal/data/tag.go | 2 +- .../app/core/service/internal/data/user.go | 2 +- .../app/core/service/internal/server/grpc.go | 8 +- .../service/internal/service/attachment.go | 2 +- .../core/service/internal/service/category.go | 2 +- .../core/service/internal/service/comment.go | 2 +- .../app/core/service/internal/service/link.go | 2 +- .../app/core/service/internal/service/post.go | 2 +- .../app/core/service/internal/service/tag.go | 2 +- .../app/core/service/internal/service/user.go | 2 +- .../app/front/service/internal/data/data.go | 8 +- .../app/front/service/internal/server/rest.go | 2 +- .../service/internal/service/attachment.go | 4 +- .../internal/service/authentication.go | 4 +- .../service/internal/service/category.go | 4 +- .../front/service/internal/service/comment.go | 4 +- .../front/service/internal/service/link.go | 4 +- .../front/service/internal/service/post.go | 4 +- .../app/front/service/internal/service/tag.go | 4 +- backend/buf.lock | 2 - backend/buf.yaml | 9 - backend/buf_deps.bzl | 2 - backend/pkg/cache/user_token.go | 2 +- 203 files changed, 1654 insertions(+), 1655 deletions(-) delete mode 100644 backend/api/BUILD.bazel rename backend/{ => api}/buf.gen.yaml (85%) rename backend/{ => api}/buf.work.yaml (72%) rename backend/{gen/api => api/gen}/go/admin/service/v1/admin_error.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/admin_error.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/admin_error_errors.pb.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_admin.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_admin.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_attachment.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_attachment.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_attachment_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_attachment_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_authentication.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_authentication.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_authentication_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_authentication_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_category.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_category.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_category_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_category_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_comment.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_comment.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_comment_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_comment_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_link.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_link.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_link_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_link_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_menu.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_menu.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_menu_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_menu_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_photo.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_photo.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_photo_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_photo_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_post.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_post.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_post_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_post_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_system.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_system.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_system_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_system_http.pb.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_tag.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_tag.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_tag_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_tag_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_user.pb.go (98%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_user.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_user_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/admin/service/v1/i_user_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/comment/service/v1/comment.pb.go (99%) rename backend/{gen/api => api/gen}/go/comment/service/v1/comment.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/comment/service/v1/comment_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/category.pb.go (99%) rename backend/{gen/api => api/gen}/go/content/service/v1/category.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/category_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/link.pb.go (99%) rename backend/{gen/api => api/gen}/go/content/service/v1/link.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/link_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/menu.pb.go (99%) rename backend/{gen/api => api/gen}/go/content/service/v1/menu.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/menu_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/photo.pb.go (99%) rename backend/{gen/api => api/gen}/go/content/service/v1/photo.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/photo_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/post.pb.go (99%) rename backend/{gen/api => api/gen}/go/content/service/v1/post.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/post_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/tag.pb.go (99%) rename backend/{gen/api => api/gen}/go/content/service/v1/tag.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/content/service/v1/tag_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/file/service/v1/attachment.pb.go (99%) rename backend/{gen/api => api/gen}/go/file/service/v1/attachment.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/file/service/v1/attachment_grpc.pb.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/front_error.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/front_error.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/front_error_errors.pb.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_attachment.pb.go (98%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_attachment.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_attachment_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_attachment_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_authentication.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_authentication.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_authentication_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_authentication_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_category.pb.go (98%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_category.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_category_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_category_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_comment.pb.go (98%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_comment.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_comment_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_comment_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_front.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_front.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_link.pb.go (98%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_link.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_link_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_link_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_menu.pb.go (98%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_menu.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_menu_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_menu_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_photo.pb.go (98%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_photo.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_photo_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_photo_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_post.pb.go (98%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_post.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_post_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_post_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_tag.pb.go (98%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_tag.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_tag_grpc.pb.go (99%) rename backend/{gen/api => api/gen}/go/front/service/v1/i_tag_http.pb.go (99%) rename backend/{gen/api => api/gen}/go/user/service/v1/user.pb.go (99%) rename backend/{gen/api => api/gen}/go/user/service/v1/user.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/user/service/v1/user_error.pb.go (99%) rename backend/{gen/api => api/gen}/go/user/service/v1/user_error.pb.validate.go (100%) rename backend/{gen/api => api/gen}/go/user/service/v1/user_error_errors.pb.go (100%) rename backend/{gen/api => api/gen}/go/user/service/v1/user_grpc.pb.go (100%) rename backend/api/{ => protos}/admin/service/v1/admin_error.proto (97%) rename backend/api/{front => protos/admin}/service/v1/buf.openapi.gen.yaml (95%) rename backend/api/{ => protos}/admin/service/v1/i_admin.proto (100%) rename backend/api/{ => protos}/admin/service/v1/i_attachment.proto (96%) rename backend/api/{ => protos}/admin/service/v1/i_authentication.proto (100%) rename backend/api/{ => protos}/admin/service/v1/i_category.proto (96%) rename backend/api/{ => protos}/admin/service/v1/i_comment.proto (96%) rename backend/api/{ => protos}/admin/service/v1/i_link.proto (96%) rename backend/api/{ => protos}/admin/service/v1/i_menu.proto (96%) rename backend/api/{ => protos}/admin/service/v1/i_photo.proto (96%) rename backend/api/{ => protos}/admin/service/v1/i_post.proto (96%) rename backend/api/{ => protos}/admin/service/v1/i_system.proto (95%) rename backend/api/{ => protos}/admin/service/v1/i_tag.proto (96%) rename backend/api/{ => protos}/admin/service/v1/i_user.proto (96%) create mode 100644 backend/api/protos/buf.lock create mode 100644 backend/api/protos/buf.yaml rename backend/api/{ => protos}/comment/service/v1/comment.proto (95%) rename backend/api/{ => protos}/content/service/v1/category.proto (95%) rename backend/api/{ => protos}/content/service/v1/link.proto (95%) rename backend/api/{ => protos}/content/service/v1/menu.proto (95%) rename backend/api/{ => protos}/content/service/v1/photo.proto (95%) rename backend/api/{ => protos}/content/service/v1/post.proto (95%) rename backend/api/{ => protos}/content/service/v1/tag.proto (95%) rename backend/api/{ => protos}/file/service/v1/attachment.proto (95%) rename backend/api/{admin => protos/front}/service/v1/buf.openapi.gen.yaml (93%) rename backend/api/{ => protos}/front/service/v1/front_error.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_attachment.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_authentication.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_category.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_comment.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_front.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_link.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_menu.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_photo.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_post.proto (100%) rename backend/api/{ => protos}/front/service/v1/i_tag.proto (100%) rename backend/api/{ => protos}/user/service/v1/user.proto (96%) rename backend/api/{ => protos}/user/service/v1/user_error.proto (97%) delete mode 100644 backend/buf.lock delete mode 100644 backend/buf.yaml delete mode 100644 backend/buf_deps.bzl diff --git a/backend/Makefile b/backend/Makefile index a71311f6..998a083f 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -34,12 +34,14 @@ ent: # generate protobuf api go code api: + @cd api && \ buf generate # generate OpenAPI v3 docs. openapi: - buf generate --path api/admin/service/v1 --template api/admin/service/v1/buf.openapi.gen.yaml - buf generate --path api/front/service/v1 --template api/front/service/v1/buf.openapi.gen.yaml + @cd api && \ + buf generate --path protos/admin/service/v1 --template protos/admin/service/v1/buf.openapi.gen.yaml && \ + buf generate --path protos/front/service/v1 --template protos/front/service/v1/buf.openapi.gen.yaml # initialize develop environment init: diff --git a/backend/api/BUILD.bazel b/backend/api/BUILD.bazel deleted file mode 100644 index 8b6d61cd..00000000 --- a/backend/api/BUILD.bazel +++ /dev/null @@ -1 +0,0 @@ -# gazelle:proto_strip_import_prefix /api diff --git a/backend/buf.gen.yaml b/backend/api/buf.gen.yaml similarity index 85% rename from backend/buf.gen.yaml rename to backend/api/buf.gen.yaml index 6b00df8d..0ac15b29 100644 --- a/backend/buf.gen.yaml +++ b/backend/api/buf.gen.yaml @@ -1,50 +1,50 @@ -# 配置protoc生成规则 -version: v1 - -managed: - enabled: true - optimize_for: SPEED - - go_package_prefix: - default: kratos-cms/gen/api/go - except: - - 'buf.build/googleapis/googleapis' - - 'buf.build/envoyproxy/protoc-gen-validate' - - 'buf.build/kratos/apis' - - 'buf.build/gnostic/gnostic' - - 'buf.build/gogo/protobuf' - - 'buf.build/tx7do/pagination' - -plugins: - # 使用go插件生成go代码 - #- plugin: buf.build/protocolbuffers/go - - name: go - out: gen/api/go - opt: paths=source_relative # 使用相对路径 - - # 使用go-grpc插件生成gRPC服务代码 - #- plugin: buf.build/grpc/go - - name: go-grpc - out: gen/api/go - opt: - - paths=source_relative # 使用相对路径 - - # generate rest service code - - name: go-http - out: gen/api/go - opt: - - paths=source_relative # 使用相对路径 - - # generate kratos errors code - - name: go-errors - out: gen/api/go - opt: - - paths=source_relative # 使用相对路径 - - # generate message validator code - #- plugin: buf.build/bufbuild/validate-go - - name: validate - out: gen/api/go - opt: - - paths=source_relative # 使用相对路径 - - lang=go +# 配置protoc生成规则 +version: v1 + +managed: + enabled: true + optimize_for: SPEED + + go_package_prefix: + default: kratos-cms/api/gen/go + except: + - 'buf.build/googleapis/googleapis' + - 'buf.build/envoyproxy/protoc-gen-validate' + - 'buf.build/kratos/apis' + - 'buf.build/gnostic/gnostic' + - 'buf.build/gogo/protobuf' + - 'buf.build/tx7do/pagination' + +plugins: + # 使用go插件生成go代码 + #- plugin: buf.build/protocolbuffers/go + - name: go + out: gen/go + opt: paths=source_relative # 使用相对路径 + + # 使用go-grpc插件生成gRPC服务代码 + #- plugin: buf.build/grpc/go + - name: go-grpc + out: gen/go + opt: + - paths=source_relative # 使用相对路径 + + # generate rest service code + - name: go-http + out: gen/go + opt: + - paths=source_relative # 使用相对路径 + + # generate kratos errors code + - name: go-errors + out: gen/go + opt: + - paths=source_relative # 使用相对路径 + + # generate message validator code + #- plugin: buf.build/bufbuild/validate-go + - name: validate + out: gen/go + opt: + - paths=source_relative # 使用相对路径 + - lang=go diff --git a/backend/api/buf.lock b/backend/api/buf.lock index 14c3ec46..c91b5810 100644 --- a/backend/api/buf.lock +++ b/backend/api/buf.lock @@ -1,33 +1,2 @@ # Generated by buf. DO NOT EDIT. version: v1 -deps: - - remote: buf.build - owner: envoyproxy - repository: protoc-gen-validate - commit: ea113bc841fa448ab34bf3f9fa6cef0f - digest: shake256:8f3653779e824957a4fe3d18cdb73531f7f7ed1393848082dfe1f90026fd187da9534e759b5833f4e5487be0d34cfa7d4ff149af9a2694863773387d61d09fce - - remote: buf.build - owner: gnostic - repository: gnostic - commit: 087bc8072ce44e339f213209e4d57bf0 - digest: shake256:4689c26f0460fea84c4c277c1b9c7e7d657388c5b4116d1065f907a92100ffbea87de05bbd138a0166411361e1f6ce063b4c0c6002358d39710f3c4a8de788d5 - - remote: buf.build - owner: gogo - repository: protobuf - commit: 5461a3dfa9d941da82028ab185dc2a0e - digest: shake256:37c7c75224982038cb1abf45b481ef06716c1f806ffaa162018d0df092bd11a2a9b62c2d0dc0a2ae43beff86b6014fc0eb8c594ffd84d52ade4b08fca901eadc - - remote: buf.build - owner: googleapis - repository: googleapis - commit: 74015a8aeb8445aa9e3e1454cb54bc35 - digest: shake256:7149cf5e9955c692d381e557830555d4e93f205a0f1b8e2dfdae46d029369aa3fc1980e35df0d310f7cc3b622f93e19ad276769a283a967dd3065ddfd3a40e13 - - remote: buf.build - owner: kratos - repository: apis - commit: c2de25f14fa445a79a054214f31d17a8 - digest: shake256:91c024935d46f7966667c29e4fc933435959f93c3f0e675e1227c99db09905d44f8ec275b770da7659df5a6b18f4710da157b6d8ad760a4a95f60365b231e637 - - remote: buf.build - owner: tx7do - repository: pagination - commit: 7a9682e38b7d47d98eafd742399a16b0 - digest: shake256:c2e448ce9c66de9838cd7573fb62d562f6649661ac4029471427bd00fcf7ecb5bebdaa79dbddb5616446345eff22c1f36a46b3717e0778b3933e24dabef03c34 diff --git a/backend/buf.work.yaml b/backend/api/buf.work.yaml similarity index 72% rename from backend/buf.work.yaml rename to backend/api/buf.work.yaml index f8a436c6..89b160cf 100644 --- a/backend/buf.work.yaml +++ b/backend/api/buf.work.yaml @@ -1,4 +1,4 @@ -version: v1 - -directories: - - api \ No newline at end of file +version: v1 + +directories: + - protos \ No newline at end of file diff --git a/backend/api/buf.yaml b/backend/api/buf.yaml index ba2a0b57..e98a7915 100644 --- a/backend/api/buf.yaml +++ b/backend/api/buf.yaml @@ -1,16 +1,5 @@ version: v1 -build: - excludes: [third_party] - -deps: - - 'buf.build/googleapis/googleapis' - - 'buf.build/envoyproxy/protoc-gen-validate' - - 'buf.build/kratos/apis' - - 'buf.build/gnostic/gnostic' - - 'buf.build/gogo/protobuf' - - 'buf.build/tx7do/pagination' - breaking: use: - FILE diff --git a/backend/gen/api/go/admin/service/v1/admin_error.pb.go b/backend/api/gen/go/admin/service/v1/admin_error.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/admin_error.pb.go rename to backend/api/gen/go/admin/service/v1/admin_error.pb.go index 80651420..5bfa6e4f 100644 --- a/backend/gen/api/go/admin/service/v1/admin_error.pb.go +++ b/backend/api/gen/go/admin/service/v1/admin_error.pb.go @@ -162,8 +162,8 @@ var file_admin_service_v1_admin_error_proto_rawDesc = []byte{ 0xa0, 0x45, 0xf4, 0x03, 0x42, 0xbb, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, + 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x64, diff --git a/backend/gen/api/go/admin/service/v1/admin_error.pb.validate.go b/backend/api/gen/go/admin/service/v1/admin_error.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/admin_error.pb.validate.go rename to backend/api/gen/go/admin/service/v1/admin_error.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/admin_error_errors.pb.go b/backend/api/gen/go/admin/service/v1/admin_error_errors.pb.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/admin_error_errors.pb.go rename to backend/api/gen/go/admin/service/v1/admin_error_errors.pb.go diff --git a/backend/gen/api/go/admin/service/v1/i_admin.pb.go b/backend/api/gen/go/admin/service/v1/i_admin.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_admin.pb.go rename to backend/api/gen/go/admin/service/v1/i_admin.pb.go index 4b80a67b..8cc05232 100644 --- a/backend/gen/api/go/admin/service/v1/i_admin.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_admin.pb.go @@ -72,7 +72,7 @@ var file_admin_service_v1_i_admin_proto_rawDesc = []byte{ 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x49, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, - 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, diff --git a/backend/gen/api/go/admin/service/v1/i_admin.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_admin.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_admin.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_admin.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_attachment.pb.go b/backend/api/gen/go/admin/service/v1/i_attachment.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_attachment.pb.go rename to backend/api/gen/go/admin/service/v1/i_attachment.pb.go index 41a35ae1..6ce71bae 100644 --- a/backend/gen/api/go/admin/service/v1/i_attachment.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_attachment.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/file/service/v1" + v11 "kratos-cms/api/gen/go/file/service/v1" reflect "reflect" ) @@ -84,8 +84,8 @@ var file_admin_service_v1_i_attachment_proto_rawDesc = []byte{ 0x7d, 0x42, 0xbc, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x49, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, - 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, + 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, diff --git a/backend/gen/api/go/admin/service/v1/i_attachment.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_attachment.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_attachment.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_attachment.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_attachment_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_attachment_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_attachment_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_attachment_grpc.pb.go index 6fc9fb2c..99dd3ae9 100644 --- a/backend/gen/api/go/admin/service/v1/i_attachment_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_attachment_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/file/service/v1" + v11 "kratos-cms/api/gen/go/file/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_attachment_http.pb.go b/backend/api/gen/go/admin/service/v1/i_attachment_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_attachment_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_attachment_http.pb.go index 3b1602e9..a2c33ed5 100644 --- a/backend/gen/api/go/admin/service/v1/i_attachment_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_attachment_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/file/service/v1" + v11 "kratos-cms/api/gen/go/file/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_authentication.pb.go b/backend/api/gen/go/admin/service/v1/i_authentication.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_authentication.pb.go rename to backend/api/gen/go/admin/service/v1/i_authentication.pb.go index 0eefe3a5..18a8b87f 100644 --- a/backend/gen/api/go/admin/service/v1/i_authentication.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_authentication.pb.go @@ -12,7 +12,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/user/service/v1" reflect "reflect" sync "sync" ) @@ -744,7 +744,7 @@ var file_admin_service_v1_i_authentication_proto_rawDesc = []byte{ 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x49, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, - 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, + 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, diff --git a/backend/gen/api/go/admin/service/v1/i_authentication.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_authentication.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_authentication.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_authentication.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_authentication_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_authentication_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_authentication_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_authentication_grpc.pb.go index 0e300667..d135c6a7 100644 --- a/backend/gen/api/go/admin/service/v1/i_authentication_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_authentication_grpc.pb.go @@ -12,7 +12,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/user/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_authentication_http.pb.go b/backend/api/gen/go/admin/service/v1/i_authentication_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_authentication_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_authentication_http.pb.go index 7a568010..af302a94 100644 --- a/backend/gen/api/go/admin/service/v1/i_authentication_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_authentication_http.pb.go @@ -11,7 +11,7 @@ import ( http "github.com/go-kratos/kratos/v2/transport/http" binding "github.com/go-kratos/kratos/v2/transport/http/binding" emptypb "google.golang.org/protobuf/types/known/emptypb" - v1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/user/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_category.pb.go b/backend/api/gen/go/admin/service/v1/i_category.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_category.pb.go rename to backend/api/gen/go/admin/service/v1/i_category.pb.go index bd9b38d4..9c9c5912 100644 --- a/backend/gen/api/go/admin/service/v1/i_category.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_category.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -83,8 +83,8 @@ var file_admin_service_v1_i_category_proto_rawDesc = []byte{ 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xba, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x49, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, + 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x64, diff --git a/backend/gen/api/go/admin/service/v1/i_category.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_category.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_category.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_category.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_category_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_category_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_category_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_category_grpc.pb.go index 796e9c7d..675ace21 100644 --- a/backend/gen/api/go/admin/service/v1/i_category_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_category_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_category_http.pb.go b/backend/api/gen/go/admin/service/v1/i_category_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_category_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_category_http.pb.go index 798d4d45..44d26370 100644 --- a/backend/gen/api/go/admin/service/v1/i_category_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_category_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_comment.pb.go b/backend/api/gen/go/admin/service/v1/i_comment.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_comment.pb.go rename to backend/api/gen/go/admin/service/v1/i_comment.pb.go index 36e3b7ee..aeac9b4b 100644 --- a/backend/gen/api/go/admin/service/v1/i_comment.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_comment.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/comment/service/v1" + v11 "kratos-cms/api/gen/go/comment/service/v1" reflect "reflect" ) @@ -82,7 +82,7 @@ var file_admin_service_v1_i_comment_proto_rawDesc = []byte{ 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x49, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, - 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, diff --git a/backend/gen/api/go/admin/service/v1/i_comment.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_comment.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_comment.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_comment.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_comment_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_comment_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_comment_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_comment_grpc.pb.go index 30ab7efa..9b8a1ff2 100644 --- a/backend/gen/api/go/admin/service/v1/i_comment_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_comment_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/comment/service/v1" + v11 "kratos-cms/api/gen/go/comment/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_comment_http.pb.go b/backend/api/gen/go/admin/service/v1/i_comment_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_comment_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_comment_http.pb.go index d1d3c5f6..69f7eaa1 100644 --- a/backend/gen/api/go/admin/service/v1/i_comment_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_comment_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/comment/service/v1" + v11 "kratos-cms/api/gen/go/comment/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_link.pb.go b/backend/api/gen/go/admin/service/v1/i_link.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_link.pb.go rename to backend/api/gen/go/admin/service/v1/i_link.pb.go index 9399fc9a..aa67b283 100644 --- a/backend/gen/api/go/admin/service/v1/i_link.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_link.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -77,8 +77,8 @@ var file_admin_service_v1_i_link_proto_rawDesc = []byte{ 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xb6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, - 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, + 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, diff --git a/backend/gen/api/go/admin/service/v1/i_link.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_link.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_link.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_link.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_link_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_link_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_link_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_link_grpc.pb.go index c81490d7..045035bd 100644 --- a/backend/gen/api/go/admin/service/v1/i_link_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_link_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_link_http.pb.go b/backend/api/gen/go/admin/service/v1/i_link_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_link_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_link_http.pb.go index 54a052ff..59061dca 100644 --- a/backend/gen/api/go/admin/service/v1/i_link_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_link_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_menu.pb.go b/backend/api/gen/go/admin/service/v1/i_menu.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_menu.pb.go rename to backend/api/gen/go/admin/service/v1/i_menu.pb.go index 806fad3f..dfd128e3 100644 --- a/backend/gen/api/go/admin/service/v1/i_menu.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_menu.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -77,8 +77,8 @@ var file_admin_service_v1_i_menu_proto_rawDesc = []byte{ 0x75, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xb6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, - 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, + 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, diff --git a/backend/gen/api/go/admin/service/v1/i_menu.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_menu.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_menu.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_menu.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_menu_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_menu_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_menu_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_menu_grpc.pb.go index a80b07de..2f1f8d55 100644 --- a/backend/gen/api/go/admin/service/v1/i_menu_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_menu_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_menu_http.pb.go b/backend/api/gen/go/admin/service/v1/i_menu_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_menu_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_menu_http.pb.go index 99e9705b..3a148cd1 100644 --- a/backend/gen/api/go/admin/service/v1/i_menu_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_menu_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_photo.pb.go b/backend/api/gen/go/admin/service/v1/i_photo.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_photo.pb.go rename to backend/api/gen/go/admin/service/v1/i_photo.pb.go index b31b9cbd..10543f59 100644 --- a/backend/gen/api/go/admin/service/v1/i_photo.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_photo.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -79,7 +79,7 @@ var file_admin_service_v1_i_photo_proto_rawDesc = []byte{ 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x49, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, - 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, + 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, diff --git a/backend/gen/api/go/admin/service/v1/i_photo.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_photo.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_photo.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_photo.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_photo_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_photo_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_photo_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_photo_grpc.pb.go index b54cf18f..d4c159f6 100644 --- a/backend/gen/api/go/admin/service/v1/i_photo_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_photo_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_photo_http.pb.go b/backend/api/gen/go/admin/service/v1/i_photo_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_photo_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_photo_http.pb.go index 6e7d5407..8514cd33 100644 --- a/backend/gen/api/go/admin/service/v1/i_photo_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_photo_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_post.pb.go b/backend/api/gen/go/admin/service/v1/i_post.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_post.pb.go rename to backend/api/gen/go/admin/service/v1/i_post.pb.go index 8467d00d..8b4c71d6 100644 --- a/backend/gen/api/go/admin/service/v1/i_post.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_post.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -77,8 +77,8 @@ var file_admin_service_v1_i_post_proto_rawDesc = []byte{ 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xb6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, - 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, + 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, diff --git a/backend/gen/api/go/admin/service/v1/i_post.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_post.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_post.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_post.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_post_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_post_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_post_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_post_grpc.pb.go index 71a8bc23..c98474dc 100644 --- a/backend/gen/api/go/admin/service/v1/i_post_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_post_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_post_http.pb.go b/backend/api/gen/go/admin/service/v1/i_post_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_post_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_post_http.pb.go index 26b48562..48263f7f 100644 --- a/backend/gen/api/go/admin/service/v1/i_post_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_post_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_system.pb.go b/backend/api/gen/go/admin/service/v1/i_system.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_system.pb.go rename to backend/api/gen/go/admin/service/v1/i_system.pb.go index 790c6bd9..a758fc6c 100644 --- a/backend/gen/api/go/admin/service/v1/i_system.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_system.pb.go @@ -490,8 +490,8 @@ var file_admin_service_v1_i_system_proto_rawDesc = []byte{ 0x65, 0x6d, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xb8, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x49, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, + 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x64, diff --git a/backend/gen/api/go/admin/service/v1/i_system.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_system.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_system.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_system.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_system_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_system_grpc.pb.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_system_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_system_grpc.pb.go diff --git a/backend/gen/api/go/admin/service/v1/i_system_http.pb.go b/backend/api/gen/go/admin/service/v1/i_system_http.pb.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_system_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_system_http.pb.go diff --git a/backend/gen/api/go/admin/service/v1/i_tag.pb.go b/backend/api/gen/go/admin/service/v1/i_tag.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_tag.pb.go rename to backend/api/gen/go/admin/service/v1/i_tag.pb.go index 7a4e17c0..31d86a81 100644 --- a/backend/gen/api/go/admin/service/v1/i_tag.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_tag.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -76,7 +76,7 @@ var file_admin_service_v1_i_tag_proto_rawDesc = []byte{ 0x7d, 0x42, 0xb5, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x49, 0x54, 0x61, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, - 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, + 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, diff --git a/backend/gen/api/go/admin/service/v1/i_tag.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_tag.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_tag.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_tag.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_tag_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_tag_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_tag_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_tag_grpc.pb.go index b6ef2b9e..ebfac264 100644 --- a/backend/gen/api/go/admin/service/v1/i_tag_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_tag_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_tag_http.pb.go b/backend/api/gen/go/admin/service/v1/i_tag_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_tag_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_tag_http.pb.go index ba95814e..c8ce0dec 100644 --- a/backend/gen/api/go/admin/service/v1/i_tag_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_tag_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_user.pb.go b/backend/api/gen/go/admin/service/v1/i_user.pb.go similarity index 98% rename from backend/gen/api/go/admin/service/v1/i_user.pb.go rename to backend/api/gen/go/admin/service/v1/i_user.pb.go index 1581548d..a732b576 100644 --- a/backend/gen/api/go/admin/service/v1/i_user.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_user.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/user/service/v1" + v11 "kratos-cms/api/gen/go/user/service/v1" reflect "reflect" ) @@ -76,7 +76,7 @@ var file_admin_service_v1_i_user_proto_rawDesc = []byte{ 0xb6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, - 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, + 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, diff --git a/backend/gen/api/go/admin/service/v1/i_user.pb.validate.go b/backend/api/gen/go/admin/service/v1/i_user.pb.validate.go similarity index 100% rename from backend/gen/api/go/admin/service/v1/i_user.pb.validate.go rename to backend/api/gen/go/admin/service/v1/i_user.pb.validate.go diff --git a/backend/gen/api/go/admin/service/v1/i_user_grpc.pb.go b/backend/api/gen/go/admin/service/v1/i_user_grpc.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_user_grpc.pb.go rename to backend/api/gen/go/admin/service/v1/i_user_grpc.pb.go index 35d6be77..149b5bff 100644 --- a/backend/gen/api/go/admin/service/v1/i_user_grpc.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_user_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/user/service/v1" + v11 "kratos-cms/api/gen/go/user/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/admin/service/v1/i_user_http.pb.go b/backend/api/gen/go/admin/service/v1/i_user_http.pb.go similarity index 99% rename from backend/gen/api/go/admin/service/v1/i_user_http.pb.go rename to backend/api/gen/go/admin/service/v1/i_user_http.pb.go index 949d9415..1bbd099e 100644 --- a/backend/gen/api/go/admin/service/v1/i_user_http.pb.go +++ b/backend/api/gen/go/admin/service/v1/i_user_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/user/service/v1" + v11 "kratos-cms/api/gen/go/user/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/comment/service/v1/comment.pb.go b/backend/api/gen/go/comment/service/v1/comment.pb.go similarity index 99% rename from backend/gen/api/go/comment/service/v1/comment.pb.go rename to backend/api/gen/go/comment/service/v1/comment.pb.go index e8b0ac8b..a4f1e1f0 100644 --- a/backend/gen/api/go/comment/service/v1/comment.pb.go +++ b/backend/api/gen/go/comment/service/v1/comment.pb.go @@ -579,7 +579,7 @@ var file_comment_service_v1_comment_proto_rawDesc = []byte{ 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, - 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, diff --git a/backend/gen/api/go/comment/service/v1/comment.pb.validate.go b/backend/api/gen/go/comment/service/v1/comment.pb.validate.go similarity index 100% rename from backend/gen/api/go/comment/service/v1/comment.pb.validate.go rename to backend/api/gen/go/comment/service/v1/comment.pb.validate.go diff --git a/backend/gen/api/go/comment/service/v1/comment_grpc.pb.go b/backend/api/gen/go/comment/service/v1/comment_grpc.pb.go similarity index 100% rename from backend/gen/api/go/comment/service/v1/comment_grpc.pb.go rename to backend/api/gen/go/comment/service/v1/comment_grpc.pb.go diff --git a/backend/gen/api/go/content/service/v1/category.pb.go b/backend/api/gen/go/content/service/v1/category.pb.go similarity index 99% rename from backend/gen/api/go/content/service/v1/category.pb.go rename to backend/api/gen/go/content/service/v1/category.pb.go index 8ee8257c..b60d0a56 100644 --- a/backend/gen/api/go/content/service/v1/category.pb.go +++ b/backend/api/gen/go/content/service/v1/category.pb.go @@ -561,8 +561,8 @@ var file_content_service_v1_category_proto_rawDesc = []byte{ 0x79, 0x22, 0x00, 0x42, 0xc5, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, + 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, diff --git a/backend/gen/api/go/content/service/v1/category.pb.validate.go b/backend/api/gen/go/content/service/v1/category.pb.validate.go similarity index 100% rename from backend/gen/api/go/content/service/v1/category.pb.validate.go rename to backend/api/gen/go/content/service/v1/category.pb.validate.go diff --git a/backend/gen/api/go/content/service/v1/category_grpc.pb.go b/backend/api/gen/go/content/service/v1/category_grpc.pb.go similarity index 100% rename from backend/gen/api/go/content/service/v1/category_grpc.pb.go rename to backend/api/gen/go/content/service/v1/category_grpc.pb.go diff --git a/backend/gen/api/go/content/service/v1/link.pb.go b/backend/api/gen/go/content/service/v1/link.pb.go similarity index 99% rename from backend/gen/api/go/content/service/v1/link.pb.go rename to backend/api/gen/go/content/service/v1/link.pb.go index bac0b627..4c6377d7 100644 --- a/backend/gen/api/go/content/service/v1/link.pb.go +++ b/backend/api/gen/go/content/service/v1/link.pb.go @@ -504,8 +504,8 @@ var file_content_service_v1_link_proto_rawDesc = []byte{ 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0xc1, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x50, 0x01, 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, diff --git a/backend/gen/api/go/content/service/v1/link.pb.validate.go b/backend/api/gen/go/content/service/v1/link.pb.validate.go similarity index 100% rename from backend/gen/api/go/content/service/v1/link.pb.validate.go rename to backend/api/gen/go/content/service/v1/link.pb.validate.go diff --git a/backend/gen/api/go/content/service/v1/link_grpc.pb.go b/backend/api/gen/go/content/service/v1/link_grpc.pb.go similarity index 100% rename from backend/gen/api/go/content/service/v1/link_grpc.pb.go rename to backend/api/gen/go/content/service/v1/link_grpc.pb.go diff --git a/backend/gen/api/go/content/service/v1/menu.pb.go b/backend/api/gen/go/content/service/v1/menu.pb.go similarity index 99% rename from backend/gen/api/go/content/service/v1/menu.pb.go rename to backend/api/gen/go/content/service/v1/menu.pb.go index 4276a3e8..f1e57dda 100644 --- a/backend/gen/api/go/content/service/v1/menu.pb.go +++ b/backend/api/gen/go/content/service/v1/menu.pb.go @@ -514,8 +514,8 @@ var file_content_service_v1_menu_proto_rawDesc = []byte{ 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0xc1, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x01, 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, diff --git a/backend/gen/api/go/content/service/v1/menu.pb.validate.go b/backend/api/gen/go/content/service/v1/menu.pb.validate.go similarity index 100% rename from backend/gen/api/go/content/service/v1/menu.pb.validate.go rename to backend/api/gen/go/content/service/v1/menu.pb.validate.go diff --git a/backend/gen/api/go/content/service/v1/menu_grpc.pb.go b/backend/api/gen/go/content/service/v1/menu_grpc.pb.go similarity index 100% rename from backend/gen/api/go/content/service/v1/menu_grpc.pb.go rename to backend/api/gen/go/content/service/v1/menu_grpc.pb.go diff --git a/backend/gen/api/go/content/service/v1/photo.pb.go b/backend/api/gen/go/content/service/v1/photo.pb.go similarity index 99% rename from backend/gen/api/go/content/service/v1/photo.pb.go rename to backend/api/gen/go/content/service/v1/photo.pb.go index e54ba49a..771aa0be 100644 --- a/backend/gen/api/go/content/service/v1/photo.pb.go +++ b/backend/api/gen/go/content/service/v1/photo.pb.go @@ -517,8 +517,8 @@ var file_content_service_v1_photo_proto_rawDesc = []byte{ 0x74, 0x79, 0x22, 0x00, 0x42, 0xc2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x6b, - 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, + 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x43, diff --git a/backend/gen/api/go/content/service/v1/photo.pb.validate.go b/backend/api/gen/go/content/service/v1/photo.pb.validate.go similarity index 100% rename from backend/gen/api/go/content/service/v1/photo.pb.validate.go rename to backend/api/gen/go/content/service/v1/photo.pb.validate.go diff --git a/backend/gen/api/go/content/service/v1/photo_grpc.pb.go b/backend/api/gen/go/content/service/v1/photo_grpc.pb.go similarity index 100% rename from backend/gen/api/go/content/service/v1/photo_grpc.pb.go rename to backend/api/gen/go/content/service/v1/photo_grpc.pb.go diff --git a/backend/gen/api/go/content/service/v1/post.pb.go b/backend/api/gen/go/content/service/v1/post.pb.go similarity index 99% rename from backend/gen/api/go/content/service/v1/post.pb.go rename to backend/api/gen/go/content/service/v1/post.pb.go index 8c74ad0c..03dddb6d 100644 --- a/backend/gen/api/go/content/service/v1/post.pb.go +++ b/backend/api/gen/go/content/service/v1/post.pb.go @@ -674,8 +674,8 @@ var file_content_service_v1_post_proto_rawDesc = []byte{ 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0xc1, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, + 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, diff --git a/backend/gen/api/go/content/service/v1/post.pb.validate.go b/backend/api/gen/go/content/service/v1/post.pb.validate.go similarity index 100% rename from backend/gen/api/go/content/service/v1/post.pb.validate.go rename to backend/api/gen/go/content/service/v1/post.pb.validate.go diff --git a/backend/gen/api/go/content/service/v1/post_grpc.pb.go b/backend/api/gen/go/content/service/v1/post_grpc.pb.go similarity index 100% rename from backend/gen/api/go/content/service/v1/post_grpc.pb.go rename to backend/api/gen/go/content/service/v1/post_grpc.pb.go diff --git a/backend/gen/api/go/content/service/v1/tag.pb.go b/backend/api/gen/go/content/service/v1/tag.pb.go similarity index 99% rename from backend/gen/api/go/content/service/v1/tag.pb.go rename to backend/api/gen/go/content/service/v1/tag.pb.go index 1be4e56a..a7bba620 100644 --- a/backend/gen/api/go/content/service/v1/tag.pb.go +++ b/backend/api/gen/go/content/service/v1/tag.pb.go @@ -514,8 +514,8 @@ var file_content_service_v1_tag_proto_rawDesc = []byte{ 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0xc0, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x54, 0x61, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x50, 0x01, 0x5a, 0x32, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, diff --git a/backend/gen/api/go/content/service/v1/tag.pb.validate.go b/backend/api/gen/go/content/service/v1/tag.pb.validate.go similarity index 100% rename from backend/gen/api/go/content/service/v1/tag.pb.validate.go rename to backend/api/gen/go/content/service/v1/tag.pb.validate.go diff --git a/backend/gen/api/go/content/service/v1/tag_grpc.pb.go b/backend/api/gen/go/content/service/v1/tag_grpc.pb.go similarity index 100% rename from backend/gen/api/go/content/service/v1/tag_grpc.pb.go rename to backend/api/gen/go/content/service/v1/tag_grpc.pb.go diff --git a/backend/gen/api/go/file/service/v1/attachment.pb.go b/backend/api/gen/go/file/service/v1/attachment.pb.go similarity index 99% rename from backend/gen/api/go/file/service/v1/attachment.pb.go rename to backend/api/gen/go/file/service/v1/attachment.pb.go index 299f100c..84d2d359 100644 --- a/backend/gen/api/go/file/service/v1/attachment.pb.go +++ b/backend/api/gen/go/file/service/v1/attachment.pb.go @@ -566,7 +566,7 @@ var file_file_service_v1_attachment_proto_rawDesc = []byte{ 0x42, 0xb5, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x6b, 0x72, 0x61, - 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x0f, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, diff --git a/backend/gen/api/go/file/service/v1/attachment.pb.validate.go b/backend/api/gen/go/file/service/v1/attachment.pb.validate.go similarity index 100% rename from backend/gen/api/go/file/service/v1/attachment.pb.validate.go rename to backend/api/gen/go/file/service/v1/attachment.pb.validate.go diff --git a/backend/gen/api/go/file/service/v1/attachment_grpc.pb.go b/backend/api/gen/go/file/service/v1/attachment_grpc.pb.go similarity index 100% rename from backend/gen/api/go/file/service/v1/attachment_grpc.pb.go rename to backend/api/gen/go/file/service/v1/attachment_grpc.pb.go diff --git a/backend/gen/api/go/front/service/v1/front_error.pb.go b/backend/api/gen/go/front/service/v1/front_error.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/front_error.pb.go rename to backend/api/gen/go/front/service/v1/front_error.pb.go index cb925d29..257c42ee 100644 --- a/backend/gen/api/go/front/service/v1/front_error.pb.go +++ b/backend/api/gen/go/front/service/v1/front_error.pb.go @@ -162,8 +162,8 @@ var file_front_service_v1_front_error_proto_rawDesc = []byte{ 0xa0, 0x45, 0xf4, 0x03, 0x42, 0xbb, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, + 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x46, 0x72, diff --git a/backend/gen/api/go/front/service/v1/front_error.pb.validate.go b/backend/api/gen/go/front/service/v1/front_error.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/front_error.pb.validate.go rename to backend/api/gen/go/front/service/v1/front_error.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/front_error_errors.pb.go b/backend/api/gen/go/front/service/v1/front_error_errors.pb.go similarity index 100% rename from backend/gen/api/go/front/service/v1/front_error_errors.pb.go rename to backend/api/gen/go/front/service/v1/front_error_errors.pb.go diff --git a/backend/gen/api/go/front/service/v1/i_attachment.pb.go b/backend/api/gen/go/front/service/v1/i_attachment.pb.go similarity index 98% rename from backend/gen/api/go/front/service/v1/i_attachment.pb.go rename to backend/api/gen/go/front/service/v1/i_attachment.pb.go index 2b19a767..9b072d75 100644 --- a/backend/gen/api/go/front/service/v1/i_attachment.pb.go +++ b/backend/api/gen/go/front/service/v1/i_attachment.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/file/service/v1" + v11 "kratos-cms/api/gen/go/file/service/v1" reflect "reflect" ) @@ -84,7 +84,7 @@ var file_front_service_v1_i_attachment_proto_rawDesc = []byte{ 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x49, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, - 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, + 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, diff --git a/backend/gen/api/go/front/service/v1/i_attachment.pb.validate.go b/backend/api/gen/go/front/service/v1/i_attachment.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_attachment.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_attachment.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_attachment_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_attachment_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_attachment_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_attachment_grpc.pb.go index 0094fd78..b7ea5b8d 100644 --- a/backend/gen/api/go/front/service/v1/i_attachment_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_attachment_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/file/service/v1" + v11 "kratos-cms/api/gen/go/file/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_attachment_http.pb.go b/backend/api/gen/go/front/service/v1/i_attachment_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_attachment_http.pb.go rename to backend/api/gen/go/front/service/v1/i_attachment_http.pb.go index 3c055986..f33851b9 100644 --- a/backend/gen/api/go/front/service/v1/i_attachment_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_attachment_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/file/service/v1" + v11 "kratos-cms/api/gen/go/file/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_authentication.pb.go b/backend/api/gen/go/front/service/v1/i_authentication.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_authentication.pb.go rename to backend/api/gen/go/front/service/v1/i_authentication.pb.go index 24b10464..2727573b 100644 --- a/backend/gen/api/go/front/service/v1/i_authentication.pb.go +++ b/backend/api/gen/go/front/service/v1/i_authentication.pb.go @@ -12,7 +12,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/user/service/v1" reflect "reflect" sync "sync" ) @@ -744,7 +744,7 @@ var file_front_service_v1_i_authentication_proto_rawDesc = []byte{ 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x49, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, - 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, diff --git a/backend/gen/api/go/front/service/v1/i_authentication.pb.validate.go b/backend/api/gen/go/front/service/v1/i_authentication.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_authentication.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_authentication.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_authentication_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_authentication_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_authentication_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_authentication_grpc.pb.go index dba064fa..2cde9921 100644 --- a/backend/gen/api/go/front/service/v1/i_authentication_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_authentication_grpc.pb.go @@ -12,7 +12,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/user/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_authentication_http.pb.go b/backend/api/gen/go/front/service/v1/i_authentication_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_authentication_http.pb.go rename to backend/api/gen/go/front/service/v1/i_authentication_http.pb.go index cb654978..3eb9c679 100644 --- a/backend/gen/api/go/front/service/v1/i_authentication_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_authentication_http.pb.go @@ -11,7 +11,7 @@ import ( http "github.com/go-kratos/kratos/v2/transport/http" binding "github.com/go-kratos/kratos/v2/transport/http/binding" emptypb "google.golang.org/protobuf/types/known/emptypb" - v1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/user/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_category.pb.go b/backend/api/gen/go/front/service/v1/i_category.pb.go similarity index 98% rename from backend/gen/api/go/front/service/v1/i_category.pb.go rename to backend/api/gen/go/front/service/v1/i_category.pb.go index 727cbb67..536d905b 100644 --- a/backend/gen/api/go/front/service/v1/i_category.pb.go +++ b/backend/api/gen/go/front/service/v1/i_category.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -83,7 +83,7 @@ var file_front_service_v1_i_category_proto_rawDesc = []byte{ 0x42, 0xba, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x49, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, - 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, diff --git a/backend/gen/api/go/front/service/v1/i_category.pb.validate.go b/backend/api/gen/go/front/service/v1/i_category.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_category.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_category.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_category_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_category_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_category_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_category_grpc.pb.go index e07b4945..d17f11aa 100644 --- a/backend/gen/api/go/front/service/v1/i_category_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_category_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_category_http.pb.go b/backend/api/gen/go/front/service/v1/i_category_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_category_http.pb.go rename to backend/api/gen/go/front/service/v1/i_category_http.pb.go index ee9b6576..b9341cae 100644 --- a/backend/gen/api/go/front/service/v1/i_category_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_category_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_comment.pb.go b/backend/api/gen/go/front/service/v1/i_comment.pb.go similarity index 98% rename from backend/gen/api/go/front/service/v1/i_comment.pb.go rename to backend/api/gen/go/front/service/v1/i_comment.pb.go index a3a51294..f5b8d219 100644 --- a/backend/gen/api/go/front/service/v1/i_comment.pb.go +++ b/backend/api/gen/go/front/service/v1/i_comment.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/comment/service/v1" + v11 "kratos-cms/api/gen/go/comment/service/v1" reflect "reflect" ) @@ -81,8 +81,8 @@ var file_front_service_v1_i_comment_proto_rawDesc = []byte{ 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xb9, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x49, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, - 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, + 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, diff --git a/backend/gen/api/go/front/service/v1/i_comment.pb.validate.go b/backend/api/gen/go/front/service/v1/i_comment.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_comment.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_comment.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_comment_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_comment_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_comment_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_comment_grpc.pb.go index 86b1b46a..f4c5df50 100644 --- a/backend/gen/api/go/front/service/v1/i_comment_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_comment_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/comment/service/v1" + v11 "kratos-cms/api/gen/go/comment/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_comment_http.pb.go b/backend/api/gen/go/front/service/v1/i_comment_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_comment_http.pb.go rename to backend/api/gen/go/front/service/v1/i_comment_http.pb.go index ca72b391..3a4ba134 100644 --- a/backend/gen/api/go/front/service/v1/i_comment_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_comment_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/comment/service/v1" + v11 "kratos-cms/api/gen/go/comment/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_front.pb.go b/backend/api/gen/go/front/service/v1/i_front.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_front.pb.go rename to backend/api/gen/go/front/service/v1/i_front.pb.go index 1603fe58..7bc725e2 100644 --- a/backend/gen/api/go/front/service/v1/i_front.pb.go +++ b/backend/api/gen/go/front/service/v1/i_front.pb.go @@ -71,7 +71,7 @@ var file_front_service_v1_i_front_proto_rawDesc = []byte{ 0x00, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x49, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, - 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, + 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, diff --git a/backend/gen/api/go/front/service/v1/i_front.pb.validate.go b/backend/api/gen/go/front/service/v1/i_front.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_front.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_front.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_link.pb.go b/backend/api/gen/go/front/service/v1/i_link.pb.go similarity index 98% rename from backend/gen/api/go/front/service/v1/i_link.pb.go rename to backend/api/gen/go/front/service/v1/i_link.pb.go index 1cac7509..72f66ba1 100644 --- a/backend/gen/api/go/front/service/v1/i_link.pb.go +++ b/backend/api/gen/go/front/service/v1/i_link.pb.go @@ -12,7 +12,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -74,7 +74,7 @@ var file_front_service_v1_i_link_proto_rawDesc = []byte{ 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, - 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, + 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, diff --git a/backend/gen/api/go/front/service/v1/i_link.pb.validate.go b/backend/api/gen/go/front/service/v1/i_link.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_link.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_link.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_link_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_link_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_link_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_link_grpc.pb.go index d556554a..88b7b79d 100644 --- a/backend/gen/api/go/front/service/v1/i_link_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_link_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_link_http.pb.go b/backend/api/gen/go/front/service/v1/i_link_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_link_http.pb.go rename to backend/api/gen/go/front/service/v1/i_link_http.pb.go index add24412..bd7fdf5a 100644 --- a/backend/gen/api/go/front/service/v1/i_link_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_link_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_menu.pb.go b/backend/api/gen/go/front/service/v1/i_menu.pb.go similarity index 98% rename from backend/gen/api/go/front/service/v1/i_menu.pb.go rename to backend/api/gen/go/front/service/v1/i_menu.pb.go index 862f46d6..35e8dc21 100644 --- a/backend/gen/api/go/front/service/v1/i_menu.pb.go +++ b/backend/api/gen/go/front/service/v1/i_menu.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -77,7 +77,7 @@ var file_front_service_v1_i_menu_proto_rawDesc = []byte{ 0x64, 0x7d, 0x42, 0xb6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, - 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, + 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, diff --git a/backend/gen/api/go/front/service/v1/i_menu.pb.validate.go b/backend/api/gen/go/front/service/v1/i_menu.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_menu.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_menu.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_menu_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_menu_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_menu_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_menu_grpc.pb.go index 9e421418..276f9cbf 100644 --- a/backend/gen/api/go/front/service/v1/i_menu_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_menu_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_menu_http.pb.go b/backend/api/gen/go/front/service/v1/i_menu_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_menu_http.pb.go rename to backend/api/gen/go/front/service/v1/i_menu_http.pb.go index b810002d..dc6ead40 100644 --- a/backend/gen/api/go/front/service/v1/i_menu_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_menu_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_photo.pb.go b/backend/api/gen/go/front/service/v1/i_photo.pb.go similarity index 98% rename from backend/gen/api/go/front/service/v1/i_photo.pb.go rename to backend/api/gen/go/front/service/v1/i_photo.pb.go index 4a23e61b..dac77623 100644 --- a/backend/gen/api/go/front/service/v1/i_photo.pb.go +++ b/backend/api/gen/go/front/service/v1/i_photo.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -78,8 +78,8 @@ var file_front_service_v1_i_photo_proto_rawDesc = []byte{ 0x74, 0x6f, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xb7, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x49, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, + 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x46, 0x72, diff --git a/backend/gen/api/go/front/service/v1/i_photo.pb.validate.go b/backend/api/gen/go/front/service/v1/i_photo.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_photo.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_photo.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_photo_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_photo_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_photo_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_photo_grpc.pb.go index 66590ca4..9baa713d 100644 --- a/backend/gen/api/go/front/service/v1/i_photo_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_photo_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_photo_http.pb.go b/backend/api/gen/go/front/service/v1/i_photo_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_photo_http.pb.go rename to backend/api/gen/go/front/service/v1/i_photo_http.pb.go index ee18ade0..8f9d2bb4 100644 --- a/backend/gen/api/go/front/service/v1/i_photo_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_photo_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_post.pb.go b/backend/api/gen/go/front/service/v1/i_post.pb.go similarity index 98% rename from backend/gen/api/go/front/service/v1/i_post.pb.go rename to backend/api/gen/go/front/service/v1/i_post.pb.go index 6c5956de..8bfc24c0 100644 --- a/backend/gen/api/go/front/service/v1/i_post.pb.go +++ b/backend/api/gen/go/front/service/v1/i_post.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -77,7 +77,7 @@ var file_front_service_v1_i_post_proto_rawDesc = []byte{ 0x64, 0x7d, 0x42, 0xb6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, - 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, + 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, diff --git a/backend/gen/api/go/front/service/v1/i_post.pb.validate.go b/backend/api/gen/go/front/service/v1/i_post.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_post.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_post.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_post_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_post_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_post_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_post_grpc.pb.go index 0fd4644d..b4d24e80 100644 --- a/backend/gen/api/go/front/service/v1/i_post_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_post_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_post_http.pb.go b/backend/api/gen/go/front/service/v1/i_post_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_post_http.pb.go rename to backend/api/gen/go/front/service/v1/i_post_http.pb.go index 3dc8ed43..717af165 100644 --- a/backend/gen/api/go/front/service/v1/i_post_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_post_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_tag.pb.go b/backend/api/gen/go/front/service/v1/i_tag.pb.go similarity index 98% rename from backend/gen/api/go/front/service/v1/i_tag.pb.go rename to backend/api/gen/go/front/service/v1/i_tag.pb.go index 6bcccd58..685458c8 100644 --- a/backend/gen/api/go/front/service/v1/i_tag.pb.go +++ b/backend/api/gen/go/front/service/v1/i_tag.pb.go @@ -13,7 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" reflect "reflect" ) @@ -75,8 +75,8 @@ var file_front_service_v1_i_tag_proto_rawDesc = []byte{ 0x76, 0x31, 0x2f, 0x74, 0x61, 0x67, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xb5, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x49, 0x54, 0x61, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, + 0x50, 0x01, 0x5a, 0x30, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, diff --git a/backend/gen/api/go/front/service/v1/i_tag.pb.validate.go b/backend/api/gen/go/front/service/v1/i_tag.pb.validate.go similarity index 100% rename from backend/gen/api/go/front/service/v1/i_tag.pb.validate.go rename to backend/api/gen/go/front/service/v1/i_tag.pb.validate.go diff --git a/backend/gen/api/go/front/service/v1/i_tag_grpc.pb.go b/backend/api/gen/go/front/service/v1/i_tag_grpc.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_tag_grpc.pb.go rename to backend/api/gen/go/front/service/v1/i_tag_grpc.pb.go index b8a112ae..e11db88b 100644 --- a/backend/gen/api/go/front/service/v1/i_tag_grpc.pb.go +++ b/backend/api/gen/go/front/service/v1/i_tag_grpc.pb.go @@ -13,7 +13,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/front/service/v1/i_tag_http.pb.go b/backend/api/gen/go/front/service/v1/i_tag_http.pb.go similarity index 99% rename from backend/gen/api/go/front/service/v1/i_tag_http.pb.go rename to backend/api/gen/go/front/service/v1/i_tag_http.pb.go index 8fea4a77..7fa0f588 100644 --- a/backend/gen/api/go/front/service/v1/i_tag_http.pb.go +++ b/backend/api/gen/go/front/service/v1/i_tag_http.pb.go @@ -12,7 +12,7 @@ import ( binding "github.com/go-kratos/kratos/v2/transport/http/binding" v1 "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" - v11 "kratos-cms/gen/api/go/content/service/v1" + v11 "kratos-cms/api/gen/go/content/service/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/backend/gen/api/go/user/service/v1/user.pb.go b/backend/api/gen/go/user/service/v1/user.pb.go similarity index 99% rename from backend/gen/api/go/user/service/v1/user.pb.go rename to backend/api/gen/go/user/service/v1/user.pb.go index 4c6f8234..f477d314 100644 --- a/backend/gen/api/go/user/service/v1/user.pb.go +++ b/backend/api/gen/go/user/service/v1/user.pb.go @@ -957,7 +957,7 @@ var file_user_service_v1_user_proto_rawDesc = []byte{ 0x22, 0x00, 0x42, 0xaf, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, - 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x75, + 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x55, 0x53, 0x58, 0xaa, 0x02, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, diff --git a/backend/gen/api/go/user/service/v1/user.pb.validate.go b/backend/api/gen/go/user/service/v1/user.pb.validate.go similarity index 100% rename from backend/gen/api/go/user/service/v1/user.pb.validate.go rename to backend/api/gen/go/user/service/v1/user.pb.validate.go diff --git a/backend/gen/api/go/user/service/v1/user_error.pb.go b/backend/api/gen/go/user/service/v1/user_error.pb.go similarity index 99% rename from backend/gen/api/go/user/service/v1/user_error.pb.go rename to backend/api/gen/go/user/service/v1/user_error.pb.go index 8ef07828..34dae184 100644 --- a/backend/gen/api/go/user/service/v1/user_error.pb.go +++ b/backend/api/gen/go/user/service/v1/user_error.pb.go @@ -167,7 +167,7 @@ var file_user_service_v1_user_error_proto_rawDesc = []byte{ 0xf4, 0x03, 0x42, 0xb4, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x6b, 0x72, - 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, + 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x63, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x55, 0x53, 0x58, 0xaa, 0x02, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, diff --git a/backend/gen/api/go/user/service/v1/user_error.pb.validate.go b/backend/api/gen/go/user/service/v1/user_error.pb.validate.go similarity index 100% rename from backend/gen/api/go/user/service/v1/user_error.pb.validate.go rename to backend/api/gen/go/user/service/v1/user_error.pb.validate.go diff --git a/backend/gen/api/go/user/service/v1/user_error_errors.pb.go b/backend/api/gen/go/user/service/v1/user_error_errors.pb.go similarity index 100% rename from backend/gen/api/go/user/service/v1/user_error_errors.pb.go rename to backend/api/gen/go/user/service/v1/user_error_errors.pb.go diff --git a/backend/gen/api/go/user/service/v1/user_grpc.pb.go b/backend/api/gen/go/user/service/v1/user_grpc.pb.go similarity index 100% rename from backend/gen/api/go/user/service/v1/user_grpc.pb.go rename to backend/api/gen/go/user/service/v1/user_grpc.pb.go diff --git a/backend/api/admin/service/v1/admin_error.proto b/backend/api/protos/admin/service/v1/admin_error.proto similarity index 97% rename from backend/api/admin/service/v1/admin_error.proto rename to backend/api/protos/admin/service/v1/admin_error.proto index 7fd6d336..1610f111 100644 --- a/backend/api/admin/service/v1/admin_error.proto +++ b/backend/api/protos/admin/service/v1/admin_error.proto @@ -1,32 +1,32 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "errors/errors.proto"; - -enum AdminErrorReason { - option (errors.default_code) = 500; - - BAD_REQUEST = 0 [(errors.code) = 400];// 400 - NOT_LOGGED_IN = 1 [(errors.code) = 401];// 401 - ACCESS_FORBIDDEN = 2 [(errors.code) = 403]; // 403 - RESOURCE_NOT_FOUND = 3 [(errors.code) = 404]; // 404 - METHOD_NOT_ALLOWED = 4 [(errors.code) = 405]; // 405 - REQUEST_TIMEOUT = 5 [(errors.code) = 408]; // 408 - - INTERNAL_SERVER_ERROR = 10 [(errors.code) = 500]; // 500 - NOT_IMPLEMENTED = 11 [(errors.code) = 501]; // 501 - NETWORK_ERROR = 12 [(errors.code) = 502]; // 502 - SERVICE_UNAVAILABLE = 13 [(errors.code) = 503]; // 503 - NETWORK_TIMEOUT = 14 [(errors.code) = 504]; // 504 - REQUEST_NOT_SUPPORT = 15 [(errors.code) = 505]; // 505 - - INVALID_USERID = 20 [(errors.code) = 101];// 用户ID无效 - INVALID_PASSWORD = 21 [(errors.code) = 102];// 密码无效 - TOKEN_EXPIRED = 22 [(errors.code) = 103];// token过期 - INVALID_TOKEN = 23 [(errors.code) = 104];// token无效 - TOKEN_NOT_EXIST = 24 [(errors.code) = 105];// token不存在 - USER_NOT_EXIST = 25 [(errors.code) = 106];// 用户不存在 - USER_FREEZE = 26 [(errors.code) = 107];// 账号冻结 -} +syntax = "proto3"; + +package admin.service.v1; + + +import "errors/errors.proto"; + +enum AdminErrorReason { + option (errors.default_code) = 500; + + BAD_REQUEST = 0 [(errors.code) = 400];// 400 + NOT_LOGGED_IN = 1 [(errors.code) = 401];// 401 + ACCESS_FORBIDDEN = 2 [(errors.code) = 403]; // 403 + RESOURCE_NOT_FOUND = 3 [(errors.code) = 404]; // 404 + METHOD_NOT_ALLOWED = 4 [(errors.code) = 405]; // 405 + REQUEST_TIMEOUT = 5 [(errors.code) = 408]; // 408 + + INTERNAL_SERVER_ERROR = 10 [(errors.code) = 500]; // 500 + NOT_IMPLEMENTED = 11 [(errors.code) = 501]; // 501 + NETWORK_ERROR = 12 [(errors.code) = 502]; // 502 + SERVICE_UNAVAILABLE = 13 [(errors.code) = 503]; // 503 + NETWORK_TIMEOUT = 14 [(errors.code) = 504]; // 504 + REQUEST_NOT_SUPPORT = 15 [(errors.code) = 505]; // 505 + + INVALID_USERID = 20 [(errors.code) = 101];// 用户ID无效 + INVALID_PASSWORD = 21 [(errors.code) = 102];// 密码无效 + TOKEN_EXPIRED = 22 [(errors.code) = 103];// token过期 + INVALID_TOKEN = 23 [(errors.code) = 104];// token无效 + TOKEN_NOT_EXIST = 24 [(errors.code) = 105];// token不存在 + USER_NOT_EXIST = 25 [(errors.code) = 106];// 用户不存在 + USER_FREEZE = 26 [(errors.code) = 107];// 账号冻结 +} diff --git a/backend/api/front/service/v1/buf.openapi.gen.yaml b/backend/api/protos/admin/service/v1/buf.openapi.gen.yaml similarity index 95% rename from backend/api/front/service/v1/buf.openapi.gen.yaml rename to backend/api/protos/admin/service/v1/buf.openapi.gen.yaml index 5ea10ecf..d969a73c 100644 --- a/backend/api/front/service/v1/buf.openapi.gen.yaml +++ b/backend/api/protos/admin/service/v1/buf.openapi.gen.yaml @@ -6,7 +6,7 @@ managed: optimize_for: SPEED go_package_prefix: - default: kratos-cms/gen/api/go + default: kratos-cms/api/gen/go except: - 'buf.build/googleapis/googleapis' - 'buf.build/envoyproxy/protoc-gen-validate' @@ -25,7 +25,7 @@ plugins: # generate openapi v3 yaml doc - name: openapi - out: ./app/front/service/cmd/server/assets + out: ../app/admin/service/cmd/server/assets opt: - naming=json # 命名约定。使用"proto"则直接从proto文件传递名称。默认为:json - depth=2 # 循环消息的递归深度,默认为:2 diff --git a/backend/api/admin/service/v1/i_admin.proto b/backend/api/protos/admin/service/v1/i_admin.proto similarity index 100% rename from backend/api/admin/service/v1/i_admin.proto rename to backend/api/protos/admin/service/v1/i_admin.proto diff --git a/backend/api/admin/service/v1/i_attachment.proto b/backend/api/protos/admin/service/v1/i_attachment.proto similarity index 96% rename from backend/api/admin/service/v1/i_attachment.proto rename to backend/api/protos/admin/service/v1/i_attachment.proto index 7c730594..e96494b1 100644 --- a/backend/api/admin/service/v1/i_attachment.proto +++ b/backend/api/protos/admin/service/v1/i_attachment.proto @@ -1,51 +1,51 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; -import "file/service/v1/attachment.proto"; - -// 附件服务 -service AttachmentService { - // 获取附件列表 - rpc ListAttachment (pagination.PagingRequest) returns (file.service.v1.ListAttachmentResponse) { - option (google.api.http) = { - get: "/admin/v1/attachments" - }; - } - - // 获取附件数据 - rpc GetAttachment (file.service.v1.GetAttachmentRequest) returns (file.service.v1.Attachment) { - option (google.api.http) = { - get: "/admin/v1/attachments/{id}" - }; - } - - // 创建附件 - rpc CreateAttachment (file.service.v1.CreateAttachmentRequest) returns (file.service.v1.Attachment) { - option (google.api.http) = { - post: "/admin/v1/attachments" - body: "*" - }; - } - - // 更新附件 - rpc UpdateAttachment (file.service.v1.UpdateAttachmentRequest) returns (file.service.v1.Attachment) { - option (google.api.http) = { - put: "/admin/v1/attachments/{id}" - body: "attachment" - }; - } - - // 删除附件 - rpc DeleteAttachment (file.service.v1.DeleteAttachmentRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/attachments/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; +import "file/service/v1/attachment.proto"; + +// 附件服务 +service AttachmentService { + // 获取附件列表 + rpc ListAttachment (pagination.PagingRequest) returns (file.service.v1.ListAttachmentResponse) { + option (google.api.http) = { + get: "/admin/v1/attachments" + }; + } + + // 获取附件数据 + rpc GetAttachment (file.service.v1.GetAttachmentRequest) returns (file.service.v1.Attachment) { + option (google.api.http) = { + get: "/admin/v1/attachments/{id}" + }; + } + + // 创建附件 + rpc CreateAttachment (file.service.v1.CreateAttachmentRequest) returns (file.service.v1.Attachment) { + option (google.api.http) = { + post: "/admin/v1/attachments" + body: "*" + }; + } + + // 更新附件 + rpc UpdateAttachment (file.service.v1.UpdateAttachmentRequest) returns (file.service.v1.Attachment) { + option (google.api.http) = { + put: "/admin/v1/attachments/{id}" + body: "attachment" + }; + } + + // 删除附件 + rpc DeleteAttachment (file.service.v1.DeleteAttachmentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/attachments/{id}" + }; + } +} diff --git a/backend/api/admin/service/v1/i_authentication.proto b/backend/api/protos/admin/service/v1/i_authentication.proto similarity index 100% rename from backend/api/admin/service/v1/i_authentication.proto rename to backend/api/protos/admin/service/v1/i_authentication.proto diff --git a/backend/api/admin/service/v1/i_category.proto b/backend/api/protos/admin/service/v1/i_category.proto similarity index 96% rename from backend/api/admin/service/v1/i_category.proto rename to backend/api/protos/admin/service/v1/i_category.proto index 5d20d69b..31691250 100644 --- a/backend/api/admin/service/v1/i_category.proto +++ b/backend/api/protos/admin/service/v1/i_category.proto @@ -1,51 +1,51 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; -import "content/service/v1/category.proto"; - -// 类别服务 -service CategoryService { - // 获取类别列表 - rpc ListCategory (pagination.PagingRequest) returns (content.service.v1.ListCategoryResponse) { - option (google.api.http) = { - get: "/admin/v1/categories" - }; - } - - // 获取类别数据 - rpc GetCategory (content.service.v1.GetCategoryRequest) returns (content.service.v1.Category) { - option (google.api.http) = { - get: "/admin/v1/categories/{id}" - }; - } - - // 创建类别 - rpc CreateCategory (content.service.v1.CreateCategoryRequest) returns (content.service.v1.Category) { - option (google.api.http) = { - post: "/admin/v1/categories" - body: "*" - }; - } - - // 更新类别 - rpc UpdateCategory (content.service.v1.UpdateCategoryRequest) returns (content.service.v1.Category) { - option (google.api.http) = { - put: "/admin/v1/categories/{id}" - body: "category" - }; - } - - // 删除类别 - rpc DeleteCategory (content.service.v1.DeleteCategoryRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/categories/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; +import "content/service/v1/category.proto"; + +// 类别服务 +service CategoryService { + // 获取类别列表 + rpc ListCategory (pagination.PagingRequest) returns (content.service.v1.ListCategoryResponse) { + option (google.api.http) = { + get: "/admin/v1/categories" + }; + } + + // 获取类别数据 + rpc GetCategory (content.service.v1.GetCategoryRequest) returns (content.service.v1.Category) { + option (google.api.http) = { + get: "/admin/v1/categories/{id}" + }; + } + + // 创建类别 + rpc CreateCategory (content.service.v1.CreateCategoryRequest) returns (content.service.v1.Category) { + option (google.api.http) = { + post: "/admin/v1/categories" + body: "*" + }; + } + + // 更新类别 + rpc UpdateCategory (content.service.v1.UpdateCategoryRequest) returns (content.service.v1.Category) { + option (google.api.http) = { + put: "/admin/v1/categories/{id}" + body: "category" + }; + } + + // 删除类别 + rpc DeleteCategory (content.service.v1.DeleteCategoryRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/categories/{id}" + }; + } +} diff --git a/backend/api/admin/service/v1/i_comment.proto b/backend/api/protos/admin/service/v1/i_comment.proto similarity index 96% rename from backend/api/admin/service/v1/i_comment.proto rename to backend/api/protos/admin/service/v1/i_comment.proto index 62b620bd..3d484d27 100644 --- a/backend/api/admin/service/v1/i_comment.proto +++ b/backend/api/protos/admin/service/v1/i_comment.proto @@ -1,51 +1,51 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; -import "comment/service/v1/comment.proto"; - -// 评论服务 -service CommentService { - // 获取评论列表 - rpc ListComment (pagination.PagingRequest) returns (comment.service.v1.ListCommentResponse) { - option (google.api.http) = { - get: "/admin/v1/comments" - }; - } - - // 获取评论数据 - rpc GetComment (comment.service.v1.GetCommentRequest) returns (comment.service.v1.Comment) { - option (google.api.http) = { - get: "/admin/v1/comments/{id}" - }; - } - - // 创建评论 - rpc CreateComment (comment.service.v1.CreateCommentRequest) returns (comment.service.v1.Comment) { - option (google.api.http) = { - post: "/admin/v1/comments" - body: "*" - }; - } - - // 更新评论 - rpc UpdateComment (comment.service.v1.UpdateCommentRequest) returns (comment.service.v1.Comment) { - option (google.api.http) = { - put: "/admin/v1/comments/{id}" - body: "comment" - }; - } - - // 删除评论 - rpc DeleteComment (comment.service.v1.DeleteCommentRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/comments/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; +import "comment/service/v1/comment.proto"; + +// 评论服务 +service CommentService { + // 获取评论列表 + rpc ListComment (pagination.PagingRequest) returns (comment.service.v1.ListCommentResponse) { + option (google.api.http) = { + get: "/admin/v1/comments" + }; + } + + // 获取评论数据 + rpc GetComment (comment.service.v1.GetCommentRequest) returns (comment.service.v1.Comment) { + option (google.api.http) = { + get: "/admin/v1/comments/{id}" + }; + } + + // 创建评论 + rpc CreateComment (comment.service.v1.CreateCommentRequest) returns (comment.service.v1.Comment) { + option (google.api.http) = { + post: "/admin/v1/comments" + body: "*" + }; + } + + // 更新评论 + rpc UpdateComment (comment.service.v1.UpdateCommentRequest) returns (comment.service.v1.Comment) { + option (google.api.http) = { + put: "/admin/v1/comments/{id}" + body: "comment" + }; + } + + // 删除评论 + rpc DeleteComment (comment.service.v1.DeleteCommentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/comments/{id}" + }; + } +} diff --git a/backend/api/admin/service/v1/i_link.proto b/backend/api/protos/admin/service/v1/i_link.proto similarity index 96% rename from backend/api/admin/service/v1/i_link.proto rename to backend/api/protos/admin/service/v1/i_link.proto index b73d2f21..72fe9617 100644 --- a/backend/api/admin/service/v1/i_link.proto +++ b/backend/api/protos/admin/service/v1/i_link.proto @@ -1,51 +1,51 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; -import "content/service/v1/link.proto"; - -// 链接服务 -service LinkService { - // 获取链接列表 - rpc ListLink (pagination.PagingRequest) returns (content.service.v1.ListLinkResponse) { - option (google.api.http) = { - get: "/admin/v1/links" - }; - } - - // 获取链接数据 - rpc GetLink (content.service.v1.GetLinkRequest) returns (content.service.v1.Link) { - option (google.api.http) = { - get: "/admin/v1/links/{id}" - }; - } - - // 创建链接 - rpc CreateLink (content.service.v1.CreateLinkRequest) returns (content.service.v1.Link) { - option (google.api.http) = { - post: "/admin/v1/links" - body: "*" - }; - } - - // 更新链接 - rpc UpdateLink (content.service.v1.UpdateLinkRequest) returns (content.service.v1.Link) { - option (google.api.http) = { - put: "/admin/v1/links/{id}" - body: "link" - }; - } - - // 删除链接 - rpc DeleteLink (content.service.v1.DeleteLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/links/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; +import "content/service/v1/link.proto"; + +// 链接服务 +service LinkService { + // 获取链接列表 + rpc ListLink (pagination.PagingRequest) returns (content.service.v1.ListLinkResponse) { + option (google.api.http) = { + get: "/admin/v1/links" + }; + } + + // 获取链接数据 + rpc GetLink (content.service.v1.GetLinkRequest) returns (content.service.v1.Link) { + option (google.api.http) = { + get: "/admin/v1/links/{id}" + }; + } + + // 创建链接 + rpc CreateLink (content.service.v1.CreateLinkRequest) returns (content.service.v1.Link) { + option (google.api.http) = { + post: "/admin/v1/links" + body: "*" + }; + } + + // 更新链接 + rpc UpdateLink (content.service.v1.UpdateLinkRequest) returns (content.service.v1.Link) { + option (google.api.http) = { + put: "/admin/v1/links/{id}" + body: "link" + }; + } + + // 删除链接 + rpc DeleteLink (content.service.v1.DeleteLinkRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/links/{id}" + }; + } +} diff --git a/backend/api/admin/service/v1/i_menu.proto b/backend/api/protos/admin/service/v1/i_menu.proto similarity index 96% rename from backend/api/admin/service/v1/i_menu.proto rename to backend/api/protos/admin/service/v1/i_menu.proto index aff74b11..9a4402f0 100644 --- a/backend/api/admin/service/v1/i_menu.proto +++ b/backend/api/protos/admin/service/v1/i_menu.proto @@ -1,50 +1,50 @@ -syntax = "proto3"; - -package admin.service.v1; - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; -import "content/service/v1/menu.proto"; - -// 菜单服务 -service MenuService { - // 获取目录列表 - rpc ListMenu (pagination.PagingRequest) returns (content.service.v1.ListMenuResponse) { - option (google.api.http) = { - get: "/admin/v1/menus" - }; - } - - // 获取目录数据 - rpc GetMenu (content.service.v1.GetMenuRequest) returns (content.service.v1.Menu) { - option (google.api.http) = { - get: "/admin/v1/menus/{id}" - }; - } - - // 创建目录 - rpc CreateMenu (content.service.v1.CreateMenuRequest) returns (content.service.v1.Menu) { - option (google.api.http) = { - post: "/admin/v1/menus" - body: "*" - }; - } - - // 更新目录 - rpc UpdateMenu (content.service.v1.UpdateMenuRequest) returns (content.service.v1.Menu) { - option (google.api.http) = { - put: "/admin/v1/menus/{id}" - body: "menu" - }; - } - - // 删除目录 - rpc DeleteMenu (content.service.v1.DeleteMenuRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/menus/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; +import "content/service/v1/menu.proto"; + +// 菜单服务 +service MenuService { + // 获取目录列表 + rpc ListMenu (pagination.PagingRequest) returns (content.service.v1.ListMenuResponse) { + option (google.api.http) = { + get: "/admin/v1/menus" + }; + } + + // 获取目录数据 + rpc GetMenu (content.service.v1.GetMenuRequest) returns (content.service.v1.Menu) { + option (google.api.http) = { + get: "/admin/v1/menus/{id}" + }; + } + + // 创建目录 + rpc CreateMenu (content.service.v1.CreateMenuRequest) returns (content.service.v1.Menu) { + option (google.api.http) = { + post: "/admin/v1/menus" + body: "*" + }; + } + + // 更新目录 + rpc UpdateMenu (content.service.v1.UpdateMenuRequest) returns (content.service.v1.Menu) { + option (google.api.http) = { + put: "/admin/v1/menus/{id}" + body: "menu" + }; + } + + // 删除目录 + rpc DeleteMenu (content.service.v1.DeleteMenuRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/menus/{id}" + }; + } +} diff --git a/backend/api/admin/service/v1/i_photo.proto b/backend/api/protos/admin/service/v1/i_photo.proto similarity index 96% rename from backend/api/admin/service/v1/i_photo.proto rename to backend/api/protos/admin/service/v1/i_photo.proto index 39086815..c16c4d92 100644 --- a/backend/api/admin/service/v1/i_photo.proto +++ b/backend/api/protos/admin/service/v1/i_photo.proto @@ -1,51 +1,51 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; -import "content/service/v1/photo.proto"; - -// 照片服务 -service PhotoService { - // 获取照片列表 - rpc ListPhoto (pagination.PagingRequest) returns (content.service.v1.ListPhotoResponse) { - option (google.api.http) = { - get: "/admin/v1/photos" - }; - } - - // 获取照片数据 - rpc GetPhoto (content.service.v1.GetPhotoRequest) returns (content.service.v1.Photo) { - option (google.api.http) = { - get: "/admin/v1/photos/{id}" - }; - } - - // 创建照片 - rpc CreatePhoto (content.service.v1.CreatePhotoRequest) returns (content.service.v1.Photo) { - option (google.api.http) = { - post: "/admin/v1/photos" - body: "*" - }; - } - - // 更新照片 - rpc UpdatePhoto (content.service.v1.UpdatePhotoRequest) returns (content.service.v1.Photo) { - option (google.api.http) = { - put: "/admin/v1/photos/{id}" - body: "photo" - }; - } - - // 删除照片 - rpc DeletePhoto (content.service.v1.DeletePhotoRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/photos/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; +import "content/service/v1/photo.proto"; + +// 照片服务 +service PhotoService { + // 获取照片列表 + rpc ListPhoto (pagination.PagingRequest) returns (content.service.v1.ListPhotoResponse) { + option (google.api.http) = { + get: "/admin/v1/photos" + }; + } + + // 获取照片数据 + rpc GetPhoto (content.service.v1.GetPhotoRequest) returns (content.service.v1.Photo) { + option (google.api.http) = { + get: "/admin/v1/photos/{id}" + }; + } + + // 创建照片 + rpc CreatePhoto (content.service.v1.CreatePhotoRequest) returns (content.service.v1.Photo) { + option (google.api.http) = { + post: "/admin/v1/photos" + body: "*" + }; + } + + // 更新照片 + rpc UpdatePhoto (content.service.v1.UpdatePhotoRequest) returns (content.service.v1.Photo) { + option (google.api.http) = { + put: "/admin/v1/photos/{id}" + body: "photo" + }; + } + + // 删除照片 + rpc DeletePhoto (content.service.v1.DeletePhotoRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/photos/{id}" + }; + } +} diff --git a/backend/api/admin/service/v1/i_post.proto b/backend/api/protos/admin/service/v1/i_post.proto similarity index 96% rename from backend/api/admin/service/v1/i_post.proto rename to backend/api/protos/admin/service/v1/i_post.proto index 02d114d8..fdaa4fa2 100644 --- a/backend/api/admin/service/v1/i_post.proto +++ b/backend/api/protos/admin/service/v1/i_post.proto @@ -1,51 +1,51 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; -import "content/service/v1/post.proto"; - -// 帖子服务 -service PostService { - // 获取帖子列表 - rpc ListPost (pagination.PagingRequest) returns (content.service.v1.ListPostResponse) { - option (google.api.http) = { - get: "/admin/v1/posts" - }; - } - - // 获取帖子数据 - rpc GetPost (content.service.v1.GetPostRequest) returns (content.service.v1.Post) { - option (google.api.http) = { - get: "/admin/v1/posts/{id}" - }; - } - - // 创建帖子 - rpc CreatePost (content.service.v1.CreatePostRequest) returns (content.service.v1.Post) { - option (google.api.http) = { - post: "/admin/v1/posts" - body: "*" - }; - } - - // 更新帖子 - rpc UpdatePost (content.service.v1.UpdatePostRequest) returns (content.service.v1.Post) { - option (google.api.http) = { - put: "/admin/v1/posts/{id}" - body: "post" - }; - } - - // 删除帖子 - rpc DeletePost (content.service.v1.DeletePostRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/posts/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; +import "content/service/v1/post.proto"; + +// 帖子服务 +service PostService { + // 获取帖子列表 + rpc ListPost (pagination.PagingRequest) returns (content.service.v1.ListPostResponse) { + option (google.api.http) = { + get: "/admin/v1/posts" + }; + } + + // 获取帖子数据 + rpc GetPost (content.service.v1.GetPostRequest) returns (content.service.v1.Post) { + option (google.api.http) = { + get: "/admin/v1/posts/{id}" + }; + } + + // 创建帖子 + rpc CreatePost (content.service.v1.CreatePostRequest) returns (content.service.v1.Post) { + option (google.api.http) = { + post: "/admin/v1/posts" + body: "*" + }; + } + + // 更新帖子 + rpc UpdatePost (content.service.v1.UpdatePostRequest) returns (content.service.v1.Post) { + option (google.api.http) = { + put: "/admin/v1/posts/{id}" + body: "post" + }; + } + + // 删除帖子 + rpc DeletePost (content.service.v1.DeletePostRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/posts/{id}" + }; + } +} diff --git a/backend/api/admin/service/v1/i_system.proto b/backend/api/protos/admin/service/v1/i_system.proto similarity index 95% rename from backend/api/admin/service/v1/i_system.proto rename to backend/api/protos/admin/service/v1/i_system.proto index 2ab4e769..dd6b4883 100644 --- a/backend/api/admin/service/v1/i_system.proto +++ b/backend/api/protos/admin/service/v1/i_system.proto @@ -1,89 +1,89 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; - -// 系统配置服务 -service SystemService { - // 获取系统设置列表 - rpc ListSystem (pagination.PagingRequest) returns (ListSystemResponse) { - option (google.api.http) = { - get: "/admin/v1/system" - }; - } - - // 获取系统设置数据 - rpc GetSystem (GetSystemRequest) returns (System) { - option (google.api.http) = { - get: "/admin/v1/system/{id}" - }; - } - - // 创建系统设置 - rpc CreateSystem (CreateSystemRequest) returns (System) { - option (google.api.http) = { - post: "/admin/v1/system" - body: "*" - }; - } - - // 更新系统设置 - rpc UpdateSystem (UpdateSystemRequest) returns (System) { - option (google.api.http) = { - put: "/admin/v1/system/{id}" - body: "system" - }; - } - - // 删除系统设置 - rpc DeleteSystem (DeleteSystemRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/system/{id}" - }; - } -} - -message System { - uint64 id = 1; - optional int32 theme = 2; - optional string title = 3; - optional string keywords = 4; - optional string description = 5; - optional string recordNumber = 6; -} - -// 回应 - 系统设置列表 -message ListSystemResponse { - repeated System items = 1; - int32 total = 2; -} - -// 请求 - 系统设置数据 -message GetSystemRequest { - uint64 id = 1; -} - -// 请求 - 创建系统设置 -message CreateSystemRequest { - System system = 1; - optional uint64 operatorId = 2; -} - -// 请求 - 更新系统设置 -message UpdateSystemRequest { - uint64 id = 1; - System system = 2; - optional uint64 operatorId = 3; -} - -// 请求 - 删除系统设置 -message DeleteSystemRequest { - uint64 id = 1; - optional uint64 operatorId = 2; -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; + +// 系统配置服务 +service SystemService { + // 获取系统设置列表 + rpc ListSystem (pagination.PagingRequest) returns (ListSystemResponse) { + option (google.api.http) = { + get: "/admin/v1/system" + }; + } + + // 获取系统设置数据 + rpc GetSystem (GetSystemRequest) returns (System) { + option (google.api.http) = { + get: "/admin/v1/system/{id}" + }; + } + + // 创建系统设置 + rpc CreateSystem (CreateSystemRequest) returns (System) { + option (google.api.http) = { + post: "/admin/v1/system" + body: "*" + }; + } + + // 更新系统设置 + rpc UpdateSystem (UpdateSystemRequest) returns (System) { + option (google.api.http) = { + put: "/admin/v1/system/{id}" + body: "system" + }; + } + + // 删除系统设置 + rpc DeleteSystem (DeleteSystemRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/system/{id}" + }; + } +} + +message System { + uint64 id = 1; + optional int32 theme = 2; + optional string title = 3; + optional string keywords = 4; + optional string description = 5; + optional string recordNumber = 6; +} + +// 回应 - 系统设置列表 +message ListSystemResponse { + repeated System items = 1; + int32 total = 2; +} + +// 请求 - 系统设置数据 +message GetSystemRequest { + uint64 id = 1; +} + +// 请求 - 创建系统设置 +message CreateSystemRequest { + System system = 1; + optional uint64 operatorId = 2; +} + +// 请求 - 更新系统设置 +message UpdateSystemRequest { + uint64 id = 1; + System system = 2; + optional uint64 operatorId = 3; +} + +// 请求 - 删除系统设置 +message DeleteSystemRequest { + uint64 id = 1; + optional uint64 operatorId = 2; +} diff --git a/backend/api/admin/service/v1/i_tag.proto b/backend/api/protos/admin/service/v1/i_tag.proto similarity index 96% rename from backend/api/admin/service/v1/i_tag.proto rename to backend/api/protos/admin/service/v1/i_tag.proto index 6e6b5390..8a6a5468 100644 --- a/backend/api/admin/service/v1/i_tag.proto +++ b/backend/api/protos/admin/service/v1/i_tag.proto @@ -1,51 +1,51 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; -import "content/service/v1/tag.proto"; - -// 标签服务 -service TagService { - // 获取标签列表 - rpc ListTag (pagination.PagingRequest) returns (content.service.v1.ListTagResponse) { - option (google.api.http) = { - get: "/admin/v1/tags" - }; - } - - // 获取标签数据 - rpc GetTag (content.service.v1.GetTagRequest) returns (content.service.v1.Tag) { - option (google.api.http) = { - get: "/admin/v1/tags/{id}" - }; - } - - // 创建标签 - rpc CreateTag (content.service.v1.CreateTagRequest) returns (content.service.v1.Tag) { - option (google.api.http) = { - post: "/admin/v1/tags" - body: "*" - }; - } - - // 更新标签 - rpc UpdateTag (content.service.v1.UpdateTagRequest) returns (content.service.v1.Tag) { - option (google.api.http) = { - put: "/admin/v1/tags/{id}" - body: "tag" - }; - } - - // 删除标签 - rpc DeleteTag (content.service.v1.DeleteTagRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/tags/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; +import "content/service/v1/tag.proto"; + +// 标签服务 +service TagService { + // 获取标签列表 + rpc ListTag (pagination.PagingRequest) returns (content.service.v1.ListTagResponse) { + option (google.api.http) = { + get: "/admin/v1/tags" + }; + } + + // 获取标签数据 + rpc GetTag (content.service.v1.GetTagRequest) returns (content.service.v1.Tag) { + option (google.api.http) = { + get: "/admin/v1/tags/{id}" + }; + } + + // 创建标签 + rpc CreateTag (content.service.v1.CreateTagRequest) returns (content.service.v1.Tag) { + option (google.api.http) = { + post: "/admin/v1/tags" + body: "*" + }; + } + + // 更新标签 + rpc UpdateTag (content.service.v1.UpdateTagRequest) returns (content.service.v1.Tag) { + option (google.api.http) = { + put: "/admin/v1/tags/{id}" + body: "tag" + }; + } + + // 删除标签 + rpc DeleteTag (content.service.v1.DeleteTagRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/tags/{id}" + }; + } +} diff --git a/backend/api/admin/service/v1/i_user.proto b/backend/api/protos/admin/service/v1/i_user.proto similarity index 96% rename from backend/api/admin/service/v1/i_user.proto rename to backend/api/protos/admin/service/v1/i_user.proto index 4fca775a..7466d204 100644 --- a/backend/api/admin/service/v1/i_user.proto +++ b/backend/api/protos/admin/service/v1/i_user.proto @@ -1,51 +1,51 @@ -syntax = "proto3"; - -package admin.service.v1; - - -import "gnostic/openapi/v3/annotations.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "user/service/v1/user.proto"; -import "pagination/v1/pagination.proto"; - -// 用户管理服务 -service UserService { - // 获取用户列表 - rpc ListUser (pagination.PagingRequest) returns (user.service.v1.ListUserResponse) { - option (google.api.http) = { - get: "/admin/v1/users" - }; - } - - // 获取用户数据 - rpc GetUser (user.service.v1.GetUserRequest) returns (user.service.v1.User) { - option (google.api.http) = { - get: "/admin/v1/users/{id}" - }; - } - - // 创建用户 - rpc CreateUser (user.service.v1.CreateUserRequest) returns (user.service.v1.User) { - option (google.api.http) = { - post: "/admin/v1/users" - body: "user" - }; - } - - // 更新用户 - rpc UpdateUser (user.service.v1.UpdateUserRequest) returns (user.service.v1.User) { - option (google.api.http) = { - put: "/admin/v1/users/{id}" - body: "user" - }; - } - - // 删除用户 - rpc DeleteUser (user.service.v1.DeleteUserRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/admin/v1/users/{id}" - }; - } -} +syntax = "proto3"; + +package admin.service.v1; + + +import "gnostic/openapi/v3/annotations.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "user/service/v1/user.proto"; +import "pagination/v1/pagination.proto"; + +// 用户管理服务 +service UserService { + // 获取用户列表 + rpc ListUser (pagination.PagingRequest) returns (user.service.v1.ListUserResponse) { + option (google.api.http) = { + get: "/admin/v1/users" + }; + } + + // 获取用户数据 + rpc GetUser (user.service.v1.GetUserRequest) returns (user.service.v1.User) { + option (google.api.http) = { + get: "/admin/v1/users/{id}" + }; + } + + // 创建用户 + rpc CreateUser (user.service.v1.CreateUserRequest) returns (user.service.v1.User) { + option (google.api.http) = { + post: "/admin/v1/users" + body: "user" + }; + } + + // 更新用户 + rpc UpdateUser (user.service.v1.UpdateUserRequest) returns (user.service.v1.User) { + option (google.api.http) = { + put: "/admin/v1/users/{id}" + body: "user" + }; + } + + // 删除用户 + rpc DeleteUser (user.service.v1.DeleteUserRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/admin/v1/users/{id}" + }; + } +} diff --git a/backend/api/protos/buf.lock b/backend/api/protos/buf.lock new file mode 100644 index 00000000..14c3ec46 --- /dev/null +++ b/backend/api/protos/buf.lock @@ -0,0 +1,33 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: envoyproxy + repository: protoc-gen-validate + commit: ea113bc841fa448ab34bf3f9fa6cef0f + digest: shake256:8f3653779e824957a4fe3d18cdb73531f7f7ed1393848082dfe1f90026fd187da9534e759b5833f4e5487be0d34cfa7d4ff149af9a2694863773387d61d09fce + - remote: buf.build + owner: gnostic + repository: gnostic + commit: 087bc8072ce44e339f213209e4d57bf0 + digest: shake256:4689c26f0460fea84c4c277c1b9c7e7d657388c5b4116d1065f907a92100ffbea87de05bbd138a0166411361e1f6ce063b4c0c6002358d39710f3c4a8de788d5 + - remote: buf.build + owner: gogo + repository: protobuf + commit: 5461a3dfa9d941da82028ab185dc2a0e + digest: shake256:37c7c75224982038cb1abf45b481ef06716c1f806ffaa162018d0df092bd11a2a9b62c2d0dc0a2ae43beff86b6014fc0eb8c594ffd84d52ade4b08fca901eadc + - remote: buf.build + owner: googleapis + repository: googleapis + commit: 74015a8aeb8445aa9e3e1454cb54bc35 + digest: shake256:7149cf5e9955c692d381e557830555d4e93f205a0f1b8e2dfdae46d029369aa3fc1980e35df0d310f7cc3b622f93e19ad276769a283a967dd3065ddfd3a40e13 + - remote: buf.build + owner: kratos + repository: apis + commit: c2de25f14fa445a79a054214f31d17a8 + digest: shake256:91c024935d46f7966667c29e4fc933435959f93c3f0e675e1227c99db09905d44f8ec275b770da7659df5a6b18f4710da157b6d8ad760a4a95f60365b231e637 + - remote: buf.build + owner: tx7do + repository: pagination + commit: 7a9682e38b7d47d98eafd742399a16b0 + digest: shake256:c2e448ce9c66de9838cd7573fb62d562f6649661ac4029471427bd00fcf7ecb5bebdaa79dbddb5616446345eff22c1f36a46b3717e0778b3933e24dabef03c34 diff --git a/backend/api/protos/buf.yaml b/backend/api/protos/buf.yaml new file mode 100644 index 00000000..ba2a0b57 --- /dev/null +++ b/backend/api/protos/buf.yaml @@ -0,0 +1,20 @@ +version: v1 + +build: + excludes: [third_party] + +deps: + - 'buf.build/googleapis/googleapis' + - 'buf.build/envoyproxy/protoc-gen-validate' + - 'buf.build/kratos/apis' + - 'buf.build/gnostic/gnostic' + - 'buf.build/gogo/protobuf' + - 'buf.build/tx7do/pagination' + +breaking: + use: + - FILE + +lint: + use: + - DEFAULT diff --git a/backend/api/comment/service/v1/comment.proto b/backend/api/protos/comment/service/v1/comment.proto similarity index 95% rename from backend/api/comment/service/v1/comment.proto rename to backend/api/protos/comment/service/v1/comment.proto index f8e82299..b8d2ee69 100644 --- a/backend/api/comment/service/v1/comment.proto +++ b/backend/api/protos/comment/service/v1/comment.proto @@ -1,75 +1,75 @@ -syntax = "proto3"; - -package comment.service.v1; - -import "google/protobuf/empty.proto"; -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 评论服务 -service CommentService { - // 获取评论列表 - rpc ListComment (pagination.PagingRequest) returns (ListCommentResponse) {} - - // 获取评论数据 - rpc GetComment (GetCommentRequest) returns (Comment) {} - - // 创建评论 - rpc CreateComment (CreateCommentRequest) returns (Comment) {} - - // 更新评论 - rpc UpdateComment (UpdateCommentRequest) returns (Comment) {} - - // 删除评论 - rpc DeleteComment (DeleteCommentRequest) returns (google.protobuf.Empty) {} -} - -// 评论 -message Comment { - uint32 id = 1; - optional string author = 2; - optional string email = 3; - optional string ipAddress = 4; - optional string authorUrl = 5; - optional string gravatarMd5 = 6; - optional string content = 7; - optional uint32 status = 8; - optional string userAgent = 9; - optional uint32 parentId = 10; - optional bool isAdmin = 11; - optional bool allowNotification = 12; - optional string avatar = 13; - optional string createTime = 14; - optional string updateTime = 15; -} - -// 回应 - 评论列表 -message ListCommentResponse { - repeated Comment items = 1; - int32 total = 2; -} - -// 请求 - 评论数据 -message GetCommentRequest { - uint32 id = 1; -} - -// 请求 - 创建评论 -message CreateCommentRequest { - Comment comment = 1; - optional uint32 operatorId = 2; -} - -// 请求 - 更新评论 -message UpdateCommentRequest { - uint32 id = 1; - Comment comment = 2; - optional uint32 operatorId = 3; -} - -// 请求 - 删除评论 -message DeleteCommentRequest { - uint32 id = 1; - optional uint32 operatorId = 2; -} +syntax = "proto3"; + +package comment.service.v1; + +import "google/protobuf/empty.proto"; +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 评论服务 +service CommentService { + // 获取评论列表 + rpc ListComment (pagination.PagingRequest) returns (ListCommentResponse) {} + + // 获取评论数据 + rpc GetComment (GetCommentRequest) returns (Comment) {} + + // 创建评论 + rpc CreateComment (CreateCommentRequest) returns (Comment) {} + + // 更新评论 + rpc UpdateComment (UpdateCommentRequest) returns (Comment) {} + + // 删除评论 + rpc DeleteComment (DeleteCommentRequest) returns (google.protobuf.Empty) {} +} + +// 评论 +message Comment { + uint32 id = 1; + optional string author = 2; + optional string email = 3; + optional string ipAddress = 4; + optional string authorUrl = 5; + optional string gravatarMd5 = 6; + optional string content = 7; + optional uint32 status = 8; + optional string userAgent = 9; + optional uint32 parentId = 10; + optional bool isAdmin = 11; + optional bool allowNotification = 12; + optional string avatar = 13; + optional string createTime = 14; + optional string updateTime = 15; +} + +// 回应 - 评论列表 +message ListCommentResponse { + repeated Comment items = 1; + int32 total = 2; +} + +// 请求 - 评论数据 +message GetCommentRequest { + uint32 id = 1; +} + +// 请求 - 创建评论 +message CreateCommentRequest { + Comment comment = 1; + optional uint32 operatorId = 2; +} + +// 请求 - 更新评论 +message UpdateCommentRequest { + uint32 id = 1; + Comment comment = 2; + optional uint32 operatorId = 3; +} + +// 请求 - 删除评论 +message DeleteCommentRequest { + uint32 id = 1; + optional uint32 operatorId = 2; +} diff --git a/backend/api/content/service/v1/category.proto b/backend/api/protos/content/service/v1/category.proto similarity index 95% rename from backend/api/content/service/v1/category.proto rename to backend/api/protos/content/service/v1/category.proto index 0e60df2d..c895d06a 100644 --- a/backend/api/content/service/v1/category.proto +++ b/backend/api/protos/content/service/v1/category.proto @@ -1,76 +1,76 @@ -syntax = "proto3"; - -package content.service.v1; - - -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 类别服务 -service CategoryService { - // 获取类别列表 - rpc ListCategory (pagination.PagingRequest) returns (ListCategoryResponse) {} - - // 获取类别数据 - rpc GetCategory (GetCategoryRequest) returns (Category) {} - - // 创建类别 - rpc CreateCategory (CreateCategoryRequest) returns (Category) {} - - // 更新类别 - rpc UpdateCategory (UpdateCategoryRequest) returns (Category) {} - - // 删除类别 - rpc DeleteCategory (DeleteCategoryRequest) returns (google.protobuf.Empty) {} -} - -// 类别 -message Category { - uint32 id = 1; - optional uint32 parentId = 2; - optional string name = 3; - optional string slug = 4; - optional string description = 5; - optional string thumbnail = 6; - optional string password = 7; - optional string fullPath = 8; - optional int32 priority = 9; - optional string createTime = 10; - optional string updateTime = 11; - optional uint32 postCount = 12; -} - -// 回应 - 类别列表 -message ListCategoryResponse { - repeated Category items = 1; - int32 total = 2; -} - -// 请求 - 类别数据 -message GetCategoryRequest { - uint32 id = 1; - google.protobuf.FieldMask field_mask = 2; -} - -// 请求 - 创建类别 -message CreateCategoryRequest { - Category category = 1; - optional uint32 operatorId = 2; -} - -// 请求 - 更新类别 -message UpdateCategoryRequest { - uint32 id = 1; - Category category = 2; - optional uint32 operatorId = 3; -} - -// 请求 - 删除类别 -message DeleteCategoryRequest { - uint32 id = 1; - optional uint32 operatorId = 2; -} +syntax = "proto3"; + +package content.service.v1; + + +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 类别服务 +service CategoryService { + // 获取类别列表 + rpc ListCategory (pagination.PagingRequest) returns (ListCategoryResponse) {} + + // 获取类别数据 + rpc GetCategory (GetCategoryRequest) returns (Category) {} + + // 创建类别 + rpc CreateCategory (CreateCategoryRequest) returns (Category) {} + + // 更新类别 + rpc UpdateCategory (UpdateCategoryRequest) returns (Category) {} + + // 删除类别 + rpc DeleteCategory (DeleteCategoryRequest) returns (google.protobuf.Empty) {} +} + +// 类别 +message Category { + uint32 id = 1; + optional uint32 parentId = 2; + optional string name = 3; + optional string slug = 4; + optional string description = 5; + optional string thumbnail = 6; + optional string password = 7; + optional string fullPath = 8; + optional int32 priority = 9; + optional string createTime = 10; + optional string updateTime = 11; + optional uint32 postCount = 12; +} + +// 回应 - 类别列表 +message ListCategoryResponse { + repeated Category items = 1; + int32 total = 2; +} + +// 请求 - 类别数据 +message GetCategoryRequest { + uint32 id = 1; + google.protobuf.FieldMask field_mask = 2; +} + +// 请求 - 创建类别 +message CreateCategoryRequest { + Category category = 1; + optional uint32 operatorId = 2; +} + +// 请求 - 更新类别 +message UpdateCategoryRequest { + uint32 id = 1; + Category category = 2; + optional uint32 operatorId = 3; +} + +// 请求 - 删除类别 +message DeleteCategoryRequest { + uint32 id = 1; + optional uint32 operatorId = 2; +} diff --git a/backend/api/content/service/v1/link.proto b/backend/api/protos/content/service/v1/link.proto similarity index 95% rename from backend/api/content/service/v1/link.proto rename to backend/api/protos/content/service/v1/link.proto index 52c58af2..be19f90f 100644 --- a/backend/api/content/service/v1/link.proto +++ b/backend/api/protos/content/service/v1/link.proto @@ -1,70 +1,70 @@ -syntax = "proto3"; - -package content.service.v1; - - -import "google/protobuf/empty.proto"; -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 链接服务 -service LinkService { - // 获取链接列表 - rpc ListLink (pagination.PagingRequest) returns (ListLinkResponse) {} - - // 获取链接数据 - rpc GetLink (GetLinkRequest) returns (Link) {} - - // 创建链接 - rpc CreateLink (CreateLinkRequest) returns (Link) {} - - // 更新链接 - rpc UpdateLink (UpdateLinkRequest) returns (Link) {} - - // 删除链接 - rpc DeleteLink (DeleteLinkRequest) returns (google.protobuf.Empty) {} -} - -// 链接 -message Link { - uint32 id = 1; - optional string name = 2; - optional string url = 3; - optional string logo = 4; - optional string description = 5; - optional string team = 6; - optional int32 priority = 7; - optional string createTime = 8; - optional string updateTime = 9; -} - -// 回应 - 链接列表 -message ListLinkResponse { - repeated Link items = 1; - int32 total = 2; -} - -// 请求 - 链接数据 -message GetLinkRequest { - uint32 id = 1; -} - -// 请求 - 创建链接 -message CreateLinkRequest { - Link link = 1; - optional uint32 operatorId = 2; -} - -// 请求 - 更新链接 -message UpdateLinkRequest { - uint32 id = 1; - Link link = 2; - optional uint32 operatorId = 3; -} - -// 请求 - 删除链接 -message DeleteLinkRequest { - uint32 id = 1; - optional uint32 operatorId = 2; -} +syntax = "proto3"; + +package content.service.v1; + + +import "google/protobuf/empty.proto"; +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 链接服务 +service LinkService { + // 获取链接列表 + rpc ListLink (pagination.PagingRequest) returns (ListLinkResponse) {} + + // 获取链接数据 + rpc GetLink (GetLinkRequest) returns (Link) {} + + // 创建链接 + rpc CreateLink (CreateLinkRequest) returns (Link) {} + + // 更新链接 + rpc UpdateLink (UpdateLinkRequest) returns (Link) {} + + // 删除链接 + rpc DeleteLink (DeleteLinkRequest) returns (google.protobuf.Empty) {} +} + +// 链接 +message Link { + uint32 id = 1; + optional string name = 2; + optional string url = 3; + optional string logo = 4; + optional string description = 5; + optional string team = 6; + optional int32 priority = 7; + optional string createTime = 8; + optional string updateTime = 9; +} + +// 回应 - 链接列表 +message ListLinkResponse { + repeated Link items = 1; + int32 total = 2; +} + +// 请求 - 链接数据 +message GetLinkRequest { + uint32 id = 1; +} + +// 请求 - 创建链接 +message CreateLinkRequest { + Link link = 1; + optional uint32 operatorId = 2; +} + +// 请求 - 更新链接 +message UpdateLinkRequest { + uint32 id = 1; + Link link = 2; + optional uint32 operatorId = 3; +} + +// 请求 - 删除链接 +message DeleteLinkRequest { + uint32 id = 1; + optional uint32 operatorId = 2; +} diff --git a/backend/api/content/service/v1/menu.proto b/backend/api/protos/content/service/v1/menu.proto similarity index 95% rename from backend/api/content/service/v1/menu.proto rename to backend/api/protos/content/service/v1/menu.proto index 83fc3506..55b13189 100644 --- a/backend/api/content/service/v1/menu.proto +++ b/backend/api/protos/content/service/v1/menu.proto @@ -1,71 +1,71 @@ -syntax = "proto3"; - -package content.service.v1; - - -import "google/protobuf/empty.proto"; -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 菜单服务 -service MenuService { - // 获取菜单列表 - rpc ListMenu (pagination.PagingRequest) returns (ListMenuResponse) {} - - // 获取菜单数据 - rpc GetMenu (GetMenuRequest) returns (Menu) {} - - // 创建菜单 - rpc CreateMenu (CreateMenuRequest) returns (Menu) {} - - // 更新菜单 - rpc UpdateMenu (UpdateMenuRequest) returns (Menu) {} - - // 删除菜单 - rpc DeleteMenu (DeleteMenuRequest) returns (google.protobuf.Empty) {} -} - -// 菜单 -message Menu { - uint32 id = 1; - optional string name = 2; - optional string url = 3; - optional int32 priority = 4; - optional string target = 5; - optional string icon = 6; - optional uint32 parentId = 7; - optional string team = 8; - optional string createTime = 9; - optional string updateTime = 10; -} - -// 回应 - 菜单列表 -message ListMenuResponse { - repeated Menu items = 1; - int32 total = 2; -} - -// 请求 - 菜单数据 -message GetMenuRequest { - uint32 id = 1; -} - -// 请求 - 创建菜单 -message CreateMenuRequest { - Menu menu = 1; - optional uint32 operatorId = 2; -} - -// 请求 - 更新菜单 -message UpdateMenuRequest { - uint32 id = 1; - Menu menu = 2; - optional uint32 operatorId = 3; -} - -// 请求 - 删除菜单 -message DeleteMenuRequest { - uint32 id = 1; - optional uint32 operatorId = 2; -} +syntax = "proto3"; + +package content.service.v1; + + +import "google/protobuf/empty.proto"; +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 菜单服务 +service MenuService { + // 获取菜单列表 + rpc ListMenu (pagination.PagingRequest) returns (ListMenuResponse) {} + + // 获取菜单数据 + rpc GetMenu (GetMenuRequest) returns (Menu) {} + + // 创建菜单 + rpc CreateMenu (CreateMenuRequest) returns (Menu) {} + + // 更新菜单 + rpc UpdateMenu (UpdateMenuRequest) returns (Menu) {} + + // 删除菜单 + rpc DeleteMenu (DeleteMenuRequest) returns (google.protobuf.Empty) {} +} + +// 菜单 +message Menu { + uint32 id = 1; + optional string name = 2; + optional string url = 3; + optional int32 priority = 4; + optional string target = 5; + optional string icon = 6; + optional uint32 parentId = 7; + optional string team = 8; + optional string createTime = 9; + optional string updateTime = 10; +} + +// 回应 - 菜单列表 +message ListMenuResponse { + repeated Menu items = 1; + int32 total = 2; +} + +// 请求 - 菜单数据 +message GetMenuRequest { + uint32 id = 1; +} + +// 请求 - 创建菜单 +message CreateMenuRequest { + Menu menu = 1; + optional uint32 operatorId = 2; +} + +// 请求 - 更新菜单 +message UpdateMenuRequest { + uint32 id = 1; + Menu menu = 2; + optional uint32 operatorId = 3; +} + +// 请求 - 删除菜单 +message DeleteMenuRequest { + uint32 id = 1; + optional uint32 operatorId = 2; +} diff --git a/backend/api/content/service/v1/photo.proto b/backend/api/protos/content/service/v1/photo.proto similarity index 95% rename from backend/api/content/service/v1/photo.proto rename to backend/api/protos/content/service/v1/photo.proto index f58e8d87..1a4021d3 100644 --- a/backend/api/content/service/v1/photo.proto +++ b/backend/api/protos/content/service/v1/photo.proto @@ -1,71 +1,71 @@ -syntax = "proto3"; - -package content.service.v1; - - -import "google/protobuf/empty.proto"; -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 照片服务 -service PhotoService { - // 获取照片列表 - rpc ListPhoto (pagination.PagingRequest) returns (ListPhotoResponse) {} - - // 获取照片数据 - rpc GetPhoto (GetPhotoRequest) returns (Photo) {} - - // 创建照片 - rpc CreatePhoto (CreatePhotoRequest) returns (Photo) {} - - // 更新照片 - rpc UpdatePhoto (UpdatePhotoRequest) returns (Photo) {} - - // 删除照片 - rpc DeletePhoto (DeletePhotoRequest) returns (google.protobuf.Empty) {} -} - -// 照片 -message Photo { - uint32 id = 1; - optional string name = 2; - optional string thumbnail = 3; - optional string url = 5; - optional string team = 6; - optional string location = 7; - optional string description = 8; - optional int32 likes = 9; - optional string takeTime = 10; - optional string createTime = 11; -} - -// 回应 - 照片列表 -message ListPhotoResponse { - repeated Photo items = 1; - int32 total = 2; -} - -// 请求 - 照片数据 -message GetPhotoRequest { - uint32 id = 1; -} - -// 请求 - 创建照片 -message CreatePhotoRequest { - Photo photo = 1; - optional uint32 operatorId = 2; -} - -// 请求 - 更新照片 -message UpdatePhotoRequest { - uint32 id = 1; - Photo photo = 2; - optional uint32 operatorId = 3; -} - -// 请求 - 删除照片 -message DeletePhotoRequest { - uint32 id = 1; - optional uint32 operatorId = 2; -} +syntax = "proto3"; + +package content.service.v1; + + +import "google/protobuf/empty.proto"; +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 照片服务 +service PhotoService { + // 获取照片列表 + rpc ListPhoto (pagination.PagingRequest) returns (ListPhotoResponse) {} + + // 获取照片数据 + rpc GetPhoto (GetPhotoRequest) returns (Photo) {} + + // 创建照片 + rpc CreatePhoto (CreatePhotoRequest) returns (Photo) {} + + // 更新照片 + rpc UpdatePhoto (UpdatePhotoRequest) returns (Photo) {} + + // 删除照片 + rpc DeletePhoto (DeletePhotoRequest) returns (google.protobuf.Empty) {} +} + +// 照片 +message Photo { + uint32 id = 1; + optional string name = 2; + optional string thumbnail = 3; + optional string url = 5; + optional string team = 6; + optional string location = 7; + optional string description = 8; + optional int32 likes = 9; + optional string takeTime = 10; + optional string createTime = 11; +} + +// 回应 - 照片列表 +message ListPhotoResponse { + repeated Photo items = 1; + int32 total = 2; +} + +// 请求 - 照片数据 +message GetPhotoRequest { + uint32 id = 1; +} + +// 请求 - 创建照片 +message CreatePhotoRequest { + Photo photo = 1; + optional uint32 operatorId = 2; +} + +// 请求 - 更新照片 +message UpdatePhotoRequest { + uint32 id = 1; + Photo photo = 2; + optional uint32 operatorId = 3; +} + +// 请求 - 删除照片 +message DeletePhotoRequest { + uint32 id = 1; + optional uint32 operatorId = 2; +} diff --git a/backend/api/content/service/v1/post.proto b/backend/api/protos/content/service/v1/post.proto similarity index 95% rename from backend/api/content/service/v1/post.proto rename to backend/api/protos/content/service/v1/post.proto index 6b776355..0e9a0fa5 100644 --- a/backend/api/content/service/v1/post.proto +++ b/backend/api/protos/content/service/v1/post.proto @@ -1,85 +1,85 @@ -syntax = "proto3"; - -package content.service.v1; - - -import "google/protobuf/empty.proto"; -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 帖子服务 -service PostService { - // 获取帖子列表 - rpc ListPost (pagination.PagingRequest) returns (ListPostResponse) {} - - // 获取帖子数据 - rpc GetPost (GetPostRequest) returns (Post) {} - - // 创建帖子 - rpc CreatePost (CreatePostRequest) returns (Post) {} - - // 更新帖子 - rpc UpdatePost (UpdatePostRequest) returns (Post) {} - - // 删除帖子 - rpc DeletePost (DeletePostRequest) returns (google.protobuf.Empty) {} -} - -// 帖子 -message Post { - uint32 id = 1; - optional string title = 2; - optional int32 status = 3; - optional string slug = 4; - optional int32 editorType = 5; - optional string metaKeywords = 6; - optional string metaDescription = 7; - optional string fullPath = 8; - optional string summary = 9; - optional string thumbnail = 10; - optional string password = 11; - optional string template = 12; - optional string content = 13; - optional string originalContent = 14; - optional int32 visits = 15; - optional int32 topPriority = 16; - optional int32 likes = 17; - optional int32 wordCount = 18; - optional int32 commentCount = 19; - optional bool disallowComment = 20; - optional bool inProgress = 21; - optional string createTime = 22; - optional string updateTime = 23; - optional string editTime = 24; -} - -// 回应 - 帖子列表 -message ListPostResponse { - repeated Post items = 1; - int32 total = 2; -} - -// 请求 - 帖子数据 -message GetPostRequest { - uint32 id = 1; -} - -// 请求 - 创建帖子 -message CreatePostRequest { - Post post = 1; - optional uint32 operatorId = 2; -} - -// 请求 - 更新帖子 -message UpdatePostRequest { - uint32 id = 1; - Post post = 2; - optional uint32 operatorId = 3; -} - -// 请求 - 删除帖子 -message DeletePostRequest { - uint32 id = 1; - optional uint32 operatorId = 2; -} +syntax = "proto3"; + +package content.service.v1; + + +import "google/protobuf/empty.proto"; +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 帖子服务 +service PostService { + // 获取帖子列表 + rpc ListPost (pagination.PagingRequest) returns (ListPostResponse) {} + + // 获取帖子数据 + rpc GetPost (GetPostRequest) returns (Post) {} + + // 创建帖子 + rpc CreatePost (CreatePostRequest) returns (Post) {} + + // 更新帖子 + rpc UpdatePost (UpdatePostRequest) returns (Post) {} + + // 删除帖子 + rpc DeletePost (DeletePostRequest) returns (google.protobuf.Empty) {} +} + +// 帖子 +message Post { + uint32 id = 1; + optional string title = 2; + optional int32 status = 3; + optional string slug = 4; + optional int32 editorType = 5; + optional string metaKeywords = 6; + optional string metaDescription = 7; + optional string fullPath = 8; + optional string summary = 9; + optional string thumbnail = 10; + optional string password = 11; + optional string template = 12; + optional string content = 13; + optional string originalContent = 14; + optional int32 visits = 15; + optional int32 topPriority = 16; + optional int32 likes = 17; + optional int32 wordCount = 18; + optional int32 commentCount = 19; + optional bool disallowComment = 20; + optional bool inProgress = 21; + optional string createTime = 22; + optional string updateTime = 23; + optional string editTime = 24; +} + +// 回应 - 帖子列表 +message ListPostResponse { + repeated Post items = 1; + int32 total = 2; +} + +// 请求 - 帖子数据 +message GetPostRequest { + uint32 id = 1; +} + +// 请求 - 创建帖子 +message CreatePostRequest { + Post post = 1; + optional uint32 operatorId = 2; +} + +// 请求 - 更新帖子 +message UpdatePostRequest { + uint32 id = 1; + Post post = 2; + optional uint32 operatorId = 3; +} + +// 请求 - 删除帖子 +message DeletePostRequest { + uint32 id = 1; + optional uint32 operatorId = 2; +} diff --git a/backend/api/content/service/v1/tag.proto b/backend/api/protos/content/service/v1/tag.proto similarity index 95% rename from backend/api/content/service/v1/tag.proto rename to backend/api/protos/content/service/v1/tag.proto index cf6cf94c..3a4598cb 100644 --- a/backend/api/content/service/v1/tag.proto +++ b/backend/api/protos/content/service/v1/tag.proto @@ -1,71 +1,71 @@ -syntax = "proto3"; - -package content.service.v1; - - -import "google/protobuf/empty.proto"; -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 标签服务 -service TagService { - // 获取标签列表 - rpc ListTag (pagination.PagingRequest) returns (ListTagResponse) {} - - // 获取标签数据 - rpc GetTag (GetTagRequest) returns (Tag) {} - - // 创建标签 - rpc CreateTag (CreateTagRequest) returns (Tag) {} - - // 更新标签 - rpc UpdateTag (UpdateTagRequest) returns (Tag) {} - - // 删除标签 - rpc DeleteTag (DeleteTagRequest) returns (google.protobuf.Empty) {} -} - -// 标签 -message Tag { - uint32 id = 1; - optional string name = 2; - optional string slug = 3; - optional string slugName = 4; - optional string color = 5; - optional string thumbnail = 6; - optional string createTime = 7; - optional string updateTime = 8; - optional uint32 postCount = 9; - optional string fullPath = 10; -} - -// 回应 - 标签列表 -message ListTagResponse { - repeated Tag items = 1; - int32 total = 2; -} - -// 请求 - 标签数据 -message GetTagRequest { - uint32 id = 1; -} - -// 请求 - 创建标签 -message CreateTagRequest { - Tag tag = 1; - optional uint32 operatorId = 2; -} - -// 请求 - 更新标签 -message UpdateTagRequest { - uint32 id = 1; - Tag tag = 2; - optional uint32 operatorId = 3; -} - -// 请求 - 删除标签 -message DeleteTagRequest { - uint32 id = 1; - optional uint32 operatorId = 2; -} +syntax = "proto3"; + +package content.service.v1; + + +import "google/protobuf/empty.proto"; +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 标签服务 +service TagService { + // 获取标签列表 + rpc ListTag (pagination.PagingRequest) returns (ListTagResponse) {} + + // 获取标签数据 + rpc GetTag (GetTagRequest) returns (Tag) {} + + // 创建标签 + rpc CreateTag (CreateTagRequest) returns (Tag) {} + + // 更新标签 + rpc UpdateTag (UpdateTagRequest) returns (Tag) {} + + // 删除标签 + rpc DeleteTag (DeleteTagRequest) returns (google.protobuf.Empty) {} +} + +// 标签 +message Tag { + uint32 id = 1; + optional string name = 2; + optional string slug = 3; + optional string slugName = 4; + optional string color = 5; + optional string thumbnail = 6; + optional string createTime = 7; + optional string updateTime = 8; + optional uint32 postCount = 9; + optional string fullPath = 10; +} + +// 回应 - 标签列表 +message ListTagResponse { + repeated Tag items = 1; + int32 total = 2; +} + +// 请求 - 标签数据 +message GetTagRequest { + uint32 id = 1; +} + +// 请求 - 创建标签 +message CreateTagRequest { + Tag tag = 1; + optional uint32 operatorId = 2; +} + +// 请求 - 更新标签 +message UpdateTagRequest { + uint32 id = 1; + Tag tag = 2; + optional uint32 operatorId = 3; +} + +// 请求 - 删除标签 +message DeleteTagRequest { + uint32 id = 1; + optional uint32 operatorId = 2; +} diff --git a/backend/api/file/service/v1/attachment.proto b/backend/api/protos/file/service/v1/attachment.proto similarity index 95% rename from backend/api/file/service/v1/attachment.proto rename to backend/api/protos/file/service/v1/attachment.proto index d6efe0f1..e2fff64e 100644 --- a/backend/api/file/service/v1/attachment.proto +++ b/backend/api/protos/file/service/v1/attachment.proto @@ -1,75 +1,75 @@ -syntax = "proto3"; - -package file.service.v1; - -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 附件服务 -service AttachmentService { - // 获取附件列表 - rpc ListAttachment (pagination.PagingRequest) returns (ListAttachmentResponse) {} - - // 获取附件数据 - rpc GetAttachment (GetAttachmentRequest) returns (Attachment) {} - - // 创建附件 - rpc CreateAttachment (CreateAttachmentRequest) returns (Attachment) {} - - // 更新附件 - rpc UpdateAttachment (UpdateAttachmentRequest) returns (Attachment) {} - - // 删除附件 - rpc DeleteAttachment (DeleteAttachmentRequest) returns (google.protobuf.Empty) {} -} - -// 附件 -message Attachment { - uint32 id = 1; - optional string name = 2; - optional string path = 3; - optional string fileKey = 4; - optional string thumbPath = 5; - optional string mediaType = 6; - optional string suffix = 7; - optional int32 width = 8; - optional int32 height = 9; - optional uint64 size = 10; - optional int32 type = 11; - optional string createTime = 12; - optional string updateTime = 13; - optional string deleteTime = 14; -} - -// 附件列表 - 回应 -message ListAttachmentResponse { - repeated Attachment items = 1; - int32 total = 2; -} - -// 附件数据 - 请求 -message GetAttachmentRequest { - uint32 id = 1; -} - -// 创建附件 - 请求 -message CreateAttachmentRequest { - Attachment attachment = 1; - optional uint32 operatorId = 2; -} - -// 更新附件 - 请求 -message UpdateAttachmentRequest { - uint32 id = 1; - Attachment attachment = 2; - optional uint32 operatorId = 3; -} - -// 删除附件 - 请求 -message DeleteAttachmentRequest { - uint32 id = 1; - optional uint32 operatorId = 2; -} +syntax = "proto3"; + +package file.service.v1; + +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 附件服务 +service AttachmentService { + // 获取附件列表 + rpc ListAttachment (pagination.PagingRequest) returns (ListAttachmentResponse) {} + + // 获取附件数据 + rpc GetAttachment (GetAttachmentRequest) returns (Attachment) {} + + // 创建附件 + rpc CreateAttachment (CreateAttachmentRequest) returns (Attachment) {} + + // 更新附件 + rpc UpdateAttachment (UpdateAttachmentRequest) returns (Attachment) {} + + // 删除附件 + rpc DeleteAttachment (DeleteAttachmentRequest) returns (google.protobuf.Empty) {} +} + +// 附件 +message Attachment { + uint32 id = 1; + optional string name = 2; + optional string path = 3; + optional string fileKey = 4; + optional string thumbPath = 5; + optional string mediaType = 6; + optional string suffix = 7; + optional int32 width = 8; + optional int32 height = 9; + optional uint64 size = 10; + optional int32 type = 11; + optional string createTime = 12; + optional string updateTime = 13; + optional string deleteTime = 14; +} + +// 附件列表 - 回应 +message ListAttachmentResponse { + repeated Attachment items = 1; + int32 total = 2; +} + +// 附件数据 - 请求 +message GetAttachmentRequest { + uint32 id = 1; +} + +// 创建附件 - 请求 +message CreateAttachmentRequest { + Attachment attachment = 1; + optional uint32 operatorId = 2; +} + +// 更新附件 - 请求 +message UpdateAttachmentRequest { + uint32 id = 1; + Attachment attachment = 2; + optional uint32 operatorId = 3; +} + +// 删除附件 - 请求 +message DeleteAttachmentRequest { + uint32 id = 1; + optional uint32 operatorId = 2; +} diff --git a/backend/api/admin/service/v1/buf.openapi.gen.yaml b/backend/api/protos/front/service/v1/buf.openapi.gen.yaml similarity index 93% rename from backend/api/admin/service/v1/buf.openapi.gen.yaml rename to backend/api/protos/front/service/v1/buf.openapi.gen.yaml index 2a4a2571..d3193a40 100644 --- a/backend/api/admin/service/v1/buf.openapi.gen.yaml +++ b/backend/api/protos/front/service/v1/buf.openapi.gen.yaml @@ -1,35 +1,35 @@ -# 配置protoc生成规则 -version: v1 - -managed: - enabled: true - optimize_for: SPEED - - go_package_prefix: - default: kratos-cms/gen/api/go - except: - - 'buf.build/googleapis/googleapis' - - 'buf.build/envoyproxy/protoc-gen-validate' - - 'buf.build/kratos/apis' - - 'buf.build/gnostic/gnostic' - - 'buf.build/gogo/protobuf' - - 'buf.build/tx7do/pagination' - -plugins: - # generate openapi v2 json doc - # - name: openapiv2 - # out: ../docs - # opt: - # - json_names_for_fields=true - # - logtostderr=true - - # generate openapi v3 yaml doc - - name: openapi - out: ./app/admin/service/cmd/server/assets - opt: - - naming=json # 命名约定。使用"proto"则直接从proto文件传递名称。默认为:json - - depth=2 # 循环消息的递归深度,默认为:2 - - default_response=false # 添加默认响应消息。如果为“true”,则自动为使用google.rpc.Status消息的操作添加默认响应。如果您使用envoy或grpc-gateway进行转码,则非常有用,因为它们使用此类型作为默认错误响应。默认为:true。 - - enum_type=string # 枚举类型的序列化的类型。使用"string"则进行基于字符串的序列化。默认为:integer。 - - output_mode=merged # 输出文件生成模式。默认情况下,只有一个openapi.yaml文件会生成在输出文件夹。使用“source_relative”则会为每一个'[inputfile].proto'文件单独生成一个“[inputfile].openapi.yaml”文件。默认为:merged。 - - fq_schema_naming=false # Schema的命名是否加上包名,为true,则会加上包名,例如:system.service.v1.ListDictDetailResponse,否则为:ListDictDetailResponse。默认为:false。 +# 配置protoc生成规则 +version: v1 + +managed: + enabled: true + optimize_for: SPEED + + go_package_prefix: + default: kratos-cms/api/gen/go + except: + - 'buf.build/googleapis/googleapis' + - 'buf.build/envoyproxy/protoc-gen-validate' + - 'buf.build/kratos/apis' + - 'buf.build/gnostic/gnostic' + - 'buf.build/gogo/protobuf' + - 'buf.build/tx7do/pagination' + +plugins: + # generate openapi v2 json doc + # - name: openapiv2 + # out: ../docs + # opt: + # - json_names_for_fields=true + # - logtostderr=true + + # generate openapi v3 yaml doc + - name: openapi + out: ../app/front/service/cmd/server/assets + opt: + - naming=json # 命名约定。使用"proto"则直接从proto文件传递名称。默认为:json + - depth=2 # 循环消息的递归深度,默认为:2 + - default_response=false # 添加默认响应消息。如果为“true”,则自动为使用google.rpc.Status消息的操作添加默认响应。如果您使用envoy或grpc-gateway进行转码,则非常有用,因为它们使用此类型作为默认错误响应。默认为:true。 + - enum_type=string # 枚举类型的序列化的类型。使用"string"则进行基于字符串的序列化。默认为:integer。 + - output_mode=merged # 输出文件生成模式。默认情况下,只有一个openapi.yaml文件会生成在输出文件夹。使用“source_relative”则会为每一个'[inputfile].proto'文件单独生成一个“[inputfile].openapi.yaml”文件。默认为:merged。 + - fq_schema_naming=false # Schema的命名是否加上包名,为true,则会加上包名,例如:system.service.v1.ListDictDetailResponse,否则为:ListDictDetailResponse。默认为:false。 diff --git a/backend/api/front/service/v1/front_error.proto b/backend/api/protos/front/service/v1/front_error.proto similarity index 100% rename from backend/api/front/service/v1/front_error.proto rename to backend/api/protos/front/service/v1/front_error.proto diff --git a/backend/api/front/service/v1/i_attachment.proto b/backend/api/protos/front/service/v1/i_attachment.proto similarity index 100% rename from backend/api/front/service/v1/i_attachment.proto rename to backend/api/protos/front/service/v1/i_attachment.proto diff --git a/backend/api/front/service/v1/i_authentication.proto b/backend/api/protos/front/service/v1/i_authentication.proto similarity index 100% rename from backend/api/front/service/v1/i_authentication.proto rename to backend/api/protos/front/service/v1/i_authentication.proto diff --git a/backend/api/front/service/v1/i_category.proto b/backend/api/protos/front/service/v1/i_category.proto similarity index 100% rename from backend/api/front/service/v1/i_category.proto rename to backend/api/protos/front/service/v1/i_category.proto diff --git a/backend/api/front/service/v1/i_comment.proto b/backend/api/protos/front/service/v1/i_comment.proto similarity index 100% rename from backend/api/front/service/v1/i_comment.proto rename to backend/api/protos/front/service/v1/i_comment.proto diff --git a/backend/api/front/service/v1/i_front.proto b/backend/api/protos/front/service/v1/i_front.proto similarity index 100% rename from backend/api/front/service/v1/i_front.proto rename to backend/api/protos/front/service/v1/i_front.proto diff --git a/backend/api/front/service/v1/i_link.proto b/backend/api/protos/front/service/v1/i_link.proto similarity index 100% rename from backend/api/front/service/v1/i_link.proto rename to backend/api/protos/front/service/v1/i_link.proto diff --git a/backend/api/front/service/v1/i_menu.proto b/backend/api/protos/front/service/v1/i_menu.proto similarity index 100% rename from backend/api/front/service/v1/i_menu.proto rename to backend/api/protos/front/service/v1/i_menu.proto diff --git a/backend/api/front/service/v1/i_photo.proto b/backend/api/protos/front/service/v1/i_photo.proto similarity index 100% rename from backend/api/front/service/v1/i_photo.proto rename to backend/api/protos/front/service/v1/i_photo.proto diff --git a/backend/api/front/service/v1/i_post.proto b/backend/api/protos/front/service/v1/i_post.proto similarity index 100% rename from backend/api/front/service/v1/i_post.proto rename to backend/api/protos/front/service/v1/i_post.proto diff --git a/backend/api/front/service/v1/i_tag.proto b/backend/api/protos/front/service/v1/i_tag.proto similarity index 100% rename from backend/api/front/service/v1/i_tag.proto rename to backend/api/protos/front/service/v1/i_tag.proto diff --git a/backend/api/user/service/v1/user.proto b/backend/api/protos/user/service/v1/user.proto similarity index 96% rename from backend/api/user/service/v1/user.proto rename to backend/api/protos/user/service/v1/user.proto index 3d8b31fe..b79d5d8b 100644 --- a/backend/api/user/service/v1/user.proto +++ b/backend/api/protos/user/service/v1/user.proto @@ -1,130 +1,130 @@ -syntax = "proto3"; - -package user.service.v1; - -import "gnostic/openapi/v3/annotations.proto"; -import "google/protobuf/empty.proto"; - -import "pagination/v1/pagination.proto"; - -// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 - -// 用户服务 -service UserService { - // 查询用户列表 - rpc ListUser (pagination.PagingRequest) returns (ListUserResponse) {} - - // 查询用户详情 - rpc GetUser (GetUserRequest) returns (User) {} - - // 创建用户 - rpc CreateUser (CreateUserRequest) returns (User) {} - - // 更新用户 - rpc UpdateUser (UpdateUserRequest) returns (User) {} - - // 删除用户 - rpc DeleteUser (DeleteUserRequest) returns (google.protobuf.Empty) {} - - // 查询用户详情 - rpc GetUserByUserName (GetUserByUserNameRequest) returns (User) {} - - // 验证密码 - rpc VerifyPassword (VerifyPasswordRequest) returns (VerifyPasswordResponse) {} - - // 用户是否存在 - rpc UserExists (UserExistsRequest) returns (UserExistsResponse) {} -} - -// 验证密码结果码 -enum VerifyPasswordResult { - SUCCESS = 0; // 验证成功 - ACCOUNT_NOT_EXISTS = 1; // 账号不存在 - WRONG_PASSWORD = 2;// 密码错误 - FREEZE = 3;// 已冻结 - DELETED = 4;// 已删除 -} - -// 用户权限 -enum UserAuthority { - SYS_ADMIN = 0; // 系统超级用户 - CUSTOMER_USER = 1; // 普通用户 - GUEST_USER = 2; // 游客 -} - -// 用户 -message User { - uint32 id = 1; - optional string userName = 2; - optional string nickName = 3; - optional string email = 4; - optional string avatar = 5; - optional string description = 6; - optional string password = 7; - optional string createTime = 8; - optional string updateTime = 9; - optional string status = 10 [(gnostic.openapi.v3.property) = { - description: "用户状态" - default: {string: "ON"} - enum: [{yaml: "ON"}, {yaml: "OFF"}] - }]; - optional uint32 roleId = 11 [(gnostic.openapi.v3.property) = {description: "角色ID"}]; // 角色ID - optional uint32 creatorId = 12 [(gnostic.openapi.v3.property) = {description: "创建者ID"}]; // 创建者ID - - optional UserAuthority authority = 13 [(gnostic.openapi.v3.property) = { - description: "权限" - default: {string: "CUSTOMER_USER"} - }]; // 权限 -} - -// 获取用户列表 - 答复 -message ListUserResponse { - repeated User items = 1; - int32 total = 2; -} - -// 获取用户数据 - 请求 -message GetUserRequest { - uint32 id = 1; -} -message GetUserByUserNameRequest { - string userName = 1; -} - -// 创建用户 - 请求 -message CreateUserRequest { - User user = 1; - uint32 operatorId = 2; -} - -// 更新用户 - 请求 -message UpdateUserRequest { - uint32 id = 1; - User user = 2; - uint32 operatorId = 3; -} - -// 删除用户 - 请求 -message DeleteUserRequest { - uint32 id = 1; - uint32 operatorId = 2; -} - -// 验证密码 - 请求 -message VerifyPasswordRequest { - string userName = 1; - string password = 2; -} -// 验证密码 - 答复 -message VerifyPasswordResponse { - VerifyPasswordResult result = 1; -} - -// 用户是否存在 - 请求 -message UserExistsRequest { - string userName = 1; -} -// 用户是否存在 - 答复 -message UserExistsResponse { - bool exist = 1; -} +syntax = "proto3"; + +package user.service.v1; + +import "gnostic/openapi/v3/annotations.proto"; +import "google/protobuf/empty.proto"; + +import "pagination/v1/pagination.proto"; + +// 变量的命名一律使用小驼峰命名法,例如:firstName、lastName等。 + +// 用户服务 +service UserService { + // 查询用户列表 + rpc ListUser (pagination.PagingRequest) returns (ListUserResponse) {} + + // 查询用户详情 + rpc GetUser (GetUserRequest) returns (User) {} + + // 创建用户 + rpc CreateUser (CreateUserRequest) returns (User) {} + + // 更新用户 + rpc UpdateUser (UpdateUserRequest) returns (User) {} + + // 删除用户 + rpc DeleteUser (DeleteUserRequest) returns (google.protobuf.Empty) {} + + // 查询用户详情 + rpc GetUserByUserName (GetUserByUserNameRequest) returns (User) {} + + // 验证密码 + rpc VerifyPassword (VerifyPasswordRequest) returns (VerifyPasswordResponse) {} + + // 用户是否存在 + rpc UserExists (UserExistsRequest) returns (UserExistsResponse) {} +} + +// 验证密码结果码 +enum VerifyPasswordResult { + SUCCESS = 0; // 验证成功 + ACCOUNT_NOT_EXISTS = 1; // 账号不存在 + WRONG_PASSWORD = 2;// 密码错误 + FREEZE = 3;// 已冻结 + DELETED = 4;// 已删除 +} + +// 用户权限 +enum UserAuthority { + SYS_ADMIN = 0; // 系统超级用户 + CUSTOMER_USER = 1; // 普通用户 + GUEST_USER = 2; // 游客 +} + +// 用户 +message User { + uint32 id = 1; + optional string userName = 2; + optional string nickName = 3; + optional string email = 4; + optional string avatar = 5; + optional string description = 6; + optional string password = 7; + optional string createTime = 8; + optional string updateTime = 9; + optional string status = 10 [(gnostic.openapi.v3.property) = { + description: "用户状态" + default: {string: "ON"} + enum: [{yaml: "ON"}, {yaml: "OFF"}] + }]; + optional uint32 roleId = 11 [(gnostic.openapi.v3.property) = {description: "角色ID"}]; // 角色ID + optional uint32 creatorId = 12 [(gnostic.openapi.v3.property) = {description: "创建者ID"}]; // 创建者ID + + optional UserAuthority authority = 13 [(gnostic.openapi.v3.property) = { + description: "权限" + default: {string: "CUSTOMER_USER"} + }]; // 权限 +} + +// 获取用户列表 - 答复 +message ListUserResponse { + repeated User items = 1; + int32 total = 2; +} + +// 获取用户数据 - 请求 +message GetUserRequest { + uint32 id = 1; +} +message GetUserByUserNameRequest { + string userName = 1; +} + +// 创建用户 - 请求 +message CreateUserRequest { + User user = 1; + uint32 operatorId = 2; +} + +// 更新用户 - 请求 +message UpdateUserRequest { + uint32 id = 1; + User user = 2; + uint32 operatorId = 3; +} + +// 删除用户 - 请求 +message DeleteUserRequest { + uint32 id = 1; + uint32 operatorId = 2; +} + +// 验证密码 - 请求 +message VerifyPasswordRequest { + string userName = 1; + string password = 2; +} +// 验证密码 - 答复 +message VerifyPasswordResponse { + VerifyPasswordResult result = 1; +} + +// 用户是否存在 - 请求 +message UserExistsRequest { + string userName = 1; +} +// 用户是否存在 - 答复 +message UserExistsResponse { + bool exist = 1; +} diff --git a/backend/api/user/service/v1/user_error.proto b/backend/api/protos/user/service/v1/user_error.proto similarity index 97% rename from backend/api/user/service/v1/user_error.proto rename to backend/api/protos/user/service/v1/user_error.proto index 3b92cafb..88b2d362 100644 --- a/backend/api/user/service/v1/user_error.proto +++ b/backend/api/protos/user/service/v1/user_error.proto @@ -1,32 +1,32 @@ -syntax = "proto3"; - -package user.service.v1; - -import "errors/errors.proto"; - -enum UserErrorReason { - option (errors.default_code) = 500; - - NOT_LOGGED_IN = 0 [(errors.code) = 401];// 401 - ACCESS_FORBIDDEN = 1 [(errors.code) = 403]; // 403 - RESOURCE_NOT_FOUND = 2 [(errors.code) = 404]; // 404 - METHOD_NOT_ALLOWED = 3 [(errors.code) = 405]; // 405 - REQUEST_TIMEOUT = 4 [(errors.code) = 408]; // 408 - INTERNAL_SERVER_ERROR = 5 [(errors.code) = 500]; // 500 - NOT_IMPLEMENTED = 6 [(errors.code) = 501]; // 501 - NETWORK_ERROR = 7 [(errors.code) = 502]; // 502 - SERVICE_UNAVAILABLE = 8 [(errors.code) = 503]; // 503 - NETWORK_TIMEOUT = 9 [(errors.code) = 504]; // 504 - REQUEST_NOT_SUPPORT = 10 [(errors.code) = 505]; // 505 - - USER_NOT_FOUND = 11 [(errors.code) = 600]; - INCORRECT_PASSWORD = 12 [(errors.code) = 599]; - USER_FREEZE = 13 [(errors.code) = 598]; - - INVALID_USERID = 14 [(errors.code) = 101];// 用户ID无效 - INVALID_PASSWORD = 15 [(errors.code) = 102];// 密码无效 - TOKEN_EXPIRED = 16 [(errors.code) = 103];// token过期 - INVALID_TOKEN = 17 [(errors.code) = 104];// token无效 - TOKEN_NOT_EXIST = 18 [(errors.code) = 105];// token不存在 - USER_NOT_EXIST = 19 [(errors.code) = 106];// 用户不存在 -} +syntax = "proto3"; + +package user.service.v1; + +import "errors/errors.proto"; + +enum UserErrorReason { + option (errors.default_code) = 500; + + NOT_LOGGED_IN = 0 [(errors.code) = 401];// 401 + ACCESS_FORBIDDEN = 1 [(errors.code) = 403]; // 403 + RESOURCE_NOT_FOUND = 2 [(errors.code) = 404]; // 404 + METHOD_NOT_ALLOWED = 3 [(errors.code) = 405]; // 405 + REQUEST_TIMEOUT = 4 [(errors.code) = 408]; // 408 + INTERNAL_SERVER_ERROR = 5 [(errors.code) = 500]; // 500 + NOT_IMPLEMENTED = 6 [(errors.code) = 501]; // 501 + NETWORK_ERROR = 7 [(errors.code) = 502]; // 502 + SERVICE_UNAVAILABLE = 8 [(errors.code) = 503]; // 503 + NETWORK_TIMEOUT = 9 [(errors.code) = 504]; // 504 + REQUEST_NOT_SUPPORT = 10 [(errors.code) = 505]; // 505 + + USER_NOT_FOUND = 11 [(errors.code) = 600]; + INCORRECT_PASSWORD = 12 [(errors.code) = 599]; + USER_FREEZE = 13 [(errors.code) = 598]; + + INVALID_USERID = 14 [(errors.code) = 101];// 用户ID无效 + INVALID_PASSWORD = 15 [(errors.code) = 102];// 密码无效 + TOKEN_EXPIRED = 16 [(errors.code) = 103];// token过期 + INVALID_TOKEN = 17 [(errors.code) = 104];// token无效 + TOKEN_NOT_EXIST = 18 [(errors.code) = 105];// token不存在 + USER_NOT_EXIST = 19 [(errors.code) = 106];// 用户不存在 +} diff --git a/backend/app.mk b/backend/app.mk index 751bc080..660582d9 100644 --- a/backend/app.mk +++ b/backend/app.mk @@ -70,14 +70,14 @@ wire: # generate protobuf api go code api: - @cd ../../../ && \ + @cd ../../../api && \ buf generate # generate OpenAPI v3 doc openapi: - @cd ../../../ && \ - buf generate --path api/admin/service/v1 --template api/admin/service/v1/buf.openapi.gen.yaml && \ - buf generate --path api/front/service/v1 --template api/front/service/v1/buf.openapi.gen.yaml + @cd ../../../api && \ + buf generate --path protos/admin/service/v1 --template protos/admin/service/v1/buf.openapi.gen.yaml && \ + buf generate --path protos/front/service/v1 --template protos/front/service/v1/buf.openapi.gen.yaml # run application run: api openapi diff --git a/backend/app/admin/service/internal/data/data.go b/backend/app/admin/service/internal/data/data.go index e1b30bd3..5cdfa48d 100644 --- a/backend/app/admin/service/internal/data/data.go +++ b/backend/app/admin/service/internal/data/data.go @@ -19,10 +19,10 @@ import ( bRegistry "github.com/tx7do/kratos-bootstrap/registry" "github.com/tx7do/kratos-bootstrap/rpc" - commentV1 "kratos-cms/gen/api/go/comment/service/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" - fileV1 "kratos-cms/gen/api/go/file/service/v1" - userV1 "kratos-cms/gen/api/go/user/service/v1" + commentV1 "kratos-cms/api/gen/go/comment/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" + fileV1 "kratos-cms/api/gen/go/file/service/v1" + userV1 "kratos-cms/api/gen/go/user/service/v1" "kratos-cms/pkg/cache" "kratos-cms/pkg/service" diff --git a/backend/app/admin/service/internal/server/rest.go b/backend/app/admin/service/internal/server/rest.go index 4a8531d5..68c71281 100644 --- a/backend/app/admin/service/internal/server/rest.go +++ b/backend/app/admin/service/internal/server/rest.go @@ -23,7 +23,7 @@ import ( "kratos-cms/app/admin/service/cmd/server/assets" "kratos-cms/app/admin/service/internal/service" - adminV1 "kratos-cms/gen/api/go/admin/service/v1" + adminV1 "kratos-cms/api/gen/go/admin/service/v1" "kratos-cms/pkg/middleware/auth" ) diff --git a/backend/app/admin/service/internal/service/attachment.go b/backend/app/admin/service/internal/service/attachment.go index 07214e58..a72eaff3 100644 --- a/backend/app/admin/service/internal/service/attachment.go +++ b/backend/app/admin/service/internal/service/attachment.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/admin/service/v1" - fileV1 "kratos-cms/gen/api/go/file/service/v1" + v1 "kratos-cms/api/gen/go/admin/service/v1" + fileV1 "kratos-cms/api/gen/go/file/service/v1" ) type AttachmentService struct { diff --git a/backend/app/admin/service/internal/service/authentication.go b/backend/app/admin/service/internal/service/authentication.go index f070d71a..6bffc6d6 100644 --- a/backend/app/admin/service/internal/service/authentication.go +++ b/backend/app/admin/service/internal/service/authentication.go @@ -6,8 +6,8 @@ import ( "github.com/go-kratos/kratos/v2/log" "google.golang.org/protobuf/types/known/emptypb" - adminV1 "kratos-cms/gen/api/go/admin/service/v1" - userV1 "kratos-cms/gen/api/go/user/service/v1" + adminV1 "kratos-cms/api/gen/go/admin/service/v1" + userV1 "kratos-cms/api/gen/go/user/service/v1" "kratos-cms/pkg/cache" "kratos-cms/pkg/middleware/auth" diff --git a/backend/app/admin/service/internal/service/category.go b/backend/app/admin/service/internal/service/category.go index 74674ff1..3b39b152 100644 --- a/backend/app/admin/service/internal/service/category.go +++ b/backend/app/admin/service/internal/service/category.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/admin/service/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/admin/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" ) type CategoryService struct { diff --git a/backend/app/admin/service/internal/service/comment.go b/backend/app/admin/service/internal/service/comment.go index fcc1e315..d3b6b6cf 100644 --- a/backend/app/admin/service/internal/service/comment.go +++ b/backend/app/admin/service/internal/service/comment.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/admin/service/v1" - commentV1 "kratos-cms/gen/api/go/comment/service/v1" + v1 "kratos-cms/api/gen/go/admin/service/v1" + commentV1 "kratos-cms/api/gen/go/comment/service/v1" ) type CommentService struct { diff --git a/backend/app/admin/service/internal/service/link.go b/backend/app/admin/service/internal/service/link.go index b2416d22..f3f5f9f9 100644 --- a/backend/app/admin/service/internal/service/link.go +++ b/backend/app/admin/service/internal/service/link.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/admin/service/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/admin/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" ) type LinkService struct { diff --git a/backend/app/admin/service/internal/service/post.go b/backend/app/admin/service/internal/service/post.go index 8e0060b5..7217fdd3 100644 --- a/backend/app/admin/service/internal/service/post.go +++ b/backend/app/admin/service/internal/service/post.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/admin/service/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/admin/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" ) type PostService struct { diff --git a/backend/app/admin/service/internal/service/tag.go b/backend/app/admin/service/internal/service/tag.go index 921e0f32..7aebc918 100644 --- a/backend/app/admin/service/internal/service/tag.go +++ b/backend/app/admin/service/internal/service/tag.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/admin/service/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/admin/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" ) type TagService struct { diff --git a/backend/app/admin/service/internal/service/user.go b/backend/app/admin/service/internal/service/user.go index 5d875829..63cb2a0b 100644 --- a/backend/app/admin/service/internal/service/user.go +++ b/backend/app/admin/service/internal/service/user.go @@ -8,8 +8,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/admin/service/v1" - userV1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/admin/service/v1" + userV1 "kratos-cms/api/gen/go/user/service/v1" "kratos-cms/pkg/middleware/auth" ) diff --git a/backend/app/core/service/internal/data/attachment.go b/backend/app/core/service/internal/data/attachment.go index 9eb1d5f9..ac982ff1 100644 --- a/backend/app/core/service/internal/data/attachment.go +++ b/backend/app/core/service/internal/data/attachment.go @@ -14,7 +14,7 @@ import ( "kratos-cms/app/core/service/internal/data/ent/attachment" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/file/service/v1" + v1 "kratos-cms/api/gen/go/file/service/v1" ) type AttachmentRepo struct { diff --git a/backend/app/core/service/internal/data/category.go b/backend/app/core/service/internal/data/category.go index d1a7145d..57b701be 100644 --- a/backend/app/core/service/internal/data/category.go +++ b/backend/app/core/service/internal/data/category.go @@ -14,7 +14,7 @@ import ( "kratos-cms/app/core/service/internal/data/ent/category" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/content/service/v1" ) type CategoryRepo struct { diff --git a/backend/app/core/service/internal/data/comment.go b/backend/app/core/service/internal/data/comment.go index ff7ad927..403bb7d3 100644 --- a/backend/app/core/service/internal/data/comment.go +++ b/backend/app/core/service/internal/data/comment.go @@ -14,7 +14,7 @@ import ( "kratos-cms/app/core/service/internal/data/ent/comment" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/comment/service/v1" + v1 "kratos-cms/api/gen/go/comment/service/v1" ) type CommentRepo struct { diff --git a/backend/app/core/service/internal/data/link.go b/backend/app/core/service/internal/data/link.go index 2e03b97b..3143e858 100644 --- a/backend/app/core/service/internal/data/link.go +++ b/backend/app/core/service/internal/data/link.go @@ -14,7 +14,7 @@ import ( "kratos-cms/app/core/service/internal/data/ent/link" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/content/service/v1" ) type LinkRepo struct { diff --git a/backend/app/core/service/internal/data/post.go b/backend/app/core/service/internal/data/post.go index ff30647e..ffcca9d5 100644 --- a/backend/app/core/service/internal/data/post.go +++ b/backend/app/core/service/internal/data/post.go @@ -14,7 +14,7 @@ import ( "kratos-cms/app/core/service/internal/data/ent/post" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/content/service/v1" ) type PostRepo struct { diff --git a/backend/app/core/service/internal/data/tag.go b/backend/app/core/service/internal/data/tag.go index dbc621a4..575cd879 100644 --- a/backend/app/core/service/internal/data/tag.go +++ b/backend/app/core/service/internal/data/tag.go @@ -14,7 +14,7 @@ import ( "kratos-cms/app/core/service/internal/data/ent/tag" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/content/service/v1" ) type TagRepo struct { diff --git a/backend/app/core/service/internal/data/user.go b/backend/app/core/service/internal/data/user.go index 499febc9..c2ebbda4 100644 --- a/backend/app/core/service/internal/data/user.go +++ b/backend/app/core/service/internal/data/user.go @@ -16,7 +16,7 @@ import ( "kratos-cms/app/core/service/internal/data/ent/user" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/user/service/v1" ) type UserRepo struct { diff --git a/backend/app/core/service/internal/server/grpc.go b/backend/app/core/service/internal/server/grpc.go index 90c21843..c4983cf8 100644 --- a/backend/app/core/service/internal/server/grpc.go +++ b/backend/app/core/service/internal/server/grpc.go @@ -10,10 +10,10 @@ import ( "kratos-cms/app/core/service/internal/service" - commentV1 "kratos-cms/gen/api/go/comment/service/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" - fileV1 "kratos-cms/gen/api/go/file/service/v1" - userV1 "kratos-cms/gen/api/go/user/service/v1" + commentV1 "kratos-cms/api/gen/go/comment/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" + fileV1 "kratos-cms/api/gen/go/file/service/v1" + userV1 "kratos-cms/api/gen/go/user/service/v1" ) // NewGRPCServer new a gRPC server. diff --git a/backend/app/core/service/internal/service/attachment.go b/backend/app/core/service/internal/service/attachment.go index 9fb0dff5..7eb2ec9c 100644 --- a/backend/app/core/service/internal/service/attachment.go +++ b/backend/app/core/service/internal/service/attachment.go @@ -9,7 +9,7 @@ import ( "kratos-cms/app/core/service/internal/data" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/file/service/v1" + v1 "kratos-cms/api/gen/go/file/service/v1" ) type AttachmentService struct { diff --git a/backend/app/core/service/internal/service/category.go b/backend/app/core/service/internal/service/category.go index 348f53a1..a417ddc2 100644 --- a/backend/app/core/service/internal/service/category.go +++ b/backend/app/core/service/internal/service/category.go @@ -9,7 +9,7 @@ import ( "kratos-cms/app/core/service/internal/data" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/content/service/v1" ) type CategoryService struct { diff --git a/backend/app/core/service/internal/service/comment.go b/backend/app/core/service/internal/service/comment.go index 5cdef74f..90a43a3f 100644 --- a/backend/app/core/service/internal/service/comment.go +++ b/backend/app/core/service/internal/service/comment.go @@ -9,7 +9,7 @@ import ( "kratos-cms/app/core/service/internal/data" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/comment/service/v1" + v1 "kratos-cms/api/gen/go/comment/service/v1" ) type CommentService struct { diff --git a/backend/app/core/service/internal/service/link.go b/backend/app/core/service/internal/service/link.go index 95e98d54..26525480 100644 --- a/backend/app/core/service/internal/service/link.go +++ b/backend/app/core/service/internal/service/link.go @@ -9,7 +9,7 @@ import ( "kratos-cms/app/core/service/internal/data" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/content/service/v1" ) type LinkService struct { diff --git a/backend/app/core/service/internal/service/post.go b/backend/app/core/service/internal/service/post.go index b9091c94..fea9da70 100644 --- a/backend/app/core/service/internal/service/post.go +++ b/backend/app/core/service/internal/service/post.go @@ -9,7 +9,7 @@ import ( "kratos-cms/app/core/service/internal/data" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/content/service/v1" ) type PostService struct { diff --git a/backend/app/core/service/internal/service/tag.go b/backend/app/core/service/internal/service/tag.go index 40ec5eb2..50e9d9f7 100644 --- a/backend/app/core/service/internal/service/tag.go +++ b/backend/app/core/service/internal/service/tag.go @@ -9,7 +9,7 @@ import ( "kratos-cms/app/core/service/internal/data" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/content/service/v1" + v1 "kratos-cms/api/gen/go/content/service/v1" ) type TagService struct { diff --git a/backend/app/core/service/internal/service/user.go b/backend/app/core/service/internal/service/user.go index 681e2b65..271dc146 100644 --- a/backend/app/core/service/internal/service/user.go +++ b/backend/app/core/service/internal/service/user.go @@ -10,7 +10,7 @@ import ( "kratos-cms/app/core/service/internal/data" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - v1 "kratos-cms/gen/api/go/user/service/v1" + v1 "kratos-cms/api/gen/go/user/service/v1" ) type UserService struct { diff --git a/backend/app/front/service/internal/data/data.go b/backend/app/front/service/internal/data/data.go index facb946f..6595a63c 100644 --- a/backend/app/front/service/internal/data/data.go +++ b/backend/app/front/service/internal/data/data.go @@ -19,10 +19,10 @@ import ( bRegistry "github.com/tx7do/kratos-bootstrap/registry" "github.com/tx7do/kratos-bootstrap/rpc" - commentV1 "kratos-cms/gen/api/go/comment/service/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" - fileV1 "kratos-cms/gen/api/go/file/service/v1" - userV1 "kratos-cms/gen/api/go/user/service/v1" + commentV1 "kratos-cms/api/gen/go/comment/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" + fileV1 "kratos-cms/api/gen/go/file/service/v1" + userV1 "kratos-cms/api/gen/go/user/service/v1" "kratos-cms/pkg/cache" "kratos-cms/pkg/service" diff --git a/backend/app/front/service/internal/server/rest.go b/backend/app/front/service/internal/server/rest.go index a9372fd1..ea786fff 100644 --- a/backend/app/front/service/internal/server/rest.go +++ b/backend/app/front/service/internal/server/rest.go @@ -23,7 +23,7 @@ import ( "kratos-cms/app/front/service/cmd/server/assets" "kratos-cms/app/front/service/internal/service" - frontV1 "kratos-cms/gen/api/go/front/service/v1" + frontV1 "kratos-cms/api/gen/go/front/service/v1" "kratos-cms/pkg/middleware/auth" ) diff --git a/backend/app/front/service/internal/service/attachment.go b/backend/app/front/service/internal/service/attachment.go index 95c80620..715abc01 100644 --- a/backend/app/front/service/internal/service/attachment.go +++ b/backend/app/front/service/internal/service/attachment.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - fileV1 "kratos-cms/gen/api/go/file/service/v1" - v1 "kratos-cms/gen/api/go/front/service/v1" + fileV1 "kratos-cms/api/gen/go/file/service/v1" + v1 "kratos-cms/api/gen/go/front/service/v1" ) type AttachmentService struct { diff --git a/backend/app/front/service/internal/service/authentication.go b/backend/app/front/service/internal/service/authentication.go index 78d90e29..b633db4d 100644 --- a/backend/app/front/service/internal/service/authentication.go +++ b/backend/app/front/service/internal/service/authentication.go @@ -6,8 +6,8 @@ import ( "github.com/go-kratos/kratos/v2/log" "google.golang.org/protobuf/types/known/emptypb" - frontV1 "kratos-cms/gen/api/go/front/service/v1" - userV1 "kratos-cms/gen/api/go/user/service/v1" + frontV1 "kratos-cms/api/gen/go/front/service/v1" + userV1 "kratos-cms/api/gen/go/user/service/v1" "kratos-cms/pkg/cache" "kratos-cms/pkg/middleware/auth" diff --git a/backend/app/front/service/internal/service/category.go b/backend/app/front/service/internal/service/category.go index c9c99c1e..9f285e42 100644 --- a/backend/app/front/service/internal/service/category.go +++ b/backend/app/front/service/internal/service/category.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" - v1 "kratos-cms/gen/api/go/front/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" + v1 "kratos-cms/api/gen/go/front/service/v1" ) type CategoryService struct { diff --git a/backend/app/front/service/internal/service/comment.go b/backend/app/front/service/internal/service/comment.go index 751df12c..1158caad 100644 --- a/backend/app/front/service/internal/service/comment.go +++ b/backend/app/front/service/internal/service/comment.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - commentV1 "kratos-cms/gen/api/go/comment/service/v1" - v1 "kratos-cms/gen/api/go/front/service/v1" + commentV1 "kratos-cms/api/gen/go/comment/service/v1" + v1 "kratos-cms/api/gen/go/front/service/v1" ) type CommentService struct { diff --git a/backend/app/front/service/internal/service/link.go b/backend/app/front/service/internal/service/link.go index a86e85a3..e9e805a8 100644 --- a/backend/app/front/service/internal/service/link.go +++ b/backend/app/front/service/internal/service/link.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" - v1 "kratos-cms/gen/api/go/front/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" + v1 "kratos-cms/api/gen/go/front/service/v1" ) type LinkService struct { diff --git a/backend/app/front/service/internal/service/post.go b/backend/app/front/service/internal/service/post.go index 8a3aa8d5..94b66780 100644 --- a/backend/app/front/service/internal/service/post.go +++ b/backend/app/front/service/internal/service/post.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" - v1 "kratos-cms/gen/api/go/front/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" + v1 "kratos-cms/api/gen/go/front/service/v1" ) type PostService struct { diff --git a/backend/app/front/service/internal/service/tag.go b/backend/app/front/service/internal/service/tag.go index e1dbc58f..34fef816 100644 --- a/backend/app/front/service/internal/service/tag.go +++ b/backend/app/front/service/internal/service/tag.go @@ -7,8 +7,8 @@ import ( "google.golang.org/protobuf/types/known/emptypb" pagination "github.com/tx7do/kratos-bootstrap/api/gen/go/pagination/v1" - contentV1 "kratos-cms/gen/api/go/content/service/v1" - v1 "kratos-cms/gen/api/go/front/service/v1" + contentV1 "kratos-cms/api/gen/go/content/service/v1" + v1 "kratos-cms/api/gen/go/front/service/v1" ) type TagService struct { diff --git a/backend/buf.lock b/backend/buf.lock deleted file mode 100644 index c91b5810..00000000 --- a/backend/buf.lock +++ /dev/null @@ -1,2 +0,0 @@ -# Generated by buf. DO NOT EDIT. -version: v1 diff --git a/backend/buf.yaml b/backend/buf.yaml deleted file mode 100644 index e98a7915..00000000 --- a/backend/buf.yaml +++ /dev/null @@ -1,9 +0,0 @@ -version: v1 - -breaking: - use: - - FILE - -lint: - use: - - DEFAULT diff --git a/backend/buf_deps.bzl b/backend/buf_deps.bzl deleted file mode 100644 index 9b3db1ea..00000000 --- a/backend/buf_deps.bzl +++ /dev/null @@ -1,2 +0,0 @@ -def buf_deps(): - pass diff --git a/backend/pkg/cache/user_token.go b/backend/pkg/cache/user_token.go index b92b43db..84bd652c 100644 --- a/backend/pkg/cache/user_token.go +++ b/backend/pkg/cache/user_token.go @@ -14,7 +14,7 @@ import ( authn "github.com/tx7do/kratos-authn/engine" authnEngine "github.com/tx7do/kratos-authn/engine" - userV1 "kratos-cms/gen/api/go/user/service/v1" + userV1 "kratos-cms/api/gen/go/user/service/v1" ) type UserToken struct {