| | |
| | | rpc GetCrmSalesDetailsList(GetCrmSalesDetailsListRequest) returns(GetCrmSalesDetailsListResponse) {} |
| | | rpc SendSalesDetailsAndProjectToCrm(SendSalesDetailsAndProjectToCrmRequest) returns(SendSalesDetailsAndProjectToCrmResponse) {} |
| | | rpc GetClientList(GetClientListRequest) returns(GetClientListResponse) {} |
| | | rpc GetClientMaxId(ClientMaxIdRequest) returns(ClientMaxIdResponse) {} |
| | | rpc AddClient(AddClientRequest) returns(ClientMsgResponse) {} |
| | | rpc EditClient(EditClientRequest) returns(ClientMsgResponse) {} |
| | | rpc DelClient(DelClientRequest) returns(ClientMsgResponse) {} |
| | | rpc UpdateSalesDetail(UpdateSalesDetailRequest) returns(UpdateSalesDetailResponse) {} |
| | | rpc RemoveSalesDetail(RemoveSalesDetailRequest) returns(RemoveSalesDetailResponse) {} |
| | | rpc CrmGetMakeAndOutsourcingProductInfo(CrmGetMakeAndOutsourcingProductInfoRequest) returns(CrmGetMakeAndOutsourcingProductInfoResponse) {} |
| | |
| | | |
| | | //-----------------------------------------------------SendSalesDetailsToApsProject--------------------------------------- |
| | | |
| | | message SalesDetailsProduct { |
| | | message SalesDetailsProduct{ |
| | | string ProductId = 1; |
| | | int64 Amount = 2; |
| | | } |
| | |
| | | |
| | | //-----------------------------------------------------GetCrmSalesDetailsList-------------------------------------------- |
| | | |
| | | message GetCrmSalesDetailsListRequest { |
| | | message GetCrmSalesDetailsListRequest{ |
| | | string TimeType = 1; //时间类型:签约日期,交付日期 |
| | | string StartTime = 2; |
| | | string EndTime = 3; |
| | |
| | | int64 PageSize = 6; |
| | | } |
| | | |
| | | message CrmSalesDetails { |
| | | message CrmSalesDetails{ |
| | | string number = 1;//销售明细单号 |
| | | string clientName = 2; |
| | | string memberName = 3;//销售负责人 |
| | |
| | | string deliveryDate = 5;//交货日期 |
| | | } |
| | | |
| | | message GetCrmSalesDetailsListResponse { |
| | | message GetCrmSalesDetailsListResponse{ |
| | | repeated CrmSalesDetails SalesDetails = 1; |
| | | int64 Total = 2; |
| | | } |
| | |
| | | repeated Client list = 2; |
| | | } |
| | | |
| | | message Client { |
| | | message Client{ |
| | | string number = 1; |
| | | string name = 2; |
| | | int64 id = 3; |
| | | } |
| | | |
| | | message ClientMaxIdRequest{ |
| | | |
| | | message UpdateSalesDetailRequest { |
| | | } |
| | | message ClientMaxIdResponse{ |
| | | int64 id = 1; |
| | | } |
| | | |
| | | message AddClientRequest{ |
| | | int64 id = 1 ; |
| | | string number = 2; // 客户编号 |
| | | string name = 3; // 客户名称 |
| | | string detailAddress = 4; // 详细地址 |
| | | string remark = 5 ; // 备注 |
| | | int64 creatorId = 6; // 创建人id |
| | | } |
| | | |
| | | message EditClientRequest{ |
| | | int64 id = 1 ; |
| | | string number = 2; // 客户编号 |
| | | string name = 3; // 客户名称 |
| | | string detailAddress = 4; // 详细地址 |
| | | string remark = 5 ; // 备注 |
| | | int64 creatorId = 6; // 创建人id |
| | | } |
| | | |
| | | message DelClientRequest{ |
| | | int64 id = 1; |
| | | string number = 2; |
| | | } |
| | | |
| | | message ClientMsgResponse{ |
| | | int64 code = 1; |
| | | string msg = 2; |
| | | string id = 3; |
| | | } |
| | | |
| | | //---------------------------------------------------------------------- |
| | | |
| | | message UpdateSalesDetailRequest{ |
| | | string number = 1;//销售明细单号 |
| | | int32 status = 2;//状态 |
| | | } |
| | | |
| | | message UpdateSalesDetailResponse {} |
| | | message UpdateSalesDetailResponse{} |
| | | |
| | | message RemoveSalesDetailRequest { |
| | | //---------------------------------------------------------------------- |
| | | |
| | | message RemoveSalesDetailRequest{ |
| | | string number = 1;//销售明细单号 |
| | | } |
| | | |
| | | message RemoveSalesDetailResponse {} |
| | | message RemoveSalesDetailResponse{} |
| | | |
| | | message CrmGetMakeAndOutsourcingProductInfoRequest{ |
| | | string SalesDetailsNumber = 1; |
| | | } |
| | | |
| | | message CrmGetMakeAndOutsourcingProductInfo { |
| | | message CrmGetMakeAndOutsourcingProductInfo{ |
| | | int64 Amount = 1; |
| | | int64 FinishAmount = 2; |
| | | string ProductId = 3; |
| | | int64 Type = 4; |
| | | } |
| | | |
| | | //---------------------------------------------------------------------- |
| | | |
| | | message CrmGetMakeAndOutsourcingProductInfoResponse{ |
| | | repeated CrmGetMakeAndOutsourcingProductInfo Info = 1; |
| | | } |