refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,72 +1,72 @@
|
||||
syntax = "proto3";
|
||||
package mall;
|
||||
option go_package = ".;mall";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/ec/mall/pb;mall";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
// 产品相关
|
||||
service Product{
|
||||
// 获取产品列表
|
||||
rpc ItemFetch(FetchRequest) returns(ListReply) {};
|
||||
rpc ItemFetch(blocks.MallFetchRequest) returns(ListReply) {};
|
||||
|
||||
// 获取产品详情
|
||||
rpc ItemDetail(IdentRequest) returns(ProductItem) {};
|
||||
rpc ItemDetail(blocks.IdentRequest) returns(ProductItem) {};
|
||||
|
||||
// 通过产品序列获取产品详情
|
||||
rpc ItemDetailBySerial(StoreSerialRequest) returns(ListReply) {};
|
||||
rpc ItemDetailBySerial(blocks.StoreSerialRequest) returns(ListReply) {};
|
||||
|
||||
// 通过规格编号获取产品详情
|
||||
rpc ItemDetailBySpec(DetailBySpecRequest) returns(ListItem) {};
|
||||
|
||||
// 添加产品
|
||||
rpc ItemCreate(ProductItem) returns(StatusReply) {};
|
||||
rpc ItemCreate(ProductItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 删除产品
|
||||
rpc ItemDelete(IdentRequest) returns(StatusReply) {};
|
||||
rpc ItemDelete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 发布/取消发布 产品
|
||||
rpc ItemModify(ModifyRequest) returns(StatusReply) {};
|
||||
rpc ItemModify(ModifyRequest) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 批量操作
|
||||
rpc ItemBatchOp(OpRequest) returns(StatusReply) {};
|
||||
rpc ItemBatchOp(OpRequest) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 产品规格列表
|
||||
rpc SpecFetch(FetchRequest) returns(SpecReply) {};
|
||||
rpc SpecFetch(blocks.MallFetchRequest) returns(SpecReply) {};
|
||||
|
||||
// 添加产品规格
|
||||
rpc SpecCreate(SpecItem) returns(StatusReply) {};
|
||||
rpc SpecCreate(SpecItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 修改产品规格
|
||||
rpc SpecModify(SpecItem) returns(StatusReply) {};
|
||||
rpc SpecModify(SpecItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 删除产品规格
|
||||
rpc SpecDelete(IdentRequest) returns(StatusReply) {};
|
||||
rpc SpecDelete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 产品详情
|
||||
rpc SpecDetail(IdentRequest) returns(SpecItem) {};
|
||||
rpc SpecDetail(blocks.IdentRequest) returns(SpecItem) {};
|
||||
|
||||
// 添加产品图片
|
||||
rpc PhotoCreate(PhotoItem) returns(StatusReply){};
|
||||
rpc PhotoCreate(PhotoItem) returns(blocks.IdentityStatusReply){};
|
||||
|
||||
// 删除产品图片
|
||||
rpc PhotoDelete(IdentRequest) returns(StatusReply){};
|
||||
rpc PhotoDelete(blocks.IdentRequest) returns(blocks.IdentityStatusReply){};
|
||||
|
||||
// 产品图片列表
|
||||
rpc PhotoList(PhotoItem) returns(PhotoReply){};
|
||||
|
||||
// 产品的评论列表
|
||||
rpc CommentFetch(FetchRequest) returns (CommentListReply) {};
|
||||
rpc CommentFetch(blocks.MallFetchRequest) returns (CommentListReply) {};
|
||||
|
||||
// 评论
|
||||
rpc CommentCreate(CommentItem) returns(StatusReply) {};
|
||||
rpc CommentCreate(CommentItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 回复评论
|
||||
rpc CommentRe(CommentItem) returns(StatusReply) {};
|
||||
rpc CommentRe(CommentItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 删除评论
|
||||
rpc CommentDelete(IdentRequest) returns(StatusReply) {};
|
||||
rpc CommentDelete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 修改评论
|
||||
rpc CommentModify(CommentItem) returns(StatusReply) {};
|
||||
rpc CommentModify(CommentItem) returns(blocks.IdentityStatusReply) {};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user