refactor: add unified all service gateway

This commit is contained in:
2026-08-10 10:03:46 +08:00
parent 5ea45a76fe
commit f994b2de9c
143 changed files with 2853 additions and 2129 deletions

View File

@@ -1014,7 +1014,8 @@ const file_module_base_cms_proto_post_proto_rawDesc = "" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12$\n" +
"\rpost_identity\x18\x02 \x01(\tR\rpost_identity\"'\n" +
"\x13GetPostByKeyRequest\x12\x10\n" +
"\x03key\x18\x03 \x01(\tR\x03key\"\xf6\t\n" +
"\x03key\x18\x03 \x01(\tR\x03key\"\x91\n" +
"\n" +
"\bPostItem\x12$\n" +
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x1a\n" +
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1a\n" +
@@ -1051,10 +1052,10 @@ const file_module_base_cms_proto_post_proto_rawDesc = "" +
"\fcomment_hits\x18\x16 \x01(\x03R\fcomment_hits\x12\x1c\n" +
"\tpost_type\x18\x17 \x01(\x05R\tpost_type\x12\x16\n" +
"\x06rights\x18\x18 \x01(\tR\x06rights\x12\x10\n" +
"\x03key\x18\x19 \x01(\tR\x03key\x12=\n" +
"\rcategory_data\x18\x1a \x03(\v2\x17.blocks.CmsCategoryItemR\rcategory_data\x121\n" +
"\ttags_data\x18\x1b \x03(\v2\x13.blocks.CmsTagsItemR\ttags_data\x12@\n" +
"\x0eaccessory_data\x18\x1c \x03(\v2\x18.blocks.CmsAccessoryItemR\x0eaccessory_data\x12\x12\n" +
"\x03key\x18\x19 \x01(\tR\x03key\x12F\n" +
"\rcategory_data\x18\x1a \x03(\v2 .base_cms_blocks.CmsCategoryItemR\rcategory_data\x12:\n" +
"\ttags_data\x18\x1b \x03(\v2\x1c.base_cms_blocks.CmsTagsItemR\ttags_data\x12I\n" +
"\x0eaccessory_data\x18\x1c \x03(\v2!.base_cms_blocks.CmsAccessoryItemR\x0eaccessory_data\x12\x12\n" +
"\x04lang\x18\x1d \x01(\tR\x04lang\x12$\n" +
"\rsource_origin\x18\x1e \x01(\tR\rsource_origin\x12\x1e\n" +
"\n" +
@@ -1114,28 +1115,29 @@ const file_module_base_cms_proto_post_proto_rawDesc = "" +
"\vop_identity\x18\x02 \x01(\tR\vop_identity\"h\n" +
"\x18CommentOpIdentityRequest\x12*\n" +
"\x10comment_identity\x18\x01 \x01(\tR\x10comment_identity\x12 \n" +
"\vop_identity\x18\x02 \x01(\tR\vop_identity2\xaa\t\n" +
"\vop_identity\x18\x02 \x01(\tR\vop_identity2\xba\n" +
"\n" +
"\x04Post\x123\n" +
"\x05Fetch\x12\x14.cms.PostListRequest\x1a\x12.cms.PostListReply\"\x00\x125\n" +
"\rGetByIdentity\x12\x13.cms.GetPostRequest\x1a\r.cms.PostItem\"\x00\x125\n" +
"\bGetByKey\x12\x18.cms.GetPostByKeyRequest\x1a\r.cms.PostItem\"\x00\x128\n" +
"\x06Search\x12\x18.blocks.CmsSearchRequest\x1a\x12.cms.PostListReply\"\x00\x12.\n" +
"\x06Create\x12\r.cms.PostItem\x1a\x13.blocks.StatusReply\"\x00\x12.\n" +
"\x06Modify\x12\r.cms.PostItem\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
"\fIncrPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
"\fDescPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12C\n" +
"\x0eIncrPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12C\n" +
"\x0eDescPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12B\n" +
"\vCommentList\x12\x17.cms.CommentListRequest\x1a\x18.cms.CommentListResponse\"\x00\x125\n" +
"\bGetByKey\x12\x18.cms.GetPostByKeyRequest\x1a\r.cms.PostItem\"\x00\x12A\n" +
"\x06Search\x12!.base_cms_blocks.CmsSearchRequest\x1a\x12.cms.PostListReply\"\x00\x127\n" +
"\x06Create\x12\r.cms.PostItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x127\n" +
"\x06Modify\x12\r.cms.PostItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12G\n" +
"\x06Delete\x12\x1d.base_cms_blocks.IdentRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12J\n" +
"\fIncrPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12J\n" +
"\fDescPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12L\n" +
"\x0eIncrPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12L\n" +
"\x0eDescPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12B\n" +
"\vCommentList\x12\x17.cms.CommentListRequest\x1a\x18.cms.CommentListResponse\"\x00\x12>\n" +
"\n" +
"AddComment\x12\x10.cms.CommentItem\x1a\x13.blocks.StatusReply\"\x00\x128\n" +
"\rModifyComment\x12\x10.cms.CommentItem\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
"\rDeleteComment\x12\x19.cms.DeleteCommentRequest\x1a\x13.blocks.StatusReply\"\x00\x12G\n" +
"\x0fIncrCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12G\n" +
"\x0fDescCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12I\n" +
"\x11IncrCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12I\n" +
"\x11DescCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
"AddComment\x12\x10.cms.CommentItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12A\n" +
"\rModifyComment\x12\x10.cms.CommentItem\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12J\n" +
"\rDeleteComment\x12\x19.cms.DeleteCommentRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12P\n" +
"\x0fIncrCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12P\n" +
"\x0fDescCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12R\n" +
"\x11IncrCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00\x12R\n" +
"\x11DescCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x1c.base_cms_blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
var (
file_module_base_cms_proto_post_proto_rawDescOnce sync.Once
@@ -1162,27 +1164,27 @@ var file_module_base_cms_proto_post_proto_goTypes = []any{
(*CommentListResponse)(nil), // 8: cms.CommentListResponse
(*PostOpIdentityRequest)(nil), // 9: cms.PostOpIdentityRequest
(*CommentOpIdentityRequest)(nil), // 10: cms.CommentOpIdentityRequest
(*CmsCategoryItem)(nil), // 11: blocks.CmsCategoryItem
(*CmsTagsItem)(nil), // 12: blocks.CmsTagsItem
(*CmsAccessoryItem)(nil), // 13: blocks.CmsAccessoryItem
(*CmsSearchRequest)(nil), // 14: blocks.CmsSearchRequest
(*IdentRequest)(nil), // 15: blocks.IdentRequest
(*StatusReply)(nil), // 16: blocks.StatusReply
(*CmsCategoryItem)(nil), // 11: base_cms_blocks.CmsCategoryItem
(*CmsTagsItem)(nil), // 12: base_cms_blocks.CmsTagsItem
(*CmsAccessoryItem)(nil), // 13: base_cms_blocks.CmsAccessoryItem
(*CmsSearchRequest)(nil), // 14: base_cms_blocks.CmsSearchRequest
(*IdentRequest)(nil), // 15: base_cms_blocks.IdentRequest
(*StatusReply)(nil), // 16: base_cms_blocks.StatusReply
}
var file_module_base_cms_proto_post_proto_depIdxs = []int32{
11, // 0: cms.PostItem.category_data:type_name -> blocks.CmsCategoryItem
12, // 1: cms.PostItem.tags_data:type_name -> blocks.CmsTagsItem
13, // 2: cms.PostItem.accessory_data:type_name -> blocks.CmsAccessoryItem
11, // 0: cms.PostItem.category_data:type_name -> base_cms_blocks.CmsCategoryItem
12, // 1: cms.PostItem.tags_data:type_name -> base_cms_blocks.CmsTagsItem
13, // 2: cms.PostItem.accessory_data:type_name -> base_cms_blocks.CmsAccessoryItem
2, // 3: cms.PostListReply.data:type_name -> cms.PostItem
6, // 4: cms.CommentItem.list:type_name -> cms.CommentItem
6, // 5: cms.CommentListResponse.list:type_name -> cms.CommentItem
3, // 6: cms.Post.Fetch:input_type -> cms.PostListRequest
5, // 7: cms.Post.GetByIdentity:input_type -> cms.GetPostRequest
1, // 8: cms.Post.GetByKey:input_type -> cms.GetPostByKeyRequest
14, // 9: cms.Post.Search:input_type -> blocks.CmsSearchRequest
14, // 9: cms.Post.Search:input_type -> base_cms_blocks.CmsSearchRequest
2, // 10: cms.Post.Create:input_type -> cms.PostItem
2, // 11: cms.Post.Modify:input_type -> cms.PostItem
15, // 12: cms.Post.Delete:input_type -> blocks.IdentRequest
15, // 12: cms.Post.Delete:input_type -> base_cms_blocks.IdentRequest
9, // 13: cms.Post.IncrPostLike:input_type -> cms.PostOpIdentityRequest
9, // 14: cms.Post.DescPostLike:input_type -> cms.PostOpIdentityRequest
9, // 15: cms.Post.IncrPostUnlike:input_type -> cms.PostOpIdentityRequest
@@ -1199,21 +1201,21 @@ var file_module_base_cms_proto_post_proto_depIdxs = []int32{
2, // 26: cms.Post.GetByIdentity:output_type -> cms.PostItem
2, // 27: cms.Post.GetByKey:output_type -> cms.PostItem
4, // 28: cms.Post.Search:output_type -> cms.PostListReply
16, // 29: cms.Post.Create:output_type -> blocks.StatusReply
16, // 30: cms.Post.Modify:output_type -> blocks.StatusReply
16, // 31: cms.Post.Delete:output_type -> blocks.StatusReply
16, // 32: cms.Post.IncrPostLike:output_type -> blocks.StatusReply
16, // 33: cms.Post.DescPostLike:output_type -> blocks.StatusReply
16, // 34: cms.Post.IncrPostUnlike:output_type -> blocks.StatusReply
16, // 35: cms.Post.DescPostUnlike:output_type -> blocks.StatusReply
16, // 29: cms.Post.Create:output_type -> base_cms_blocks.StatusReply
16, // 30: cms.Post.Modify:output_type -> base_cms_blocks.StatusReply
16, // 31: cms.Post.Delete:output_type -> base_cms_blocks.StatusReply
16, // 32: cms.Post.IncrPostLike:output_type -> base_cms_blocks.StatusReply
16, // 33: cms.Post.DescPostLike:output_type -> base_cms_blocks.StatusReply
16, // 34: cms.Post.IncrPostUnlike:output_type -> base_cms_blocks.StatusReply
16, // 35: cms.Post.DescPostUnlike:output_type -> base_cms_blocks.StatusReply
8, // 36: cms.Post.CommentList:output_type -> cms.CommentListResponse
16, // 37: cms.Post.AddComment:output_type -> blocks.StatusReply
16, // 38: cms.Post.ModifyComment:output_type -> blocks.StatusReply
16, // 39: cms.Post.DeleteComment:output_type -> blocks.StatusReply
16, // 40: cms.Post.IncrCommentLike:output_type -> blocks.StatusReply
16, // 41: cms.Post.DescCommentLike:output_type -> blocks.StatusReply
16, // 42: cms.Post.IncrCommentUnlike:output_type -> blocks.StatusReply
16, // 43: cms.Post.DescCommentUnlike:output_type -> blocks.StatusReply
16, // 37: cms.Post.AddComment:output_type -> base_cms_blocks.StatusReply
16, // 38: cms.Post.ModifyComment:output_type -> base_cms_blocks.StatusReply
16, // 39: cms.Post.DeleteComment:output_type -> base_cms_blocks.StatusReply
16, // 40: cms.Post.IncrCommentLike:output_type -> base_cms_blocks.StatusReply
16, // 41: cms.Post.DescCommentLike:output_type -> base_cms_blocks.StatusReply
16, // 42: cms.Post.IncrCommentUnlike:output_type -> base_cms_blocks.StatusReply
16, // 43: cms.Post.DescCommentUnlike:output_type -> base_cms_blocks.StatusReply
25, // [25:44] is the sub-list for method output_type
6, // [6:25] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name