Files
full/module/ec/delivery/proto/car.proto

41 lines
1.2 KiB
Protocol Buffer
Raw 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 delivery;
option go_package = "bsm/full/module/ec/delivery/external/pb/delivery;delivery";
import "protobuf/blocks.proto";
// Delivery(配送)微服务
service Car {
// 配送车辆列表
rpc CarList(blocks.FetchRequest) returns (CarListReply) {};
// 添加配送车辆信息
rpc CarAdd(CarItem) returns (blocks.DeliveryStatusReply) {};
// 获取配送车辆信息
rpc CarGet(blocks.IdentRequest)returns (CarItem) {};
// 修改配送车辆信息
rpc CarSet(CarItem) returns (blocks.DeliveryStatusReply) {};
// 删除配送车辆信息
rpc CarDel(blocks.IdentRequest) returns (blocks.DeliveryStatusReply) {};
}
message CarListReply{
int64 count = 1;
repeated CarItem list = 2;
}
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; // 车辆图片
}