syntax = "proto3"; import "v1/supplier.proto"; import "v1/device.proto"; // package声明符,用来防止不同的消息类型有命名冲突 package pb; // 用于生成指定语言go的包名称 option go_package = "smart-supplier-management/pb"; service SmartSiteSupplier { rpc Register(v1.RegisterRequest) returns (v1.RegisterReply) {} rpc Login(v1.LoginRequest) returns (v1.LoginReply) {} rpc EmailPrepare(v1.EmailPrepareRequest) returns (v1.EmailPrepareReply) {} rpc EmailUpdate(v1.EmailUpdateRequest) returns (v1.EmailUpdateReply) {} rpc PhoneUpdate(v1.PhoneUpdateRequest) returns (v1.PhoneUpdateReply) {} rpc UserInfo(v1.UserInfoRequest) returns (v1.UserInfoReply) {} rpc ProviderInfo(v1.ProviderInfoRequest) returns (v1.ProviderInfoReply) {} // 设备类型申请 rpc DeviceTypeAdd(v1.DeviceTypeAddRequest) returns (v1.DeviceTypeAddReply) {} // 设备类型对接申请 rpc DeviceTypeTestingAdd(v1.DeviceTypeTestingAddRequest) returns (v1.DeviceTypeTestingAddReply) {} // 添加设备 rpc DeviceAdd(v1.DeviceAddRequest) returns (v1.DeviceAddReply) {} //拆机申请 rpc DeviceDel(v1.DeviceDelRequest) returns (v1.DeviceDelReply) {} // 设备类型列表 rpc DeviceTypeList(v1.DeviceTypeListRequest) returns (v1.DeviceTypeListReply) {} // 供应商设备列表 rpc DeviceList(v1.DeviceListRequest) returns (v1.DeviceListReply) {} // 项目列表 rpc ProjectList(v1.ProjectListRequest) returns (v1.ProjectListReply) {} // 公示列表 rpc Publicity(v1.PublicityRequest) returns (v1.PublicityReply) {} // 找回密码 rpc SetPasswd(v1.SetPasswdRequest) returns (v1.SetPasswdReply) {} rpc DeviceDelJobList(v1.DeviceDelJobListRequest) returns (v1.DeviceDelJobListReply) {} rpc ProviderApproveStatus(v1.ProviderApproveStatusRequest) returns (v1.ProviderApproveStatusReply) {} rpc ChannelList(v1.ChannelListRequest) returns (v1.ChannelListReply) {} rpc ChannelAdd(v1.ChannelAddRequest) returns (v1.ChannelAddReply) {} rpc ChannelUpdate(v1.ChannelUpdateRequest) returns (v1.ChannelUpdateReply) {} rpc VedioAdd(v1.VedioAddRequest) returns (v1.VedioAddReply) {} rpc VedioList(v1.VedioListRequest) returns (v1.VedioListReply) {} rpc ChangePasswd(v1.ChangePasswdRequest) returns (v1.ChangePasswdReply) {} }