supplier_management.proto 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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-gateway/pb";
  8. service SmartSiteSupplier {
  9. rpc Register(v1.RegisterRequest) returns (v1.RegisterReply) {}
  10. rpc EmailPrepare(v1.EmailPrepareRequest) returns (v1.EmailPrepareReply) {}
  11. rpc EmailUpdate(v1.EmailUpdateRequest) returns (v1.EmailUpdateReply) {}
  12. rpc PhoneUpdate(v1.PhoneUpdateRequest) returns (v1.PhoneUpdateReply) {}
  13. rpc UserInfo(v1.UserInfoRequest) returns (v1.UserInfoReply) {}
  14. rpc Login(v1.LoginRequest) returns (v1.LoginReply) {}
  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. }