Files
full/apps/ec/delivery/proto/team.proto

37 lines
961 B
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 = "./delivery";
import "blocks.proto";
// Delivery(配送)微服务
service Team {
// 配送团队列表
rpc TeamList(FetchRequest) returns (TeamListReply) {};
// 添加配送团队
rpc TeamAdd(TeamItem) returns (StatusReply) {};
// 配送团队详情
rpc TeamGet(IdentRequest) returns (TeamItem) {};
// 修改配送团队信息
rpc TeamSet(TeamItem) returns (StatusReply) {};
// 删除配送团队
rpc TeamDel(IdentRequest) returns (StatusReply) {};
}
message TeamListReply{
int64 count = 1;
repeated TeamItem list = 2;
}
message TeamItem{
string identity = 1; // 唯一标识
string title = 2; // 团队名称
string owner = 3; // 归属者唯一标识
string contacts = 4; // 联系人姓名
string phone = 5; // 联系人电话
int64 status = 6; // 状态1正常;-1禁用
string logo = 7; // 团队图标地址
}