refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,29 +1,29 @@
syntax = "proto3";
package delivery;
option go_package = "./delivery";
import "blocks.proto";
option go_package = "bsm/full/module/ec/delivery/external/pb/delivery;delivery";
import "protobuf/blocks.proto";
// Delivery(配送)微服务
service Car {
// 配送车辆列表
rpc CarList(FetchRequest) returns (CarListReply) {};
rpc CarList(blocks.FetchRequest) returns (CarListReply) {};
// 添加配送车辆信息
rpc CarAdd(CarItem) returns (StatusReply) {};
rpc CarAdd(CarItem) returns (blocks.DeliveryStatusReply) {};
// 获取配送车辆信息
rpc CarGet(IdentRequest)returns (CarItem) {};
rpc CarGet(blocks.IdentRequest)returns (CarItem) {};
// 修改配送车辆信息
rpc CarSet(CarItem) returns (StatusReply) {};
rpc CarSet(CarItem) returns (blocks.DeliveryStatusReply) {};
// 删除配送车辆信息
rpc CarDel(IdentRequest) returns (StatusReply) {};
rpc CarDel(blocks.IdentRequest) returns (blocks.DeliveryStatusReply) {};
}
message CarListReply{
int64 count = 1;
repeated CarItem list = 2;
int64 count = 1;
repeated CarItem list = 2;
}