enterprise_management.proto 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. syntax = "proto3";
  2. import "v1/enterprise.proto";
  3. import "v1/project.proto";
  4. import "v1/device.proto";
  5. // package声明符,用来防止不同的消息类型有命名冲突
  6. package pb;
  7. // 用于生成指定语言go的包名称
  8. option go_package = "smart-enterprise-management/pb";
  9. service SmartSiteEnterprise {
  10. // 企业注册需政府审批
  11. rpc Register(v1.RegisterRequest) returns (v1.RegisterReply) {}
  12. // 企业登录
  13. rpc Login(v1.LoginRequest) returns (v1.LoginReply) {}
  14. rpc EmailPrepare(v1.EmailPrepareRequest) returns (v1.EmailPrepareReply) {}
  15. rpc EmailUpdate(v1.EmailUpdateRequest) returns (v1.EmailUpdateReply) {}
  16. rpc PhoneUpdate(v1.PhoneUpdateRequest) returns (v1.PhoneUpdateReply) {}
  17. rpc UserInfo(v1.UserInfoRequest) returns (v1.UserInfoReply) {}
  18. // 公示列表
  19. rpc Publicity(v1.PublicityRequest) returns (v1.PublicityReply) {}
  20. // 企业忘记密码设置密码
  21. rpc SetPasswd(v1.SetPasswdRequest) returns (v1.SetPasswdReply) {}
  22. // 添加工程
  23. rpc ProjectAdd(v1.ProjectAddRequest) returns (v1.ProjectAddReply) {}
  24. // 项目列表
  25. rpc ProjectList(v1.ProjectListRequest) returns (v1.ProjectListReply) {}
  26. // 项目账号列表
  27. rpc ProjectUserList(v1.ProjectUserListRequest) returns (v1.ProjectUserListReply) {}
  28. // 项目账号启停用
  29. rpc EnableProjectUser(v1.EnableProjectUserRequest) returns (v1.EnableProjectUserReply) {}
  30. // 企业注册状态
  31. rpc CompanyApproveStatus(v1.CompanyApproveStatusRequest) returns (v1.CompanyApproveStatusReply) {}
  32. // 企业修改密码
  33. rpc ChangePasswd(v1.ChangePasswdRequest) returns (v1.ChangePasswdReply) {}
  34. // 设备类型列表
  35. rpc DeviceTypeList(v1.DeviceTypeListRequest) returns (v1.DeviceTypeListReply) {}
  36. // 平台支持的设备类型
  37. rpc DeviceAllTypeList(v1.DeviceAllTypeListRequest) returns (v1.DeviceAllTypeListReply) {}
  38. // 设备列表
  39. rpc DeviceList(v1.DeviceListRequest) returns (v1.DeviceListReply) {}
  40. // 视频通道列表
  41. rpc ChannelList(v1.ChannelListRequest) returns (v1.ChannelListReply) {}
  42. // 视频设备列表
  43. rpc VedioList(v1.VedioListRequest) returns (v1.VedioListReply) {}
  44. // 更新项目
  45. rpc ProjectUpdate(v1.ProjectUpdateRequest) returns (v1.ProjectUpdateReply) {}
  46. // 获取省市区
  47. rpc ProjectDistrict(v1.ProjectDistrictRequest) returns (v1.ProjectDistrictReply) {}
  48. // 重置项目账号密码
  49. rpc ProjectUserPasswordReset(v1.ProjectUserPasswordResetRequest) returns (v1.ProjectUserPasswordResetReply) {}
  50. rpc ProjectInfo(v1.ProjectInfoRequest) returns (v1.ProjectInfoReply) {}
  51. rpc ProjectDel(v1.ProjectDelRequest) returns (v1.ProjectDelReply) {}
  52. rpc ProjectFinish(v1.ProjectFinishRequest) returns (v1.ProjectFinishReply) {}
  53. }