123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- 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;
- string UserPhone = 8;
- }
- 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 ErpMktNetWorkDetail{
- repeated TreeNode nodes = 5;
- int64 id = 1;
- string text = 2;
- int64 parent = 3;
- string inheritance = 4;
- }
- message ErpMktNetWorkDetailRes{
- repeated ErpMktNetWorkDetail items = 5;
- }
- message ErpMktNetWorkDetailReq {
- string ids = 1;
- }
- message Tag{
- int64 id = 1;
- string name = 2;
- }
- message OptionsetReq{
- string code = 1;
- }
- message OptionsetRes{
- map<string, string> 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<string, int64> mapList=1;
- }
- message CityIdsReq {
- string names = 1;
- }
- message CityMkReq {
- string phones = 1;
- }
- message CityIdsRes {
- map<string, int64> mapList=1;
- }
- message CityMkRes {
- map<string, string> mapList=1;
- }
- message BytesReq{
- bytes req = 1;
- }
- message BytesResp{
- bytes resp = 1;
- }
- message GetErpRoleRes{
- string user_id = 1;
- string role = 2;
- int64 sch_id = 3;
- }
- 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;
- }
- message DataPermissionReq {
- string rule_code = 1;
- string user_id = 2;
- }
- message DataPermissionRes {
- map<string, string> mapList=1;
- }
- message MktReq {
- int64 Id = 1;
- string MkId = 2;
- int64 PartTimeUserId = 3;
- int64 UserId = 4;
- string StuName = 5;
- int64 AgeGroup = 6;
- int64 StuLinkPerson = 7;
- string StuPhone = 8;
- int64 SchId = 9;
- string Address = 10;
- string CreateTime = 11;
- int64 DelFlag = 12;
- int64 CheckState = 13;
- string CheckTime = 14;
- string CheckBy = 15;
- int64 NetworkDetailId = 16;
- int64 ActiveId = 17;
- int64 CallType = 18;
- int64 MaType = 19;
- int64 QuaoYji = 20;
- int64 MktActivityId = 21;
- int64 LoadSchId = 22;
- string Remark = 23;
- int64 Gender = 24;
- }
- message MktRes {
- int64 Status = 1;
- }
- message StudentReq {
- int64 Id = 1;
- }
- message StudentRes {
- int64 Id = 1;
- string StuPhone = 2;
- string CreateBy = 3;
- string CreateTime = 4;
- }
- message ErpUserReq{
- string ErpId =1;
- }
- message ErpUserRes {
- int64 OsId = 1;
- string OsName = 2;
- }
- service Transform {
- rpc GetUser(UserRequest) returns(UserResponse);
- rpc ParseToken(TokenRequest) returns(TokenResponse);
- //获取erp 省、城市树
- rpc GetErpCityTree(Empty) returns(TreeNodes);
- rpc AddMkt(MktReq) returns(MktRes);
- //获取erp 字典
- rpc LoadOptionset(OptionsetReq) returns(OptionsetRes);
- rpc GetSchoolIds(SchoolIdsReq) returns(SchoolIdsRes);
- rpc GetCityIds(CityIdsReq) returns(CityIdsRes);
- rpc GetMkIds(CityMkReq) returns(CityMkRes);
- rpc PostExcelLog(ExcelLogReq) returns(ExcelLogRes);
- rpc GetErpOptionset(OptionCode) returns(Options);
- rpc GetStudent(StudentReq) returns(StudentRes);
- //获取数据权限
- rpc GetDataPermission(DataPermissionReq) returns(DataPermissionRes);
- //获取erp 渠道细分树
- rpc GetErpMktNetWorkDetailTree(Empty) returns(TreeNodes);
- //获取erp 渠道细分树
- rpc GetErpMktNetWorkDetail(ErpMktNetWorkDetailReq) returns(ErpMktNetWorkDetailRes);
- //获取erp 用户校区权限
- rpc GetErpOrganSchPerByUserId(GetErpOrganSchPerByUserIdReq) returns(GetErpOrganSchPerByUserIdRes);
- //获取 erp 用户角色
- rpc GetErpRole(GetErpRoleReq) returns(GetErpRoleRes);
- //获取 erp 全部校区
- rpc GetErpSchool(Empty) returns(GetErpSchoolRes);
- //获取 erp 活动
- rpc GetErpActive(GetErpActiveReq) returns(GetErpActiveRes);
- //获取erp 省、城、校区
- rpc GetErpOrganSchTree(Empty) returns(TreeNodes);
- // 查看erp用户是否正常
- rpc GetErpUser(ErpUserReq) returns(ErpUserRes);
- }
|