syntax = "proto3"; package common; option go_package = "./common"; // message ProjectReq { string appId = 1;//剑鱼标识 默认10000 } //地区信息 message AreaResp { int64 err_code = 1; string err_msg = 2; repeated Province data = 3;//城市信息 } // message Province{ string code = 1;//省份编码 string name = 2;//省份名称 repeated City citys = 3;//城市信息 } // message City{ string code = 1;//城市编码 string name = 2;//城市名称 } //行业信息 message IndustryResp{ int64 err_code = 1; string err_msg = 2; Idata data = 3; } message Idata { repeated Infotype infotype = 1;//信息类型 repeated Supply buyerclass = 2;//采购单位类型 repeated Industry industry = 3;//行业 } message Supply{ string name = 1; } message Industry{ string name = 1; } // message Infotype{ int64 id = 1; string name = 2; repeated IndustryChildsResp childs = 3; } //二级行业 message IndustryChildsResp{ string name = 1; string code = 2; } message StateRequest { string Id = 1;//mysql 信息id string publishId = 2;//mongodb bidding信息id // repeated Request message = 1; } message StateResponse { int64 err_code = 1; string err_msg = 2; } message SensitiveRequest { string Id = 1;//信息id string MsgType = 2;//信息类型:1:招标信息;2:采购信息;3:供应信息 repeated string Title = 3;//标题 repeated string Detail = 4;//详情 string Attachments = 5;//附件 string AttachTxt = 6;//附件备注 } message SensitiveResponse { int64 err_code = 1; string err_msg = 2; } // service commonInfo { //获取省份信息 rpc AreaInfo(ProjectReq) returns(AreaResp); //获取行业信息 rpc IndustryInfo(ProjectReq) returns(IndustryResp); //修改信息发布状态 rpc StateMethod(StateRequest) returns (StateResponse); // rpc SensitiveMethod(SensitiveRequest) returns (SensitiveResponse); }