2026-08-09 10:43:45 +08:00
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
package mall;
|
2026-08-09 15:10:19 +08:00
|
|
|
|
option go_package = "bsm/full/module/ec/mall/pb;mall";
|
2026-08-09 20:14:57 +08:00
|
|
|
|
import "module/ec/mall/proto/const.proto";
|
2026-08-09 10:43:45 +08:00
|
|
|
|
|
|
|
|
|
|
// Store(店铺)微服务-公告
|
|
|
|
|
|
service Notice{
|
|
|
|
|
|
// 公告列表
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc Fetch(blocks.MallFetchRequest) returns (NoticeListReply){};
|
2026-08-09 10:43:45 +08:00
|
|
|
|
|
|
|
|
|
|
// 新建公告
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc Create (NoticeItem) returns (blocks.IdentityStatusReply){};
|
2026-08-09 10:43:45 +08:00
|
|
|
|
|
|
|
|
|
|
// 修改公告
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc Modify (NoticeItem) returns (blocks.IdentityStatusReply){};
|
|
|
|
|
|
|
2026-08-09 10:43:45 +08:00
|
|
|
|
// 删除公告
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc Delete (blocks.IdentRequest) returns (blocks.IdentityStatusReply){};
|
2026-08-09 10:43:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 公告列表
|
|
|
|
|
|
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为正常
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|