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

35 lines
1012 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 Member {
// 获取配送员列表
rpc MemberList(FetchRequest) returns (MemberListReply) {};
// 添加配送员
rpc MemberAdd(MemberItem) returns (StatusReply) {};
// 获取配送员数据
rpc MemberGet(IdentRequest)returns (MemberItem) {};
// 修改配送员
rpc MemberSet(MemberItem) returns (StatusReply) {};
// 删除配送员
rpc MemberDel(IdentRequest) returns (StatusReply) {};
}
message MemberItem{
string identity = 1; // 唯一标识
string name = 2; // 姓名
string team_identity = 3; // 团队唯一标识
string picture = 4; // 头像
string phone = 5; // 联系人电话
int64 status = 6; // 状态1正常;-1禁用
int64 turnover = 7; // 总成交量
}
message MemberListReply{
int64 count = 1;
repeated MemberItem list = 2;
}