supplier_management.proto 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. // 设备对接
  16. rpc DeviceDocking(v1.DeviceDockingRequest) returns (v1.DeviceDockingReply) {}
  17. // 添加设备
  18. rpc DeviceAdd(v1.DeviceAddRequest) returns (v1.DeviceAddReply) {}
  19. //拆机申请
  20. rpc DeviceDel(v1.DeviceDelRequest) returns (v1.DeviceDelReply) {}
  21. // 设备类型列表
  22. rpc DeviceTypeList(v1.DeviceTypeListRequest) returns (v1.DeviceTypeListReply) {}
  23. // 供应商设备列表
  24. rpc DeviceList(v1.DeviceListRequest) returns (v1.DeviceListReply) {}
  25. // 项目列表
  26. rpc ProjectList(v1.ProjectListRequest) returns (v1.ProjectListReply) {}
  27. // 公示列表
  28. rpc Publicity(v1.PublicityRequest) returns (v1.PublicityReply) {}
  29. // 找回密码
  30. rpc SetPasswd(v1.SetPasswdRequest) returns (v1.SetPasswdReply) {}
  31. rpc DeviceDelJobList(v1.DeviceDelJobListRequest) returns (v1.DeviceDelJobListReply) {}
  32. rpc ProviderApproveStatus(v1.ProviderApproveStatusRequest) returns (v1.ProviderApproveStatusReply) {}
  33. rpc ChannelList(v1.ChannelListRequest) returns (v1.ChannelListReply) {}
  34. rpc ChannelAdd(v1.ChannelAddRequest) returns (v1.ChannelAddReply) {}
  35. rpc ChannelUpdate(v1.ChannelUpdateRequest) returns (v1.ChannelUpdateReply) {}
  36. rpc VedioAdd(v1.VedioAddRequest) returns (v1.VedioAddReply) {}
  37. rpc VedioList(v1.VedioListRequest) returns (v1.VedioListReply) {}
  38. rpc ChangePasswd(v1.ChangePasswdRequest) returns (v1.ChangePasswdReply) {}
  39. }