Files
full/module/ec/mall/proto/notice.proto

40 lines
1.1 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
package mall;
option go_package = "bsm/full/module/ec/mall/pb;mall";
import "module/ec/mall/proto/const.proto";
// Store(店铺)微服务-公告
service Notice{
// 公告列表
rpc Fetch(blocks.MallFetchRequest) returns (NoticeListReply){};
// 新建公告
rpc Create (NoticeItem) returns (blocks.IdentityStatusReply){};
// 修改公告
rpc Modify (NoticeItem) returns (blocks.IdentityStatusReply){};
// 删除公告
rpc Delete (blocks.IdentRequest) returns (blocks.IdentityStatusReply){};
}
// 公告列表
message NoticeListReply{
repeated NoticeItem data = 1;
int64 count = 2;
}
// 公告
message NoticeItem{
string identity = 1; // 唯一标识
string title = 2; // 标题
string content = 3; // 内容
string author = 4; // 作者
int64 store_id=5 [json_name="store_id"]; // 店铺ID
string store_identity = 6 [json_name="store_identity"]; // 店铺唯一标识
string created_at = 7 [json_name="created_at"];
int64 status = 8;// 状态默认为0-1禁止1为正常
}