syntax = "proto3";
|
|
option go_package = "./crm_aps";
|
|
service CrmAndApsGrpcService {
|
rpc GetApsProjectList(GetApsProjectListRequest) returns(GetApsProjectListResponse) {}
|
rpc SendSalesDetailsToApsProject(SendSalesDetailsToApsProjectRequest) returns(SendSalesDetailsToApsProjectResponse) {}
|
}
|
|
//-----------------------------------------------------GetApsProjectList--------------------------------------
|
|
message GetApsProjectListRequest{
|
}
|
|
message ApsProject{
|
string projectId = 1;
|
string projectName = 2;
|
}
|
|
message GetApsProjectListResponse{
|
repeated ApsProject List = 1;
|
}
|
|
//-----------------------------------------------------SendSalesDetailsToApsProject---------------------------------------
|
|
message SalesDetailsProduct {
|
string ProductId = 1;
|
int64 Amount = 2;
|
}
|
|
message SendSalesDetailsToApsProjectRequest{
|
string Number = 1;//销售明细单号
|
string ClientName = 2;
|
string MemberName = 3;//销售负责人
|
string SignTime = 4;//签单时间
|
string DeliveryDate = 5;//交货日期
|
string Source = 6;//订单来源
|
int64 ProductTotal = 7;//产品总数
|
string ProjectId = 8;//项目id
|
repeated SalesDetailsProduct Products = 9;
|
}
|
|
message SendSalesDetailsToApsProjectResponse{
|
}
|