supplier_management.pb.go 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: supplier_management.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "smart-supplier-management-gateway/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("supplier_management.proto", fileDescriptor_66d11ba1f8070d46)
  26. }
  27. var fileDescriptor_66d11ba1f8070d46 = []byte{
  28. // 543 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5d, 0x8b, 0x13, 0x31,
  30. 0x14, 0x86, 0x45, 0x50, 0xd6, 0xa8, 0xeb, 0x36, 0xfd, 0xda, 0x56, 0x10, 0x11, 0xf1, 0x46, 0xda,
  31. 0x52, 0x5d, 0x10, 0x04, 0xc1, 0xba, 0x55, 0x50, 0x7a, 0x51, 0x76, 0x5c, 0x2f, 0xf4, 0x42, 0x32,
  32. 0x9d, 0xe3, 0x6c, 0x74, 0x3a, 0x89, 0x99, 0x74, 0x96, 0xfe, 0x6f, 0x7f, 0x80, 0x4c, 0x32, 0xf9,
  33. 0x9a, 0x0e, 0x7b, 0x37, 0x79, 0xce, 0xfb, 0x9e, 0xc9, 0x39, 0x49, 0x0e, 0x1a, 0x15, 0x3b, 0xce,
  34. 0x33, 0x0a, 0xe2, 0xe7, 0x96, 0xe4, 0x24, 0x85, 0x2d, 0xe4, 0x72, 0xca, 0x05, 0x93, 0x0c, 0xdf,
  35. 0xe6, 0xf1, 0xb8, 0x53, 0xce, 0x67, 0x46, 0xa1, 0xf1, 0xf8, 0x51, 0x39, 0x9f, 0x25, 0x50, 0xd2,
  36. 0x0d, 0x68, 0xf0, 0xea, 0x1f, 0x42, 0x9d, 0x68, 0x4b, 0x84, 0x8c, 0xa8, 0x84, 0xa8, 0x16, 0xe3,
  37. 0x33, 0x74, 0x74, 0x01, 0x29, 0x2d, 0x24, 0x08, 0xdc, 0x9d, 0x96, 0xf3, 0xa9, 0x59, 0x5d, 0xc0,
  38. 0xdf, 0x1d, 0x14, 0x72, 0xdc, 0x09, 0x21, 0xcf, 0xf6, 0xcf, 0x6e, 0xe1, 0xf7, 0xe8, 0xc1, 0xc7,
  39. 0x2d, 0xa1, 0xd9, 0x5a, 0x00, 0x27, 0x02, 0xf0, 0xb0, 0x12, 0xf9, 0xc4, 0xb8, 0xfb, 0x87, 0x01,
  40. 0x9d, 0xe1, 0x1d, 0xba, 0xaf, 0xf0, 0x25, 0x4f, 0x88, 0x04, 0x3c, 0xb0, 0x3a, 0x0d, 0x8c, 0xbf,
  41. 0x77, 0xc0, 0xad, 0x7d, 0x7d, 0xc5, 0x72, 0xf0, 0xed, 0x1e, 0x08, 0xec, 0x01, 0xd7, 0xf6, 0x33,
  42. 0x74, 0x74, 0x59, 0x80, 0xf8, 0x9c, 0xff, 0x62, 0xba, 0x6a, 0xb3, 0x0a, 0xaa, 0x76, 0x50, 0xbb,
  43. 0x5e, 0xa2, 0x3b, 0x2b, 0x96, 0xd2, 0x1c, 0x9f, 0x54, 0x51, 0xf5, 0x69, 0xf4, 0xc7, 0x1e, 0xd1,
  44. 0xe2, 0x73, 0xf4, 0x70, 0xa9, 0xda, 0xbf, 0x64, 0x9b, 0x3f, 0x34, 0x4f, 0xf1, 0x69, 0x25, 0x09,
  45. 0x90, 0x31, 0x0f, 0x5a, 0x22, 0x3a, 0xc9, 0x1b, 0x74, 0x4f, 0xf3, 0x45, 0x92, 0xe0, 0x9e, 0x93,
  46. 0x2d, 0x92, 0xc4, 0x98, 0x71, 0x83, 0x36, 0x8c, 0x4b, 0xc8, 0x7c, 0xe3, 0x12, 0xb2, 0x16, 0xa3,
  47. 0xa2, 0xda, 0xf8, 0x09, 0x1d, 0x6b, 0xf6, 0x75, 0xcf, 0x61, 0x45, 0x0b, 0x89, 0x47, 0x4e, 0x67,
  48. 0x98, 0x49, 0x31, 0x6c, 0x0b, 0xe9, 0x3c, 0x6f, 0x11, 0xd2, 0x01, 0x95, 0xa3, 0xef, 0x84, 0xbe,
  49. 0xbf, 0xdb, 0xc4, 0xee, 0x70, 0x05, 0xfb, 0x0d, 0x1b, 0xa9, 0xcc, 0xfa, 0x70, 0x1d, 0x08, 0x0f,
  50. 0xd7, 0xe7, 0xb6, 0xf6, 0xf5, 0x2e, 0xce, 0xe8, 0x86, 0xca, 0xbd, 0xae, 0xdd, 0x2e, 0x83, 0xda,
  51. 0x3d, 0x6a, 0x8d, 0x11, 0xc8, 0x35, 0x29, 0x8a, 0xeb, 0xba, 0xdb, 0x76, 0x19, 0x18, 0x3d, 0xaa,
  52. 0x8d, 0x2b, 0x74, 0x62, 0x1b, 0xf9, 0x85, 0xc5, 0x6a, 0xd7, 0x8f, 0x83, 0xf6, 0xd6, 0xd4, 0xa4,
  53. 0x19, 0xb5, 0x07, 0x75, 0xb6, 0x1f, 0xa8, 0xbf, 0x16, 0xac, 0xa4, 0x09, 0x88, 0x05, 0xe7, 0x82,
  54. 0x95, 0x10, 0x49, 0x22, 0x77, 0x05, 0x7e, 0x5a, 0x17, 0x7c, 0x18, 0x32, 0x79, 0x9f, 0xdc, 0xa0,
  55. 0xb0, 0xbd, 0x3d, 0xbf, 0x22, 0x79, 0x0e, 0x99, 0xeb, 0xad, 0x07, 0x82, 0xde, 0x06, 0xdc, 0x1e,
  56. 0x6b, 0x4d, 0xab, 0x1b, 0xd9, 0xf7, 0x54, 0xde, 0x95, 0xec, 0x36, 0xb1, 0x7d, 0x11, 0x35, 0xac,
  57. 0x5f, 0xed, 0xa9, 0xa7, 0x0b, 0xdf, 0xed, 0xa0, 0x25, 0x62, 0x5f, 0xee, 0x37, 0x48, 0x28, 0xab,
  58. 0x7e, 0xaf, 0xfe, 0x63, 0x56, 0xc1, 0xcb, 0x75, 0xd0, 0x9e, 0xac, 0x42, 0xaa, 0xe6, 0x9e, 0x55,
  59. 0xf8, 0x15, 0xe3, 0x06, 0xb5, 0x83, 0xae, 0xda, 0x46, 0x0a, 0xf5, 0xad, 0x18, 0x9a, 0x8d, 0x19,
  60. 0x12, 0x0c, 0xba, 0x30, 0xa0, 0x32, 0x7c, 0x78, 0xf1, 0xfd, 0x79, 0x51, 0x4d, 0xdd, 0x89, 0x99,
  61. 0xcf, 0x13, 0x37, 0xc1, 0x27, 0x29, 0x91, 0x70, 0x4d, 0xf6, 0x33, 0x1e, 0xc7, 0x77, 0xd5, 0x94,
  62. 0x7e, 0xfd, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x46, 0x5a, 0xb2, 0x4d, 0xea, 0x05, 0x00, 0x00,
  63. }
  64. // Reference imports to suppress errors if they are not otherwise used.
  65. var _ context.Context
  66. var _ grpc.ClientConnInterface
  67. // This is a compile-time assertion to ensure that this generated file
  68. // is compatible with the grpc package it is being compiled against.
  69. const _ = grpc.SupportPackageIsVersion6
  70. // SmartSiteSupplierClient is the client API for SmartSiteSupplier service.
  71. //
  72. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  73. type SmartSiteSupplierClient interface {
  74. Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error)
  75. EmailPrepare(ctx context.Context, in *v1.EmailPrepareRequest, opts ...grpc.CallOption) (*v1.EmailPrepareReply, error)
  76. EmailUpdate(ctx context.Context, in *v1.EmailUpdateRequest, opts ...grpc.CallOption) (*v1.EmailUpdateReply, error)
  77. PhoneUpdate(ctx context.Context, in *v1.PhoneUpdateRequest, opts ...grpc.CallOption) (*v1.PhoneUpdateReply, error)
  78. UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error)
  79. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  80. // 设备对接
  81. DeviceDocking(ctx context.Context, in *v1.DeviceDockingRequest, opts ...grpc.CallOption) (*v1.DeviceDockingReply, error)
  82. // 供应商添加设备
  83. DeviceAdd(ctx context.Context, in *v1.DeviceAddRequest, opts ...grpc.CallOption) (*v1.DeviceAddReply, error)
  84. //拆机申请
  85. DeviceDel(ctx context.Context, in *v1.DeviceDelRequest, opts ...grpc.CallOption) (*v1.DeviceDelReply, error)
  86. // 设备类型列表
  87. DeviceTypeList(ctx context.Context, in *v1.DeviceTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceTypeListReply, error)
  88. // 供应商设备列表
  89. DeviceList(ctx context.Context, in *v1.DeviceListRequest, opts ...grpc.CallOption) (*v1.DeviceListReply, error)
  90. // 项目列表
  91. ProjectList(ctx context.Context, in *v1.ProjectListRequest, opts ...grpc.CallOption) (*v1.ProjectListReply, error)
  92. // 公示列表
  93. Publicity(ctx context.Context, in *v1.PublicityRequest, opts ...grpc.CallOption) (*v1.PublicityReply, error)
  94. // 找回密码
  95. SetPasswd(ctx context.Context, in *v1.SetPasswdRequest, opts ...grpc.CallOption) (*v1.SetPasswdReply, error)
  96. DeviceDelJobList(ctx context.Context, in *v1.DeviceDelJobListRequest, opts ...grpc.CallOption) (*v1.DeviceDelJobListReply, error)
  97. ProviderApproveStatus(ctx context.Context, in *v1.ProviderApproveStatusRequest, opts ...grpc.CallOption) (*v1.ProviderApproveStatusReply, error)
  98. ChannelList(ctx context.Context, in *v1.ChannelListRequest, opts ...grpc.CallOption) (*v1.ChannelListReply, error)
  99. ChannelAdd(ctx context.Context, in *v1.ChannelAddRequest, opts ...grpc.CallOption) (*v1.ChannelAddReply, error)
  100. ChannelUpdate(ctx context.Context, in *v1.ChannelUpdateRequest, opts ...grpc.CallOption) (*v1.ChannelUpdateReply, error)
  101. VedioAdd(ctx context.Context, in *v1.VedioAddRequest, opts ...grpc.CallOption) (*v1.VedioAddReply, error)
  102. VedioList(ctx context.Context, in *v1.VedioListRequest, opts ...grpc.CallOption) (*v1.VedioListReply, error)
  103. ChangePasswd(ctx context.Context, in *v1.ChangePasswdRequest, opts ...grpc.CallOption) (*v1.ChangePasswdReply, error)
  104. }
  105. type smartSiteSupplierClient struct {
  106. cc grpc.ClientConnInterface
  107. }
  108. func NewSmartSiteSupplierClient(cc grpc.ClientConnInterface) SmartSiteSupplierClient {
  109. return &smartSiteSupplierClient{cc}
  110. }
  111. func (c *smartSiteSupplierClient) Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error) {
  112. out := new(v1.RegisterReply)
  113. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/Register", in, out, opts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. func (c *smartSiteSupplierClient) EmailPrepare(ctx context.Context, in *v1.EmailPrepareRequest, opts ...grpc.CallOption) (*v1.EmailPrepareReply, error) {
  120. out := new(v1.EmailPrepareReply)
  121. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/EmailPrepare", in, out, opts...)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return out, nil
  126. }
  127. func (c *smartSiteSupplierClient) EmailUpdate(ctx context.Context, in *v1.EmailUpdateRequest, opts ...grpc.CallOption) (*v1.EmailUpdateReply, error) {
  128. out := new(v1.EmailUpdateReply)
  129. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/EmailUpdate", in, out, opts...)
  130. if err != nil {
  131. return nil, err
  132. }
  133. return out, nil
  134. }
  135. func (c *smartSiteSupplierClient) PhoneUpdate(ctx context.Context, in *v1.PhoneUpdateRequest, opts ...grpc.CallOption) (*v1.PhoneUpdateReply, error) {
  136. out := new(v1.PhoneUpdateReply)
  137. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/PhoneUpdate", in, out, opts...)
  138. if err != nil {
  139. return nil, err
  140. }
  141. return out, nil
  142. }
  143. func (c *smartSiteSupplierClient) UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error) {
  144. out := new(v1.UserInfoReply)
  145. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/UserInfo", in, out, opts...)
  146. if err != nil {
  147. return nil, err
  148. }
  149. return out, nil
  150. }
  151. func (c *smartSiteSupplierClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  152. out := new(v1.LoginReply)
  153. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/Login", in, out, opts...)
  154. if err != nil {
  155. return nil, err
  156. }
  157. return out, nil
  158. }
  159. func (c *smartSiteSupplierClient) DeviceDocking(ctx context.Context, in *v1.DeviceDockingRequest, opts ...grpc.CallOption) (*v1.DeviceDockingReply, error) {
  160. out := new(v1.DeviceDockingReply)
  161. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceDocking", in, out, opts...)
  162. if err != nil {
  163. return nil, err
  164. }
  165. return out, nil
  166. }
  167. func (c *smartSiteSupplierClient) DeviceAdd(ctx context.Context, in *v1.DeviceAddRequest, opts ...grpc.CallOption) (*v1.DeviceAddReply, error) {
  168. out := new(v1.DeviceAddReply)
  169. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceAdd", in, out, opts...)
  170. if err != nil {
  171. return nil, err
  172. }
  173. return out, nil
  174. }
  175. func (c *smartSiteSupplierClient) DeviceDel(ctx context.Context, in *v1.DeviceDelRequest, opts ...grpc.CallOption) (*v1.DeviceDelReply, error) {
  176. out := new(v1.DeviceDelReply)
  177. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceDel", in, out, opts...)
  178. if err != nil {
  179. return nil, err
  180. }
  181. return out, nil
  182. }
  183. func (c *smartSiteSupplierClient) DeviceTypeList(ctx context.Context, in *v1.DeviceTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceTypeListReply, error) {
  184. out := new(v1.DeviceTypeListReply)
  185. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceTypeList", in, out, opts...)
  186. if err != nil {
  187. return nil, err
  188. }
  189. return out, nil
  190. }
  191. func (c *smartSiteSupplierClient) DeviceList(ctx context.Context, in *v1.DeviceListRequest, opts ...grpc.CallOption) (*v1.DeviceListReply, error) {
  192. out := new(v1.DeviceListReply)
  193. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceList", in, out, opts...)
  194. if err != nil {
  195. return nil, err
  196. }
  197. return out, nil
  198. }
  199. func (c *smartSiteSupplierClient) ProjectList(ctx context.Context, in *v1.ProjectListRequest, opts ...grpc.CallOption) (*v1.ProjectListReply, error) {
  200. out := new(v1.ProjectListReply)
  201. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ProjectList", in, out, opts...)
  202. if err != nil {
  203. return nil, err
  204. }
  205. return out, nil
  206. }
  207. func (c *smartSiteSupplierClient) Publicity(ctx context.Context, in *v1.PublicityRequest, opts ...grpc.CallOption) (*v1.PublicityReply, error) {
  208. out := new(v1.PublicityReply)
  209. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/Publicity", in, out, opts...)
  210. if err != nil {
  211. return nil, err
  212. }
  213. return out, nil
  214. }
  215. func (c *smartSiteSupplierClient) SetPasswd(ctx context.Context, in *v1.SetPasswdRequest, opts ...grpc.CallOption) (*v1.SetPasswdReply, error) {
  216. out := new(v1.SetPasswdReply)
  217. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/SetPasswd", in, out, opts...)
  218. if err != nil {
  219. return nil, err
  220. }
  221. return out, nil
  222. }
  223. func (c *smartSiteSupplierClient) DeviceDelJobList(ctx context.Context, in *v1.DeviceDelJobListRequest, opts ...grpc.CallOption) (*v1.DeviceDelJobListReply, error) {
  224. out := new(v1.DeviceDelJobListReply)
  225. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceDelJobList", in, out, opts...)
  226. if err != nil {
  227. return nil, err
  228. }
  229. return out, nil
  230. }
  231. func (c *smartSiteSupplierClient) ProviderApproveStatus(ctx context.Context, in *v1.ProviderApproveStatusRequest, opts ...grpc.CallOption) (*v1.ProviderApproveStatusReply, error) {
  232. out := new(v1.ProviderApproveStatusReply)
  233. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ProviderApproveStatus", in, out, opts...)
  234. if err != nil {
  235. return nil, err
  236. }
  237. return out, nil
  238. }
  239. func (c *smartSiteSupplierClient) ChannelList(ctx context.Context, in *v1.ChannelListRequest, opts ...grpc.CallOption) (*v1.ChannelListReply, error) {
  240. out := new(v1.ChannelListReply)
  241. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ChannelList", in, out, opts...)
  242. if err != nil {
  243. return nil, err
  244. }
  245. return out, nil
  246. }
  247. func (c *smartSiteSupplierClient) ChannelAdd(ctx context.Context, in *v1.ChannelAddRequest, opts ...grpc.CallOption) (*v1.ChannelAddReply, error) {
  248. out := new(v1.ChannelAddReply)
  249. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ChannelAdd", in, out, opts...)
  250. if err != nil {
  251. return nil, err
  252. }
  253. return out, nil
  254. }
  255. func (c *smartSiteSupplierClient) ChannelUpdate(ctx context.Context, in *v1.ChannelUpdateRequest, opts ...grpc.CallOption) (*v1.ChannelUpdateReply, error) {
  256. out := new(v1.ChannelUpdateReply)
  257. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ChannelUpdate", in, out, opts...)
  258. if err != nil {
  259. return nil, err
  260. }
  261. return out, nil
  262. }
  263. func (c *smartSiteSupplierClient) VedioAdd(ctx context.Context, in *v1.VedioAddRequest, opts ...grpc.CallOption) (*v1.VedioAddReply, error) {
  264. out := new(v1.VedioAddReply)
  265. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/VedioAdd", in, out, opts...)
  266. if err != nil {
  267. return nil, err
  268. }
  269. return out, nil
  270. }
  271. func (c *smartSiteSupplierClient) VedioList(ctx context.Context, in *v1.VedioListRequest, opts ...grpc.CallOption) (*v1.VedioListReply, error) {
  272. out := new(v1.VedioListReply)
  273. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/VedioList", in, out, opts...)
  274. if err != nil {
  275. return nil, err
  276. }
  277. return out, nil
  278. }
  279. func (c *smartSiteSupplierClient) ChangePasswd(ctx context.Context, in *v1.ChangePasswdRequest, opts ...grpc.CallOption) (*v1.ChangePasswdReply, error) {
  280. out := new(v1.ChangePasswdReply)
  281. err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ChangePasswd", in, out, opts...)
  282. if err != nil {
  283. return nil, err
  284. }
  285. return out, nil
  286. }
  287. // SmartSiteSupplierServer is the server API for SmartSiteSupplier service.
  288. type SmartSiteSupplierServer interface {
  289. Register(context.Context, *v1.RegisterRequest) (*v1.RegisterReply, error)
  290. EmailPrepare(context.Context, *v1.EmailPrepareRequest) (*v1.EmailPrepareReply, error)
  291. EmailUpdate(context.Context, *v1.EmailUpdateRequest) (*v1.EmailUpdateReply, error)
  292. PhoneUpdate(context.Context, *v1.PhoneUpdateRequest) (*v1.PhoneUpdateReply, error)
  293. UserInfo(context.Context, *v1.UserInfoRequest) (*v1.UserInfoReply, error)
  294. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  295. // 设备对接
  296. DeviceDocking(context.Context, *v1.DeviceDockingRequest) (*v1.DeviceDockingReply, error)
  297. // 供应商添加设备
  298. DeviceAdd(context.Context, *v1.DeviceAddRequest) (*v1.DeviceAddReply, error)
  299. //拆机申请
  300. DeviceDel(context.Context, *v1.DeviceDelRequest) (*v1.DeviceDelReply, error)
  301. // 设备类型列表
  302. DeviceTypeList(context.Context, *v1.DeviceTypeListRequest) (*v1.DeviceTypeListReply, error)
  303. // 供应商设备列表
  304. DeviceList(context.Context, *v1.DeviceListRequest) (*v1.DeviceListReply, error)
  305. // 项目列表
  306. ProjectList(context.Context, *v1.ProjectListRequest) (*v1.ProjectListReply, error)
  307. // 公示列表
  308. Publicity(context.Context, *v1.PublicityRequest) (*v1.PublicityReply, error)
  309. // 找回密码
  310. SetPasswd(context.Context, *v1.SetPasswdRequest) (*v1.SetPasswdReply, error)
  311. DeviceDelJobList(context.Context, *v1.DeviceDelJobListRequest) (*v1.DeviceDelJobListReply, error)
  312. ProviderApproveStatus(context.Context, *v1.ProviderApproveStatusRequest) (*v1.ProviderApproveStatusReply, error)
  313. ChannelList(context.Context, *v1.ChannelListRequest) (*v1.ChannelListReply, error)
  314. ChannelAdd(context.Context, *v1.ChannelAddRequest) (*v1.ChannelAddReply, error)
  315. ChannelUpdate(context.Context, *v1.ChannelUpdateRequest) (*v1.ChannelUpdateReply, error)
  316. VedioAdd(context.Context, *v1.VedioAddRequest) (*v1.VedioAddReply, error)
  317. VedioList(context.Context, *v1.VedioListRequest) (*v1.VedioListReply, error)
  318. ChangePasswd(context.Context, *v1.ChangePasswdRequest) (*v1.ChangePasswdReply, error)
  319. }
  320. // UnimplementedSmartSiteSupplierServer can be embedded to have forward compatible implementations.
  321. type UnimplementedSmartSiteSupplierServer struct {
  322. }
  323. func (*UnimplementedSmartSiteSupplierServer) Register(ctx context.Context, req *v1.RegisterRequest) (*v1.RegisterReply, error) {
  324. return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
  325. }
  326. func (*UnimplementedSmartSiteSupplierServer) EmailPrepare(ctx context.Context, req *v1.EmailPrepareRequest) (*v1.EmailPrepareReply, error) {
  327. return nil, status.Errorf(codes.Unimplemented, "method EmailPrepare not implemented")
  328. }
  329. func (*UnimplementedSmartSiteSupplierServer) EmailUpdate(ctx context.Context, req *v1.EmailUpdateRequest) (*v1.EmailUpdateReply, error) {
  330. return nil, status.Errorf(codes.Unimplemented, "method EmailUpdate not implemented")
  331. }
  332. func (*UnimplementedSmartSiteSupplierServer) PhoneUpdate(ctx context.Context, req *v1.PhoneUpdateRequest) (*v1.PhoneUpdateReply, error) {
  333. return nil, status.Errorf(codes.Unimplemented, "method PhoneUpdate not implemented")
  334. }
  335. func (*UnimplementedSmartSiteSupplierServer) UserInfo(ctx context.Context, req *v1.UserInfoRequest) (*v1.UserInfoReply, error) {
  336. return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented")
  337. }
  338. func (*UnimplementedSmartSiteSupplierServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  339. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  340. }
  341. func (*UnimplementedSmartSiteSupplierServer) DeviceDocking(ctx context.Context, req *v1.DeviceDockingRequest) (*v1.DeviceDockingReply, error) {
  342. return nil, status.Errorf(codes.Unimplemented, "method DeviceDocking not implemented")
  343. }
  344. func (*UnimplementedSmartSiteSupplierServer) DeviceAdd(ctx context.Context, req *v1.DeviceAddRequest) (*v1.DeviceAddReply, error) {
  345. return nil, status.Errorf(codes.Unimplemented, "method DeviceAdd not implemented")
  346. }
  347. func (*UnimplementedSmartSiteSupplierServer) DeviceDel(ctx context.Context, req *v1.DeviceDelRequest) (*v1.DeviceDelReply, error) {
  348. return nil, status.Errorf(codes.Unimplemented, "method DeviceDel not implemented")
  349. }
  350. func (*UnimplementedSmartSiteSupplierServer) DeviceTypeList(ctx context.Context, req *v1.DeviceTypeListRequest) (*v1.DeviceTypeListReply, error) {
  351. return nil, status.Errorf(codes.Unimplemented, "method DeviceTypeList not implemented")
  352. }
  353. func (*UnimplementedSmartSiteSupplierServer) DeviceList(ctx context.Context, req *v1.DeviceListRequest) (*v1.DeviceListReply, error) {
  354. return nil, status.Errorf(codes.Unimplemented, "method DeviceList not implemented")
  355. }
  356. func (*UnimplementedSmartSiteSupplierServer) ProjectList(ctx context.Context, req *v1.ProjectListRequest) (*v1.ProjectListReply, error) {
  357. return nil, status.Errorf(codes.Unimplemented, "method ProjectList not implemented")
  358. }
  359. func (*UnimplementedSmartSiteSupplierServer) Publicity(ctx context.Context, req *v1.PublicityRequest) (*v1.PublicityReply, error) {
  360. return nil, status.Errorf(codes.Unimplemented, "method Publicity not implemented")
  361. }
  362. func (*UnimplementedSmartSiteSupplierServer) SetPasswd(ctx context.Context, req *v1.SetPasswdRequest) (*v1.SetPasswdReply, error) {
  363. return nil, status.Errorf(codes.Unimplemented, "method SetPasswd not implemented")
  364. }
  365. func (*UnimplementedSmartSiteSupplierServer) DeviceDelJobList(ctx context.Context, req *v1.DeviceDelJobListRequest) (*v1.DeviceDelJobListReply, error) {
  366. return nil, status.Errorf(codes.Unimplemented, "method DeviceDelJobList not implemented")
  367. }
  368. func (*UnimplementedSmartSiteSupplierServer) ProviderApproveStatus(ctx context.Context, req *v1.ProviderApproveStatusRequest) (*v1.ProviderApproveStatusReply, error) {
  369. return nil, status.Errorf(codes.Unimplemented, "method ProviderApproveStatus not implemented")
  370. }
  371. func (*UnimplementedSmartSiteSupplierServer) ChannelList(ctx context.Context, req *v1.ChannelListRequest) (*v1.ChannelListReply, error) {
  372. return nil, status.Errorf(codes.Unimplemented, "method ChannelList not implemented")
  373. }
  374. func (*UnimplementedSmartSiteSupplierServer) ChannelAdd(ctx context.Context, req *v1.ChannelAddRequest) (*v1.ChannelAddReply, error) {
  375. return nil, status.Errorf(codes.Unimplemented, "method ChannelAdd not implemented")
  376. }
  377. func (*UnimplementedSmartSiteSupplierServer) ChannelUpdate(ctx context.Context, req *v1.ChannelUpdateRequest) (*v1.ChannelUpdateReply, error) {
  378. return nil, status.Errorf(codes.Unimplemented, "method ChannelUpdate not implemented")
  379. }
  380. func (*UnimplementedSmartSiteSupplierServer) VedioAdd(ctx context.Context, req *v1.VedioAddRequest) (*v1.VedioAddReply, error) {
  381. return nil, status.Errorf(codes.Unimplemented, "method VedioAdd not implemented")
  382. }
  383. func (*UnimplementedSmartSiteSupplierServer) VedioList(ctx context.Context, req *v1.VedioListRequest) (*v1.VedioListReply, error) {
  384. return nil, status.Errorf(codes.Unimplemented, "method VedioList not implemented")
  385. }
  386. func (*UnimplementedSmartSiteSupplierServer) ChangePasswd(ctx context.Context, req *v1.ChangePasswdRequest) (*v1.ChangePasswdReply, error) {
  387. return nil, status.Errorf(codes.Unimplemented, "method ChangePasswd not implemented")
  388. }
  389. func RegisterSmartSiteSupplierServer(s *grpc.Server, srv SmartSiteSupplierServer) {
  390. s.RegisterService(&_SmartSiteSupplier_serviceDesc, srv)
  391. }
  392. func _SmartSiteSupplier_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  393. in := new(v1.RegisterRequest)
  394. if err := dec(in); err != nil {
  395. return nil, err
  396. }
  397. if interceptor == nil {
  398. return srv.(SmartSiteSupplierServer).Register(ctx, in)
  399. }
  400. info := &grpc.UnaryServerInfo{
  401. Server: srv,
  402. FullMethod: "/pb.SmartSiteSupplier/Register",
  403. }
  404. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  405. return srv.(SmartSiteSupplierServer).Register(ctx, req.(*v1.RegisterRequest))
  406. }
  407. return interceptor(ctx, in, info, handler)
  408. }
  409. func _SmartSiteSupplier_EmailPrepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  410. in := new(v1.EmailPrepareRequest)
  411. if err := dec(in); err != nil {
  412. return nil, err
  413. }
  414. if interceptor == nil {
  415. return srv.(SmartSiteSupplierServer).EmailPrepare(ctx, in)
  416. }
  417. info := &grpc.UnaryServerInfo{
  418. Server: srv,
  419. FullMethod: "/pb.SmartSiteSupplier/EmailPrepare",
  420. }
  421. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  422. return srv.(SmartSiteSupplierServer).EmailPrepare(ctx, req.(*v1.EmailPrepareRequest))
  423. }
  424. return interceptor(ctx, in, info, handler)
  425. }
  426. func _SmartSiteSupplier_EmailUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  427. in := new(v1.EmailUpdateRequest)
  428. if err := dec(in); err != nil {
  429. return nil, err
  430. }
  431. if interceptor == nil {
  432. return srv.(SmartSiteSupplierServer).EmailUpdate(ctx, in)
  433. }
  434. info := &grpc.UnaryServerInfo{
  435. Server: srv,
  436. FullMethod: "/pb.SmartSiteSupplier/EmailUpdate",
  437. }
  438. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  439. return srv.(SmartSiteSupplierServer).EmailUpdate(ctx, req.(*v1.EmailUpdateRequest))
  440. }
  441. return interceptor(ctx, in, info, handler)
  442. }
  443. func _SmartSiteSupplier_PhoneUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  444. in := new(v1.PhoneUpdateRequest)
  445. if err := dec(in); err != nil {
  446. return nil, err
  447. }
  448. if interceptor == nil {
  449. return srv.(SmartSiteSupplierServer).PhoneUpdate(ctx, in)
  450. }
  451. info := &grpc.UnaryServerInfo{
  452. Server: srv,
  453. FullMethod: "/pb.SmartSiteSupplier/PhoneUpdate",
  454. }
  455. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  456. return srv.(SmartSiteSupplierServer).PhoneUpdate(ctx, req.(*v1.PhoneUpdateRequest))
  457. }
  458. return interceptor(ctx, in, info, handler)
  459. }
  460. func _SmartSiteSupplier_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  461. in := new(v1.UserInfoRequest)
  462. if err := dec(in); err != nil {
  463. return nil, err
  464. }
  465. if interceptor == nil {
  466. return srv.(SmartSiteSupplierServer).UserInfo(ctx, in)
  467. }
  468. info := &grpc.UnaryServerInfo{
  469. Server: srv,
  470. FullMethod: "/pb.SmartSiteSupplier/UserInfo",
  471. }
  472. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  473. return srv.(SmartSiteSupplierServer).UserInfo(ctx, req.(*v1.UserInfoRequest))
  474. }
  475. return interceptor(ctx, in, info, handler)
  476. }
  477. func _SmartSiteSupplier_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  478. in := new(v1.LoginRequest)
  479. if err := dec(in); err != nil {
  480. return nil, err
  481. }
  482. if interceptor == nil {
  483. return srv.(SmartSiteSupplierServer).Login(ctx, in)
  484. }
  485. info := &grpc.UnaryServerInfo{
  486. Server: srv,
  487. FullMethod: "/pb.SmartSiteSupplier/Login",
  488. }
  489. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  490. return srv.(SmartSiteSupplierServer).Login(ctx, req.(*v1.LoginRequest))
  491. }
  492. return interceptor(ctx, in, info, handler)
  493. }
  494. func _SmartSiteSupplier_DeviceDocking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  495. in := new(v1.DeviceDockingRequest)
  496. if err := dec(in); err != nil {
  497. return nil, err
  498. }
  499. if interceptor == nil {
  500. return srv.(SmartSiteSupplierServer).DeviceDocking(ctx, in)
  501. }
  502. info := &grpc.UnaryServerInfo{
  503. Server: srv,
  504. FullMethod: "/pb.SmartSiteSupplier/DeviceDocking",
  505. }
  506. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  507. return srv.(SmartSiteSupplierServer).DeviceDocking(ctx, req.(*v1.DeviceDockingRequest))
  508. }
  509. return interceptor(ctx, in, info, handler)
  510. }
  511. func _SmartSiteSupplier_DeviceAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  512. in := new(v1.DeviceAddRequest)
  513. if err := dec(in); err != nil {
  514. return nil, err
  515. }
  516. if interceptor == nil {
  517. return srv.(SmartSiteSupplierServer).DeviceAdd(ctx, in)
  518. }
  519. info := &grpc.UnaryServerInfo{
  520. Server: srv,
  521. FullMethod: "/pb.SmartSiteSupplier/DeviceAdd",
  522. }
  523. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  524. return srv.(SmartSiteSupplierServer).DeviceAdd(ctx, req.(*v1.DeviceAddRequest))
  525. }
  526. return interceptor(ctx, in, info, handler)
  527. }
  528. func _SmartSiteSupplier_DeviceDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  529. in := new(v1.DeviceDelRequest)
  530. if err := dec(in); err != nil {
  531. return nil, err
  532. }
  533. if interceptor == nil {
  534. return srv.(SmartSiteSupplierServer).DeviceDel(ctx, in)
  535. }
  536. info := &grpc.UnaryServerInfo{
  537. Server: srv,
  538. FullMethod: "/pb.SmartSiteSupplier/DeviceDel",
  539. }
  540. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  541. return srv.(SmartSiteSupplierServer).DeviceDel(ctx, req.(*v1.DeviceDelRequest))
  542. }
  543. return interceptor(ctx, in, info, handler)
  544. }
  545. func _SmartSiteSupplier_DeviceTypeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  546. in := new(v1.DeviceTypeListRequest)
  547. if err := dec(in); err != nil {
  548. return nil, err
  549. }
  550. if interceptor == nil {
  551. return srv.(SmartSiteSupplierServer).DeviceTypeList(ctx, in)
  552. }
  553. info := &grpc.UnaryServerInfo{
  554. Server: srv,
  555. FullMethod: "/pb.SmartSiteSupplier/DeviceTypeList",
  556. }
  557. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  558. return srv.(SmartSiteSupplierServer).DeviceTypeList(ctx, req.(*v1.DeviceTypeListRequest))
  559. }
  560. return interceptor(ctx, in, info, handler)
  561. }
  562. func _SmartSiteSupplier_DeviceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  563. in := new(v1.DeviceListRequest)
  564. if err := dec(in); err != nil {
  565. return nil, err
  566. }
  567. if interceptor == nil {
  568. return srv.(SmartSiteSupplierServer).DeviceList(ctx, in)
  569. }
  570. info := &grpc.UnaryServerInfo{
  571. Server: srv,
  572. FullMethod: "/pb.SmartSiteSupplier/DeviceList",
  573. }
  574. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  575. return srv.(SmartSiteSupplierServer).DeviceList(ctx, req.(*v1.DeviceListRequest))
  576. }
  577. return interceptor(ctx, in, info, handler)
  578. }
  579. func _SmartSiteSupplier_ProjectList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  580. in := new(v1.ProjectListRequest)
  581. if err := dec(in); err != nil {
  582. return nil, err
  583. }
  584. if interceptor == nil {
  585. return srv.(SmartSiteSupplierServer).ProjectList(ctx, in)
  586. }
  587. info := &grpc.UnaryServerInfo{
  588. Server: srv,
  589. FullMethod: "/pb.SmartSiteSupplier/ProjectList",
  590. }
  591. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  592. return srv.(SmartSiteSupplierServer).ProjectList(ctx, req.(*v1.ProjectListRequest))
  593. }
  594. return interceptor(ctx, in, info, handler)
  595. }
  596. func _SmartSiteSupplier_Publicity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  597. in := new(v1.PublicityRequest)
  598. if err := dec(in); err != nil {
  599. return nil, err
  600. }
  601. if interceptor == nil {
  602. return srv.(SmartSiteSupplierServer).Publicity(ctx, in)
  603. }
  604. info := &grpc.UnaryServerInfo{
  605. Server: srv,
  606. FullMethod: "/pb.SmartSiteSupplier/Publicity",
  607. }
  608. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  609. return srv.(SmartSiteSupplierServer).Publicity(ctx, req.(*v1.PublicityRequest))
  610. }
  611. return interceptor(ctx, in, info, handler)
  612. }
  613. func _SmartSiteSupplier_SetPasswd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  614. in := new(v1.SetPasswdRequest)
  615. if err := dec(in); err != nil {
  616. return nil, err
  617. }
  618. if interceptor == nil {
  619. return srv.(SmartSiteSupplierServer).SetPasswd(ctx, in)
  620. }
  621. info := &grpc.UnaryServerInfo{
  622. Server: srv,
  623. FullMethod: "/pb.SmartSiteSupplier/SetPasswd",
  624. }
  625. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  626. return srv.(SmartSiteSupplierServer).SetPasswd(ctx, req.(*v1.SetPasswdRequest))
  627. }
  628. return interceptor(ctx, in, info, handler)
  629. }
  630. func _SmartSiteSupplier_DeviceDelJobList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  631. in := new(v1.DeviceDelJobListRequest)
  632. if err := dec(in); err != nil {
  633. return nil, err
  634. }
  635. if interceptor == nil {
  636. return srv.(SmartSiteSupplierServer).DeviceDelJobList(ctx, in)
  637. }
  638. info := &grpc.UnaryServerInfo{
  639. Server: srv,
  640. FullMethod: "/pb.SmartSiteSupplier/DeviceDelJobList",
  641. }
  642. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  643. return srv.(SmartSiteSupplierServer).DeviceDelJobList(ctx, req.(*v1.DeviceDelJobListRequest))
  644. }
  645. return interceptor(ctx, in, info, handler)
  646. }
  647. func _SmartSiteSupplier_ProviderApproveStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  648. in := new(v1.ProviderApproveStatusRequest)
  649. if err := dec(in); err != nil {
  650. return nil, err
  651. }
  652. if interceptor == nil {
  653. return srv.(SmartSiteSupplierServer).ProviderApproveStatus(ctx, in)
  654. }
  655. info := &grpc.UnaryServerInfo{
  656. Server: srv,
  657. FullMethod: "/pb.SmartSiteSupplier/ProviderApproveStatus",
  658. }
  659. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  660. return srv.(SmartSiteSupplierServer).ProviderApproveStatus(ctx, req.(*v1.ProviderApproveStatusRequest))
  661. }
  662. return interceptor(ctx, in, info, handler)
  663. }
  664. func _SmartSiteSupplier_ChannelList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  665. in := new(v1.ChannelListRequest)
  666. if err := dec(in); err != nil {
  667. return nil, err
  668. }
  669. if interceptor == nil {
  670. return srv.(SmartSiteSupplierServer).ChannelList(ctx, in)
  671. }
  672. info := &grpc.UnaryServerInfo{
  673. Server: srv,
  674. FullMethod: "/pb.SmartSiteSupplier/ChannelList",
  675. }
  676. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  677. return srv.(SmartSiteSupplierServer).ChannelList(ctx, req.(*v1.ChannelListRequest))
  678. }
  679. return interceptor(ctx, in, info, handler)
  680. }
  681. func _SmartSiteSupplier_ChannelAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  682. in := new(v1.ChannelAddRequest)
  683. if err := dec(in); err != nil {
  684. return nil, err
  685. }
  686. if interceptor == nil {
  687. return srv.(SmartSiteSupplierServer).ChannelAdd(ctx, in)
  688. }
  689. info := &grpc.UnaryServerInfo{
  690. Server: srv,
  691. FullMethod: "/pb.SmartSiteSupplier/ChannelAdd",
  692. }
  693. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  694. return srv.(SmartSiteSupplierServer).ChannelAdd(ctx, req.(*v1.ChannelAddRequest))
  695. }
  696. return interceptor(ctx, in, info, handler)
  697. }
  698. func _SmartSiteSupplier_ChannelUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  699. in := new(v1.ChannelUpdateRequest)
  700. if err := dec(in); err != nil {
  701. return nil, err
  702. }
  703. if interceptor == nil {
  704. return srv.(SmartSiteSupplierServer).ChannelUpdate(ctx, in)
  705. }
  706. info := &grpc.UnaryServerInfo{
  707. Server: srv,
  708. FullMethod: "/pb.SmartSiteSupplier/ChannelUpdate",
  709. }
  710. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  711. return srv.(SmartSiteSupplierServer).ChannelUpdate(ctx, req.(*v1.ChannelUpdateRequest))
  712. }
  713. return interceptor(ctx, in, info, handler)
  714. }
  715. func _SmartSiteSupplier_VedioAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  716. in := new(v1.VedioAddRequest)
  717. if err := dec(in); err != nil {
  718. return nil, err
  719. }
  720. if interceptor == nil {
  721. return srv.(SmartSiteSupplierServer).VedioAdd(ctx, in)
  722. }
  723. info := &grpc.UnaryServerInfo{
  724. Server: srv,
  725. FullMethod: "/pb.SmartSiteSupplier/VedioAdd",
  726. }
  727. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  728. return srv.(SmartSiteSupplierServer).VedioAdd(ctx, req.(*v1.VedioAddRequest))
  729. }
  730. return interceptor(ctx, in, info, handler)
  731. }
  732. func _SmartSiteSupplier_VedioList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  733. in := new(v1.VedioListRequest)
  734. if err := dec(in); err != nil {
  735. return nil, err
  736. }
  737. if interceptor == nil {
  738. return srv.(SmartSiteSupplierServer).VedioList(ctx, in)
  739. }
  740. info := &grpc.UnaryServerInfo{
  741. Server: srv,
  742. FullMethod: "/pb.SmartSiteSupplier/VedioList",
  743. }
  744. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  745. return srv.(SmartSiteSupplierServer).VedioList(ctx, req.(*v1.VedioListRequest))
  746. }
  747. return interceptor(ctx, in, info, handler)
  748. }
  749. func _SmartSiteSupplier_ChangePasswd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  750. in := new(v1.ChangePasswdRequest)
  751. if err := dec(in); err != nil {
  752. return nil, err
  753. }
  754. if interceptor == nil {
  755. return srv.(SmartSiteSupplierServer).ChangePasswd(ctx, in)
  756. }
  757. info := &grpc.UnaryServerInfo{
  758. Server: srv,
  759. FullMethod: "/pb.SmartSiteSupplier/ChangePasswd",
  760. }
  761. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  762. return srv.(SmartSiteSupplierServer).ChangePasswd(ctx, req.(*v1.ChangePasswdRequest))
  763. }
  764. return interceptor(ctx, in, info, handler)
  765. }
  766. var _SmartSiteSupplier_serviceDesc = grpc.ServiceDesc{
  767. ServiceName: "pb.SmartSiteSupplier",
  768. HandlerType: (*SmartSiteSupplierServer)(nil),
  769. Methods: []grpc.MethodDesc{
  770. {
  771. MethodName: "Register",
  772. Handler: _SmartSiteSupplier_Register_Handler,
  773. },
  774. {
  775. MethodName: "EmailPrepare",
  776. Handler: _SmartSiteSupplier_EmailPrepare_Handler,
  777. },
  778. {
  779. MethodName: "EmailUpdate",
  780. Handler: _SmartSiteSupplier_EmailUpdate_Handler,
  781. },
  782. {
  783. MethodName: "PhoneUpdate",
  784. Handler: _SmartSiteSupplier_PhoneUpdate_Handler,
  785. },
  786. {
  787. MethodName: "UserInfo",
  788. Handler: _SmartSiteSupplier_UserInfo_Handler,
  789. },
  790. {
  791. MethodName: "Login",
  792. Handler: _SmartSiteSupplier_Login_Handler,
  793. },
  794. {
  795. MethodName: "DeviceDocking",
  796. Handler: _SmartSiteSupplier_DeviceDocking_Handler,
  797. },
  798. {
  799. MethodName: "DeviceAdd",
  800. Handler: _SmartSiteSupplier_DeviceAdd_Handler,
  801. },
  802. {
  803. MethodName: "DeviceDel",
  804. Handler: _SmartSiteSupplier_DeviceDel_Handler,
  805. },
  806. {
  807. MethodName: "DeviceTypeList",
  808. Handler: _SmartSiteSupplier_DeviceTypeList_Handler,
  809. },
  810. {
  811. MethodName: "DeviceList",
  812. Handler: _SmartSiteSupplier_DeviceList_Handler,
  813. },
  814. {
  815. MethodName: "ProjectList",
  816. Handler: _SmartSiteSupplier_ProjectList_Handler,
  817. },
  818. {
  819. MethodName: "Publicity",
  820. Handler: _SmartSiteSupplier_Publicity_Handler,
  821. },
  822. {
  823. MethodName: "SetPasswd",
  824. Handler: _SmartSiteSupplier_SetPasswd_Handler,
  825. },
  826. {
  827. MethodName: "DeviceDelJobList",
  828. Handler: _SmartSiteSupplier_DeviceDelJobList_Handler,
  829. },
  830. {
  831. MethodName: "ProviderApproveStatus",
  832. Handler: _SmartSiteSupplier_ProviderApproveStatus_Handler,
  833. },
  834. {
  835. MethodName: "ChannelList",
  836. Handler: _SmartSiteSupplier_ChannelList_Handler,
  837. },
  838. {
  839. MethodName: "ChannelAdd",
  840. Handler: _SmartSiteSupplier_ChannelAdd_Handler,
  841. },
  842. {
  843. MethodName: "ChannelUpdate",
  844. Handler: _SmartSiteSupplier_ChannelUpdate_Handler,
  845. },
  846. {
  847. MethodName: "VedioAdd",
  848. Handler: _SmartSiteSupplier_VedioAdd_Handler,
  849. },
  850. {
  851. MethodName: "VedioList",
  852. Handler: _SmartSiteSupplier_VedioList_Handler,
  853. },
  854. {
  855. MethodName: "ChangePasswd",
  856. Handler: _SmartSiteSupplier_ChangePasswd_Handler,
  857. },
  858. },
  859. Streams: []grpc.StreamDesc{},
  860. Metadata: "supplier_management.proto",
  861. }