refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
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";
|
||||
|
||||
// 单页管理
|
||||
service Pages{
|
||||
@@ -15,13 +15,13 @@ service Pages{
|
||||
rpc GetByKey (GetPagesByKeyRequest) returns (PagesItem) {};
|
||||
|
||||
//发布单页
|
||||
rpc Create(PagesItem) returns (StatusReply) {};
|
||||
rpc Create(PagesItem) returns (blocks.StatusReply) {};
|
||||
|
||||
//修改单页
|
||||
rpc Modify(PagesItem) returns (StatusReply) {};
|
||||
rpc Modify(PagesItem) returns (blocks.StatusReply) {};
|
||||
|
||||
//删除单页
|
||||
rpc Delete(IdentRequest) returns (StatusReply) {};
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.StatusReply) {};
|
||||
}
|
||||
|
||||
// 根据KEY获取内容请求
|
||||
@@ -45,8 +45,8 @@ message PagesItem{
|
||||
bool has_accessory = 12 [json_name = "has_accessory"]; //是否有附件,默认没有
|
||||
|
||||
repeated string accessory_identity_array = 13 [json_name = "accessory_identity_array"]; //附件Identity 列表
|
||||
repeated AccessoryItem accessory_data = 14 [json_name = "accessory_data"]; //附件数据
|
||||
repeated TagsItem tags_data = 15 [json_name = "tags_data"]; // 标签数据
|
||||
repeated blocks.CmsAccessoryItem accessory_data = 14 [json_name = "accessory_data"]; //附件数据
|
||||
repeated blocks.CmsTagsItem tags_data = 15 [json_name = "tags_data"]; // 标签数据
|
||||
repeated string tags_identity_array = 16 [json_name = "tags_identity_array"]; // 标签集Identity 列表
|
||||
int64 hits = 17; //点击量
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user