2026-08-09 10:43:45 +08:00
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
package delivery;
|
2026-08-09 15:10:19 +08:00
|
|
|
|
option go_package = "bsm/full/module/ec/delivery/external/pb/delivery;delivery";
|
|
|
|
|
|
import "protobuf/blocks.proto";
|
2026-08-09 10:43:45 +08:00
|
|
|
|
|
|
|
|
|
|
// Delivery(配送)微服务
|
|
|
|
|
|
service Car {
|
|
|
|
|
|
// 配送车辆列表
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc CarList(blocks.FetchRequest) returns (CarListReply) {};
|
2026-08-09 10:43:45 +08:00
|
|
|
|
|
|
|
|
|
|
// 添加配送车辆信息
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc CarAdd(CarItem) returns (blocks.DeliveryStatusReply) {};
|
|
|
|
|
|
|
2026-08-09 10:43:45 +08:00
|
|
|
|
// 获取配送车辆信息
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc CarGet(blocks.IdentRequest)returns (CarItem) {};
|
|
|
|
|
|
|
2026-08-09 10:43:45 +08:00
|
|
|
|
// 修改配送车辆信息
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc CarSet(CarItem) returns (blocks.DeliveryStatusReply) {};
|
|
|
|
|
|
|
2026-08-09 10:43:45 +08:00
|
|
|
|
// 删除配送车辆信息
|
2026-08-09 15:10:19 +08:00
|
|
|
|
rpc CarDel(blocks.IdentRequest) returns (blocks.DeliveryStatusReply) {};
|
|
|
|
|
|
|
2026-08-09 10:43:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
message CarListReply{
|
2026-08-09 15:10:19 +08:00
|
|
|
|
int64 count = 1;
|
|
|
|
|
|
repeated CarItem list = 2;
|
2026-08-09 10:43:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message CarItem{
|
|
|
|
|
|
string identity = 1; // 唯一标识
|
|
|
|
|
|
string brand = 2; // 品牌
|
|
|
|
|
|
string version = 3; // 型号
|
|
|
|
|
|
string license_number = 4; // 车牌号
|
|
|
|
|
|
string team_identity = 5; // 团队唯一标识
|
|
|
|
|
|
string contacts = 6; // 联系人姓名
|
|
|
|
|
|
string phone = 7; // 联系人电话
|
|
|
|
|
|
int64 status = 8; // 状态:1正常;-1禁用
|
|
|
|
|
|
string picture = 9; // 车辆图片
|
|
|
|
|
|
}
|