supplier_management.proto 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. syntax = "proto3";
  2. import "v1/supplier.proto";
  3. import "v1/device.proto";
  4. // package声明符,用来防止不同的消息类型有命名冲突
  5. package pb;
  6. // 用于生成指定语言go的包名称
  7. option go_package = "smart-supplier-management/pb";
  8. service SmartSiteSupplier {
  9. rpc Register(v1.RegisterRequest) returns (v1.RegisterReply) {}
  10. rpc Login(v1.LoginRequest) returns (v1.LoginReply) {}
  11. rpc EmailPrepare(v1.EmailPrepareRequest) returns (v1.EmailPrepareReply) {}
  12. rpc EmailUpdate(v1.EmailUpdateRequest) returns (v1.EmailUpdateReply) {}
  13. rpc PhoneUpdate(v1.PhoneUpdateRequest) returns (v1.PhoneUpdateReply) {}
  14. rpc UserInfo(v1.UserInfoRequest) returns (v1.UserInfoReply) {}
  15. rpc ProviderInfo(v1.ProviderInfoRequest) returns (v1.ProviderInfoReply) {}
  16. // 设备类型申请
  17. rpc DeviceTypeAdd(v1.DeviceTypeAddRequest) returns (v1.DeviceTypeAddReply) {}
  18. // 设备类型对接申请
  19. rpc DeviceTypeTestingAdd(v1.DeviceTypeTestingAddRequest) returns (v1.DeviceTypeTestingAddReply) {}
  20. // 添加设备
  21. rpc DeviceAdd(v1.DeviceAddRequest) returns (v1.DeviceAddReply) {}
  22. //拆机申请
  23. rpc DeviceDel(v1.DeviceDelRequest) returns (v1.DeviceDelReply) {}
  24. // 设备类型列表
  25. rpc DeviceTypeList(v1.DeviceTypeListRequest) returns (v1.DeviceTypeListReply) {}
  26. // 供应商设备列表
  27. rpc DeviceList(v1.DeviceListRequest) returns (v1.DeviceListReply) {}
  28. // 项目列表
  29. rpc ProjectList(v1.ProjectListRequest) returns (v1.ProjectListReply) {}
  30. // 公示列表
  31. rpc Publicity(v1.PublicityRequest) returns (v1.PublicityReply) {}
  32. // 找回密码
  33. rpc SetPasswd(v1.SetPasswdRequest) returns (v1.SetPasswdReply) {}
  34. rpc DeviceDelJobList(v1.DeviceDelJobListRequest) returns (v1.DeviceDelJobListReply) {}
  35. rpc ProviderApproveStatus(v1.ProviderApproveStatusRequest) returns (v1.ProviderApproveStatusReply) {}
  36. rpc ChannelList(v1.ChannelListRequest) returns (v1.ChannelListReply) {}
  37. rpc ChannelAdd(v1.ChannelAddRequest) returns (v1.ChannelAddReply) {}
  38. rpc ChannelUpdate(v1.ChannelUpdateRequest) returns (v1.ChannelUpdateReply) {}
  39. rpc VedioAdd(v1.VedioAddRequest) returns (v1.VedioAddReply) {}
  40. rpc VedioList(v1.VedioListRequest) returns (v1.VedioListReply) {}
  41. rpc ChangePasswd(v1.ChangePasswdRequest) returns (v1.ChangePasswdReply) {}
  42. }