syntax = "proto3"; package transform; message UserRequest { string id = 1; string phone = 2; } message UserResponse { string id = 1; string phone = 2; string roles = 3; int64 status = 4; int64 erpRoleType = 5; string userName = 6; string cityName = 7; int64 gender = 8; } message TokenRequest { string token = 1; } message TokenResponse { string UserId = 1; string UserRoleIds = 2; string UserSchoolIds = 3; string UserProvinceIds = 4; string UserOrganIds = 5; string SysSchoolId = 6; string SysOrganId = 7; } message Empty {} message TreeNodes{ repeated TreeNode nodes = 1; } message TreeNode{ int64 id = 1; string text = 2; int64 parent = 3; Tag tag = 4; repeated TreeNode nodes = 5; } message Tag{ int64 id = 1; string name = 2; } message OptionsetReq{ string code = 1; } message OptionsetRes{ map mapList=1; } message OptionCode{ string code = 1; } message Options{ string code = 1; string name = 2; string value = 3; } message ResponseByte{ bytes data = 1; } message ExcelLogReq { string Module = 1; string Cond = 2; string CreateBy = 3; string CreateTime = 4; string LastUpdateBy = 5; string LastUpdateTime = 6; string DelFlag = 7; } message ExcelLogRes { int64 Status = 1; } message SchoolIdsReq { repeated string names = 1; } message ListOfInt { repeated int64 ids = 1; } message SchoolIdsRes { map mapList=1; } message CityIdsReq { repeated string names = 1; } message CityIdsRes { map mapList=1; } message BytesReq{ bytes req = 1; } message BytesResp{ bytes resp = 1; } message GetErpRoleRes{ string user_id = 1; string role = 2; } message GetErpRoleReq{ string mobile = 1; string user_id = 2; } message GetErpOrganSchPerByUserIdReq{ string user_id = 1; } message GetErpOrganSchPerByUserIdRes{ repeated OrganSchool school = 1; } message OrganSchool { int64 id =1; string name = 2; int64 organ_id = 3; } message GetErpSchoolRes{ repeated OrganSchool school = 1; } message GetErpActiveReq{ uint64 sch_id = 1; } message GetErpActiveRes{ repeated Active active = 1; } message Active{ int64 active_id = 1; string ma_name = 2; } service Transform { rpc GetUser(UserRequest) returns(UserResponse); rpc ParseToken(TokenRequest) returns(TokenResponse); //获取erp 省、城市树 rpc GetErpCityTree(Empty) returns(TreeNodes); //获取erp 字典 rpc LoadOptionset(OptionsetReq) returns(OptionsetRes); rpc GetSchoolIds(SchoolIdsReq) returns(SchoolIdsRes); rpc GetCityIds(CityIdsReq) returns(CityIdsRes); rpc PostExcelLog(ExcelLogReq) returns(ExcelLogRes); rpc GetErpOptionset(OptionCode) returns(Options); //获取erp 渠道细分树 rpc GetErpMktNetWorkDetailTree(Empty) returns(TreeNodes); //获取erp 用户校区权限 rpc GetErpOrganSchPerByUserId(GetErpOrganSchPerByUserIdReq) returns(GetErpOrganSchPerByUserIdRes); //获取 erp 用户角色 rpc GetErpRole(GetErpRoleReq) returns(GetErpRoleRes); //获取 erp 全部校区 rpc GetErpSchool(Empty) returns(GetErpSchoolRes); //获取 erp 活动 rpc GetErpActive(GetErpActiveReq) returns(GetErpActiveRes); }