syntax = "proto3"; option go_package = "./pb"; //机构认证 入参 message EntAuthReq{ string name = 1;//机构/企业名称 string creditCode = 2; //统一社会信用代码 string areaNumber = 3; //省市(行政区划代码) string business = 4; //营业执照 string officialLetter = 5; //认证公函 string organizationType = 6; //机构类型 1投标企业 2招标采购单位 3厂商 4招标代理机构 5经销商 6服务提供商 7其他 string comPanyType = 7; //机构性质 1企业 2党政机关事业单位及其他 string authName = 8; //联系人姓名 string authPhone = 9; //联系人手机号 string phone = 10; //注册手机号 int64 entId = 11;//企业id } //机构认证出参 message EntAuthResp{ int64 error_code = 1; string error_msg = 2; EntAuthData data = 3; } //机构认证出参 message EntAuthData{ int64 status = 1; string entId = 2; //加密的entid } //机构审核入参 message ExamineReq{ int64 EntId = 1; //企业id string AuthType = 2;//审核状态 2审核通过 3审核不通过 string Reason = 3;//不通过原因 string AuditUser = 4; //审核人 string ExamineId = 5; //审核id 认证记录表主键id } //机构审核出参 message ExamineResp{ int64 error_code = 1; string error_msg = 2; ExamineData data = 3; } message ExamineData{ int64 status = 1; } //企业列表入参 message EntListReq{ string name = 1;//企业名称 string pageNum = 2;//页码,不传默认第一页 第一页为0 string pageSize = 3;//每页显示条数,不传默认为10 string creditCode = 4;//统一社会信用代码 string createStartTime = 5;//创建开始时间戳 string createEndTime = 6;//创建结束时间戳 string authStatus = 7;//认证状态 0未认证 1已认证 string validStartTime = 8; //有效截至开始时间戳 string validEndTime = 9; //有效截止时间戳 string frozenStatus = 10; //冻结状态 1正常 0冻结 string regPhone = 11; //注册人手机号 即管理员手机号 string authPhone = 12;//联系人手机号 } //企业列表出参 message EntListResp{ int64 error_code = 1; string error_msg = 2; EntData data = 3; //列表 } message EntData{ int64 count = 1; int64 pageSize = 2; repeated EntList list = 3; } message EntList { int64 id = 1; //机构id int64 comPanyType = 2;// 机构性质 1企业 2党政机关事业单位及其他 string name = 3;//机构名称 string organizationType = 4;//机构类型 1企业 2党政机关事业单位及其他 string createtime = 5;//创建时间 string validTime = 6; //有效截至日期 int64 authStatus = 7;//认证状态 int64 frozenStatus = 8;//冻结状态 1冻结 0未冻结 } //审核列表入参 message ExamineListReq{ string name = 1; //机构名称 string authPhone = 2; //联系人手机号 string regPhone = 3; //注册人手机号 string authType = 4;//审核状态 1:待审核 2:审核通过 3:审核不通过 string authStartTime = 5;//申请开始时间 string authEndTime = 6;//申请结束时间 string pageNum = 7; //页码 string pageSize = 8; //每页展示条数 } //审核列表出参 message ExamineListResp{ int64 error_code = 1; string error_msg = 2; ExamineListData data = 3; //列表 } message ExamineListData{ int64 count = 1; int64 pageSize = 2; repeated ExamineList list = 3; } message ExamineList { int64 id = 1; //机构id int64 entId = 2; //企业id int64 comPanyType = 3;// 机构性质 1企业 2党政机关事业单位及其他 string name = 4;//机构名称 string creditCode = 5;//统一社会信用代码 string authPhone = 6;//联系人手机号 string applyTime = 7; //申请时间戳 int64 authType = 8;//审核状态 1:待审核 2:审核通过 3:审核不通过 string regPhone = 9; //注册人手机号 } //查看企业状态入参 message CheckEntReq{ int64 entId = 1; //企业id } //查看企业状态出参 message CheckEntResp{ int64 error_code = 1; string error_msg = 2; checkData data = 3; } message checkData { int64 authStatus = 1;//企业是否认证 -1 未通过,0 未认证,1 已认证. -2 已到期 3待审核 int64 frozenStatus = 2; //冻结 1正常 0冻结 } message EntInfoResp{ int64 error_code = 1; string error_msg = 2; EntInfoData data = 3; //列表 } message EntInfoData{ string name = 1; //名称 string areaNumber = 2; //区域代码 string contactPerson = 3; //联系人 string contactPhone = 4; //联系电话 int64 authState = 5; //0未认证 1已认证 string industry = 6; //行业 int64 companyType = 7; //1-事业单位 0-企业 string creditCode = 8; //统一社会信用代码 string legalPerson = 9; //法人姓名 string business = 10; //营业执照 string officialLetter = 11; //认证公函 string organizationType = 12;//机构类型 1投标企业 2招标采购单位 3厂商 4招标代理机构 5经销商 6服务提供商 7其他, 多个,隔开 int64 authType = 13; //1待审核 2审核通过 3审核不通过 int64 forzenStatus = 14; //1冻结 0未冻结 string auditUser = 15; //审核人 string auditTime = 16; //审核时间 string createTime = 17; //创建时间 string authStartTime = 18; //认证开始时间 string authEndTime = 19; //认证截止时间 string authReason = 20; //审核原因 string authTime = 21; //申请时间 string regPhone = 22; //注册人手机号 } message EntUpdateReq{ int64 entId = 1; //企业id int64 updateType = 2; //1-冻结 2-解冻 } //审核详情入参 message CheckExamineReq{ int64 examineId = 1; //审核id } message GetStatusByCodeReq{ string code = 1; //统一社会信用代码 string phone = 2;//注册手机号 } message GetStatusByCodeResp{ int64 error_code = 1; string error_msg = 2; GetStatusByCode data = 3; //详情 } //用户权益 message UserInfo{ string phone = 1;//手机号 int64 vipStatus = 2;//超级订阅状态; >0有权限 <=0无权限 int64 memberStatus = 3;//大会员状态; >0:有权限 <=0:无权限 int64 entnicheStatus = 4;//商机管理权限状态; 1:有权限 -1:无权限 string subscribeType = 5;//订阅设置类型 f:免费订阅 v:超级订阅 m:大会员订阅 e:商机管理订阅 Subscribe data = 6; string error_msg = 7; int64 error_code = 8; string nickname = 9; string headimg = 10; } //订阅设置 message Subscribe{ int64 startTime = 1;//开始时间 int64 endTime = 2;//结束时间 map area = 3;//地区 repeated string buyerclass = 4;//采购单位类型 repeated string infotype = 5;//信息类型 repeated Items items = 6;//关键词 int64 matchway = 7;//匹配方式 1标题 2正文 int64 projectmatch = 8;//项目匹配 } message List{ repeated string value = 1; } //分类 message Items{ string s_item = 1;//分类名称 int64 updateTime = 2; repeated Keys a_key = 3; } //关键词 message Keys { repeated string key = 1; repeated string notkey = 2; int64 updateTime = 3; int64 matchway = 4; } message UserReq{ string appId = 1; int64 userId = 2; string types = 3;//类型,不传按默认规则获取 m大会员 e商机管理 v超级订阅 f免费订阅 } message EntUserReq{ string appId = 1; int64 entUserId = 2; int64 entId = 3; } message EntUserResp{ int64 error_code = 1; string error_msg = 2; EntUser data = 3; } message EntUser{ string Name = 1; //员工名册 string phone = 2;//员工手机号 string mail = 3;//邮箱 string deptName = 4;//部门名称 int64 entUserId = 5; } message EntUserListReq{ string appId = 1; int64 entId = 2; int64 deptId = 3; string name = 4; } message EntUserListResp{ int64 error_code = 1; string error_msg = 2; repeated EntUserListData data = 3; } message EntUserListData{ string name = 1; int64 deptId = 2; int64 pId = 3; repeated EntUser entUserList = 4; repeated EntUserListData deptList = 5; } message CheckIsEntAdminResp{ int64 error_code = 1; string error_msg = 2; int64 status = 3; //1企业管理员 2部门管理员 3员工 } message GetStatusByCode { int64 authStatus = 1;//企业是否认证 -1 未通过,0 未认证,1 已认证. -2 已到期 3待审核 bool isInEnt = 2; //是否在该企业内 } message UserAddReq { string appid = 1; string phone = 2; string nickname = 3; string headimg = 4; string company = 5; string position = 6; string password = 7; string s_openid = 8; string a_openid = 9; string unionid = 10; string idCard = 11; string address = 12; int64 sex = 13; } message UserAddResp { int64 error_code = 1; string error_msg = 2; UserAdds data = 3; } message UserAdds { int64 status = 1; int64 id = 2; } message UserIdReq { string appid = 1; int64 id = 2; string phone = 3; string nickname = 4; string headimg = 5; string company = 6; string position = 7; string password = 8; string s_openid = 9; string a_openid = 10; string unionid = 11; } //工作桌面 message WorkDesktopMenuInfoReq{ string userId = 1; string appId = 2; string platform = 3; string phone = 4; string newUserId = 5; string entId = 6; string entUserId = 7; bool intranetBool = 8; int64 workStatus = 9; string accountId =10; string positionType =11; string positionId =12; string mgoUserId = 13; string entAccountId = 14; } //工作桌面-返回数据 message WorkDesktopMenuInfoResp{ int64 error_code = 1; string error_msg = 2; MenuData data = 3; } message MenuData{ string menuType = 1; repeated MenuList menuList = 2; } message MenuList{ string name = 1; string icon = 2; string url = 3; bool usable = 4; string id = 5; string appType = 6; string openType = 7; TipInfo tipInfo = 8; repeated SecondLevelMenu child = 9; repeated string match = 10; } message SecondLevelMenu{ string name = 1; string icon = 2; string url = 3; bool usable = 4; string id = 5; string appType = 6; string openType = 7; TipInfo tipInfo = 8; repeated ThreeLevelMenu child = 9; repeated string match = 10; } message ThreeLevelMenu{ string name = 1; string icon = 2; string url = 3; bool usable = 4; string id = 5; string appType = 6; string openType = 7; TipInfo tipInfo = 8; repeated string match = 10; string groupName = 11; } message TipInfo { string title = 1; string content = 2; string confirmUrl = 3; string confirmText = 4; bool isShowCancel = 5; string appType = 6; string openType = 7; } //工作桌面 菜单选择类型 全部/可用 //工作桌面 常用功能更新 message WorkDesktopComprehensiveReq{ string userId = 1; string appId = 2; string platform = 3; string phone = 4; string actionMode = 5; string menuMode = 6; string menuIds = 7; string newUserId = 8; string entId = 9; string entUserId = 10; string accountId =11; string positionType =12; string positionId =13; bool intranetBool = 14; string mgoUserId = 15; string entAccountId = 16; } //工作桌面 综合功能-返回数据 message WorkDesktopComprehensiveResp{ int64 error_code = 1; string error_msg = 2; repeated ThreeLevelMenu data = 3; } //清除用户功能相关内存信息 message WorkDesktopClearUserInfoReq{ string userId = 1; string appId = 2; string positionId =3; string platform = 4; } //清除用户菜单缓存结果 message WorkDesktopClearUserInfoResp{ bool b = 1; string msg = 2; } // message IdentityReq{ int64 id = 1; } message Identity{ string name = 1; int64 personId = 2; string userName = 3; int64 accountId = 4; int64 entAccountId = 5; int64 positionId = 6; int64 positionType = 7; int64 entId = 8; int64 entUserId = 9; string entUserName = 10; int64 userId = 11; } message IdentityResp{ repeated Identity identitys = 1; } message UserIdentityReq{ string appId = 1; int64 baseUserId = 2; int64 entId = 3; } message UserIdentityResp{ int64 error_code = 1; string error_msg = 2; int64 personId = 3;//自然人id int64 userAccountId = 4;//个人账户id int64 entAccountId = 5; //企业账户id int64 entUserAccountId = 6;//企业雇员账户id int64 userPositionId = 7; // 个人职位id int64 entUserPositionId = 8;// 企业雇员职位id string userName = 9; //昵称 } service UserCenter { //企业认证 rpc EntAuth (EntAuthReq) returns (EntAuthResp); //机构审核 rpc EntExamine (ExamineReq) returns (ExamineResp); //企业列表 rpc EntList (EntListReq) returns (EntListResp); //审核列表 rpc ExamineList (ExamineListReq) returns (ExamineListResp); //查看企业状态 rpc CheckEnt (CheckEntReq) returns (CheckEntResp); //查看企业详情 rpc EntInfo (CheckEntReq) returns (EntInfoResp); //冻结/解冻企业 rpc EntUpdate (EntUpdateReq) returns (ExamineResp); //查看审核详情 rpc ExamineInfo (CheckExamineReq) returns (EntInfoResp); //根据统一社会信用代码查询企业状态 rpc GetStatusByCode(GetStatusByCodeReq) returns (GetStatusByCodeResp); //新增用户 rpc UserAdd (UserAddReq) returns (UserAddResp); //更新用户 rpc UserUpdate (UserIdReq) returns (ExamineResp); //删除用户 rpc UserDel (UserIdReq) returns (ExamineResp); //获取菜单树 rpc WorkDesktopMenuInfo (WorkDesktopMenuInfoReq) returns (WorkDesktopMenuInfoResp); //菜单选择模式||常用功能更新||常用功能列表 rpc WorkDesktopComprehensive (WorkDesktopComprehensiveReq) returns (WorkDesktopComprehensiveResp); //手动清除用户功能内存信息 rpc WorkDesktopClearUserInfo (WorkDesktopClearUserInfoReq) returns (WorkDesktopClearUserInfoResp); //获取客户信息 rpc GetUserInfo(UserReq) returns (UserInfo); //根据企业员工id获取员工的信息 rpc GetEntUserInfo(EntUserReq) returns (EntUserResp); //获取企业员工列表 rpc GetEntUserList (EntUserListReq) returns (EntUserListResp); //查看员工是否是企业管理员 rpc CheckIsEntAdmin(EntUserReq) returns (CheckIsEntAdminResp); //获取用户可切换的身份列表 rpc IdentityList(IdentityReq) returns (IdentityResp); //获取账号id获取个人身份信息 rpc IdentityByUserId(IdentityReq) returns (Identity); //根据职位id获取身份信息 rpc IdentityByPositionId(IdentityReq) returns (Identity); //根据企业员工id获取身份信息 rpc IdentityByEntUserId(IdentityReq) returns (Identity); //根据企业id获取身份信息 rpc IdentityByEntId(IdentityReq) returns (Identity); //获取用户身份相关参数 rpc UserIdentity (UserIdentityReq) returns (UserIdentityResp); }