refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,24 +1,24 @@
syntax = "proto3";
package cms;
option go_package = ".;cms";
import "blocks.proto";
option go_package = "bsm/full/module/base/cms/pb;cms";
import "protobuf/blocks.proto";
// CMS - 站点
service Site {
// 站点列表
rpc Fetch (Empty) returns (SiteListReply) {};
rpc Fetch (blocks.Empty) returns (SiteListReply) {};
// 站点详情
rpc Get (IdentRequest) returns (SiteItem) {};
rpc Get (blocks.IdentRequest) returns (SiteItem) {};
// 添加站点
rpc Create (SiteItem) returns (StatusReply) {};
rpc Create (SiteItem) returns (blocks.StatusReply) {};
// 修改站点
rpc Modify (SiteItem) returns (StatusReply) {};
rpc Modify (SiteItem) returns (blocks.StatusReply) {};
// 删除站点
rpc Delete (IdentRequest) returns (StatusReply) {};
rpc Delete (blocks.IdentRequest) returns (blocks.StatusReply) {};
}
// 站点列表