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

@@ -6,19 +6,19 @@ import "module/base/cms/proto/const.proto";
// CMS - 站点
service Site {
// 站点列表
rpc Fetch (blocks.Empty) returns (SiteListReply) {};
rpc Fetch (base_cms_blocks.Empty) returns (SiteListReply) {};
// 站点详情
rpc Get (blocks.IdentRequest) returns (SiteItem) {};
rpc Get (base_cms_blocks.IdentRequest) returns (SiteItem) {};
// 添加站点
rpc Create (SiteItem) returns (blocks.StatusReply) {};
rpc Create (SiteItem) returns (base_cms_blocks.StatusReply) {};
// 修改站点
rpc Modify (SiteItem) returns (blocks.StatusReply) {};
rpc Modify (SiteItem) returns (base_cms_blocks.StatusReply) {};
// 删除站点
rpc Delete (blocks.IdentRequest) returns (blocks.StatusReply) {};
rpc Delete (base_cms_blocks.IdentRequest) returns (base_cms_blocks.StatusReply) {};
}
// 站点列表
@@ -41,4 +41,4 @@ message SiteItem{
string seo = 8; // SEO
string theme = 9; // 站点主题
string configs = 10; // 站点配置
}
}