supplier_management.pb.go 42 KB

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