| | |
| | | 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) {} |
| | |
| | | message Client { |
| | | string number = 1; |
| | | string name = 2; |
| | | int64 id = 3; |
| | | } |
| | | |
| | | message ClientMaxIdRequest{ |
| | | |
| | | } |
| | | 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;//销售明细单号 |
| | |
| | | } |
| | | |
| | | message UpdateSalesDetailResponse {} |
| | | |
| | | //---------------------------------------------------------------------- |
| | | |
| | | message RemoveSalesDetailRequest { |
| | | string number = 1;//销售明细单号 |
| | |
| | | int64 Type = 4; |
| | | } |
| | | |
| | | //---------------------------------------------------------------------- |
| | | |
| | | message CrmGetMakeAndOutsourcingProductInfoResponse{ |
| | | repeated CrmGetMakeAndOutsourcingProductInfo Info = 1; |
| | | } |