syntax = "proto3"; option go_package ="./pb"; message MyDataAssetReq { string userId = 1; int64 newUserId = 2; int64 entUserId = 3; } message MyDataAssetResp { int64 error_code = 1; string error_msg = 2; MyDataAsset data = 3; } message MyDataAsset { int64 collect_info_count = 1; int64 follow_project_count = 2; int64 collect_doc_count = 3; int64 claim_customer_count = 4; int64 claim_nzj_count = 5; } message AddProjectReq { string info_id = 1; //信息id int64 source = 2; //1-收藏,2-招标搜索,3-关注 int64 position_id = 3; //职位id int64 position_type = 4; //职位类型 int64 account_id = 5; //账户id string company_name = 6; string user_name = 7; int64 userId = 8; int64 entId = 9; string entUserName = 10; } message AddProjectResp { int64 error_code = 1; string error_msg = 2; AddProject data = 3; } message AddProject { int64 status = 1; int64 count = 2; } message GetInfoIdResp { int64 error_code = 1; string error_msg = 2; repeated string data = 3; } message DrawClueReq { int64 positionId = 1; int64 count = 2; } message CallReq { int64 position_id =1; string phone =2; } message Resp { int64 error_code = 1; string error_msg = 2; string data = 3; } message Reply { int64 error_code = 1; string error_msg = 2; bytes data = 3; } message DistributeClueReq { string clueCount = 1; repeated int64 clueIdList = 2; repeated DistributeDatas datas = 3; int64 positionId = 4; int64 isTask = 5; } message DistributeDatas { string name = 1; int64 positionId = 2; string totalCount = 3; string uncompletedCount = 4; int64 distributedCount = 5; } message ClueImportReq { string pcbh = 1; int64 positionId = 2; } message ClueImportResp { int64 error_code = 1; string error_msg = 2; ClueImport data = 3; } message ClueImport { int64 status = 1; string result = 2; } message ClueAddReq { string phone = 1; string username = 2; string source = 3; string status999 = 4; string owner = 5; string empNo = 6; string company = 7; string isPolicymaker = 8; string belongToIndustry = 9; string job = 10; string customerNeeds = 11; string belongTo = 12; string wantGoods = 13; string customerBudget = 14; } message SqlManageReq { float id = 1; repeated Param params = 2; } message MyInfoReq { string bid = 1; string sid = 2; } message Param { string value = 1; string type = 2; } service BiService { rpc myDataAsset (MyDataAssetReq) returns (MyDataAssetResp); //我的数据资产 rpc addProject (AddProjectReq) returns (AddProjectResp); //添加项目 rpc getInfoId (AddProjectReq) returns (GetInfoIdResp); //获取添加过项目的信息id rpc drawClue (DrawClueReq) returns (AddProjectResp); //领取线索 rpc Call (CallReq) returns (Resp); //外呼集成 rpc distributeClue (DistributeClueReq) returns (AddProjectResp); //批量分配 rpc clueImport (ClueImportReq) returns (ClueImportResp); //线索导入 rpc clueAdd (ClueAddReq) returns (AddProjectResp); //合力亿捷新增线索 rpc clueImportTt (ClueImportReq) returns (ClueImportResp); //线索导入tt rpc autoFollow (CallReq) returns (ClueImportResp); rpc sqlManage (SqlManageReq) returns (Reply); //bi通用接口 rpc myInfo (MyInfoReq) returns (Reply); //用户身份 }