refactor: reorganize modules and add Linux build tooling
This commit is contained in:
44
module/base/cms/proto/site.proto
Normal file
44
module/base/cms/proto/site.proto
Normal file
@@ -0,0 +1,44 @@
|
||||
syntax = "proto3";
|
||||
package cms;
|
||||
option go_package = ".;cms";
|
||||
import "blocks.proto";
|
||||
|
||||
// CMS - 站点
|
||||
service Site {
|
||||
// 站点列表
|
||||
rpc Fetch (Empty) returns (SiteListReply) {};
|
||||
|
||||
// 站点详情
|
||||
rpc Get (IdentRequest) returns (SiteItem) {};
|
||||
|
||||
// 添加站点
|
||||
rpc Create (SiteItem) returns (StatusReply) {};
|
||||
|
||||
// 修改站点
|
||||
rpc Modify (SiteItem) returns (StatusReply) {};
|
||||
|
||||
// 删除站点
|
||||
rpc Delete (IdentRequest) returns (StatusReply) {};
|
||||
}
|
||||
|
||||
// 站点列表
|
||||
message SiteListReply {
|
||||
// 数据
|
||||
repeated SiteItem data = 1;
|
||||
// 总数
|
||||
int64 count = 2;
|
||||
}
|
||||
|
||||
// 添加站点请求
|
||||
message SiteItem{
|
||||
int64 id = 1; // 唯一ID
|
||||
string identity = 2; // 添加站点请求唯一码
|
||||
string title = 3; // 标题
|
||||
string description = 4 ; // 站点描述
|
||||
string icon_path = 5 [json_name = "icon_path"]; // 站点图标
|
||||
string keywords = 6; // 关键字
|
||||
string domain = 7; // 站点域名
|
||||
string seo = 8; // SEO
|
||||
string theme = 9; // 站点主题
|
||||
string configs = 10; // 站点配置
|
||||
}
|
||||
Reference in New Issue
Block a user