device_service.pb.go 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: device_service.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 "property-system-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("device_service.proto", fileDescriptor_5b575c291bff7431)
  26. }
  27. var fileDescriptor_5b575c291bff7431 = []byte{
  28. // 725 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x96, 0x4d, 0x6f, 0xd3, 0x4c,
  30. 0x10, 0xc7, 0x9f, 0x53, 0x1f, 0xb4, 0xbc, 0x14, 0x96, 0xbe, 0xba, 0xa1, 0xa0, 0x8a, 0x6b, 0x53,
  31. 0x15, 0x90, 0x90, 0x38, 0x41, 0x53, 0x0a, 0x91, 0x5a, 0xb5, 0x6a, 0x15, 0x40, 0x5c, 0x2a, 0xc7,
  32. 0x5e, 0x88, 0x85, 0xb3, 0x76, 0xed, 0x4d, 0x90, 0x3f, 0x2d, 0x5f, 0x05, 0xed, 0xae, 0xd7, 0x9e,
  33. 0x59, 0x8f, 0xc3, 0x29, 0xd2, 0xff, 0x37, 0xf3, 0xcf, 0x78, 0x66, 0xbc, 0x6b, 0xb6, 0x11, 0x8b,
  34. 0x65, 0x12, 0x89, 0xdb, 0x52, 0x14, 0xfa, 0x77, 0x98, 0x17, 0x99, 0xca, 0x38, 0xcb, 0xa7, 0xc3,
  35. 0x5a, 0x09, 0xd6, 0x97, 0xc7, 0x47, 0x36, 0xc8, 0xc2, 0x57, 0x7f, 0x36, 0xd9, 0xda, 0xa9, 0x11,
  36. 0xf8, 0x7b, 0xc6, 0x3e, 0x85, 0x4a, 0x5c, 0xca, 0x34, 0x91, 0x82, 0xef, 0x0c, 0xf3, 0xe9, 0xed,
  37. 0xf2, 0x78, 0xd8, 0x4a, 0xd7, 0xe2, 0x6e, 0x21, 0x4a, 0x15, 0x6c, 0x11, 0x24, 0x4f, 0xab, 0x83,
  38. 0xff, 0xf8, 0x1b, 0xb6, 0xa6, 0xc5, 0xb1, 0xe4, 0x1b, 0x20, 0x66, 0x2c, 0x5d, 0x26, 0xf7, 0x54,
  39. 0x9b, 0x35, 0x62, 0xf7, 0xb5, 0x70, 0x12, 0xaa, 0x68, 0x36, 0x96, 0x7c, 0x17, 0x04, 0xd5, 0x9a,
  40. 0xcb, 0xdf, 0xa6, 0x90, 0x35, 0x79, 0xc7, 0xee, 0x69, 0xf5, 0x3c, 0x29, 0x15, 0x87, 0x05, 0x6a,
  41. 0xc1, 0xa5, 0x6f, 0x74, 0x74, 0x9b, 0x7b, 0xc6, 0x1e, 0x5c, 0xdc, 0x29, 0x75, 0x16, 0x46, 0x42,
  42. 0x23, 0x1e, 0xd4, 0x71, 0x50, 0x74, 0x1e, 0x3b, 0x24, 0xb3, 0x3e, 0x6f, 0xd9, 0xff, 0xa6, 0x27,
  43. 0x0b, 0xc5, 0x37, 0x61, 0x8f, 0x16, 0x4d, 0x05, 0x4f, 0x7d, 0x19, 0x25, 0x9e, 0x8a, 0x14, 0x25,
  44. 0x9e, 0x8a, 0x94, 0x4a, 0x34, 0x72, 0x53, 0xb9, 0x2d, 0x20, 0xca, 0x96, 0xa2, 0xa8, 0x9a, 0xca,
  45. 0xa1, 0xe8, 0x57, 0x8e, 0x99, 0xf5, 0xa9, 0x47, 0xff, 0x51, 0x86, 0xd3, 0x14, 0x8f, 0xde, 0x4a,
  46. 0xd4, 0xe8, 0x1d, 0x41, 0x8f, 0x70, 0x23, 0xf0, 0xb3, 0xdf, 0x08, 0xf2, 0xd9, 0x8d, 0x8c, 0xa6,
  47. 0x3f, 0x0a, 0x8b, 0xf8, 0x43, 0x1c, 0xa3, 0xe9, 0xd7, 0x1a, 0x35, 0xfd, 0x06, 0x75, 0x4c, 0x74,
  48. 0x13, 0x7d, 0x13, 0xd0, 0xc8, 0x6d, 0x0a, 0xa1, 0x66, 0x6a, 0xd5, 0xac, 0x51, 0xe0, 0x85, 0xc2,
  49. 0x55, 0xda, 0x21, 0x59, 0xc7, 0xe7, 0xa6, 0x92, 0x51, 0xc7, 0x47, 0x8b, 0x7d, 0x3e, 0x96, 0x59,
  50. 0x9f, 0x98, 0x6d, 0x39, 0x79, 0x14, 0xca, 0x93, 0x44, 0xc6, 0xf6, 0x45, 0x2d, 0xf9, 0x4b, 0x2f,
  51. 0x0b, 0x63, 0xe7, 0x7d, 0xf0, 0x8f, 0x28, 0xfb, 0x2f, 0xe7, 0xec, 0x91, 0x09, 0xc8, 0xe6, 0xf3,
  52. 0x50, 0xc6, 0x93, 0x52, 0xf0, 0x01, 0xcc, 0x6b, 0x64, 0xe7, 0x1a, 0xf4, 0x50, 0xeb, 0x36, 0x61,
  53. 0x4f, 0x00, 0xb8, 0x16, 0xe5, 0x22, 0x55, 0xfc, 0x79, 0x37, 0xc5, 0x12, 0xe7, 0xf9, 0xac, 0x3f,
  54. 0x80, 0x2a, 0x52, 0xef, 0x09, 0x51, 0x24, 0x58, 0x95, 0xa0, 0x87, 0x5a, 0xb7, 0x4b, 0xb6, 0x0e,
  55. 0x80, 0x99, 0x35, 0x51, 0x01, 0x1c, 0xf7, 0x5e, 0x1f, 0x46, 0xe5, 0x7d, 0x9d, 0x25, 0x4a, 0x5c,
  56. 0xe8, 0x73, 0x09, 0x95, 0xd7, 0xca, 0x54, 0x79, 0x90, 0x22, 0xb7, 0x49, 0x29, 0x8a, 0xab, 0x24,
  57. 0xf2, 0x1f, 0xb6, 0x95, 0x29, 0x37, 0x48, 0xad, 0xdb, 0x37, 0xc6, 0x21, 0xc8, 0xf3, 0x22, 0x5b,
  58. 0x0a, 0xfe, 0x82, 0xc8, 0xb1, 0xc8, 0xb9, 0xee, 0xaf, 0x88, 0x40, 0x6d, 0xac, 0x61, 0xa7, 0x8d,
  59. 0x40, 0xa7, 0xda, 0x88, 0x30, 0x65, 0x68, 0xde, 0x1d, 0xc2, 0x10, 0xbe, 0x3e, 0x7b, 0x7d, 0x98,
  60. 0xea, 0xa4, 0x3e, 0x19, 0x88, 0x4e, 0x82, 0xc3, 0x21, 0xe8, 0xa1, 0x54, 0x79, 0x63, 0xf9, 0x23,
  61. 0xa3, 0xca, 0xd3, 0xfa, 0x8a, 0xf2, 0x2c, 0x46, 0xe5, 0xe9, 0xc3, 0xb8, 0x3e, 0x72, 0x06, 0xde,
  62. 0x19, 0x8d, 0x0f, 0x9d, 0xa0, 0x87, 0x5a, 0xb7, 0x31, 0x7b, 0xd8, 0x02, 0xbd, 0x35, 0x7b, 0x9d,
  63. 0x70, 0xb0, 0x34, 0xbb, 0x34, 0x44, 0x85, 0x7d, 0x49, 0xca, 0x44, 0x65, 0x85, 0xbf, 0x81, 0xad,
  64. 0x4c, 0x15, 0x06, 0x29, 0xe5, 0xe6, 0x4f, 0xa1, 0x95, 0x57, 0xb8, 0x81, 0x29, 0x5c, 0xb3, 0xc7,
  65. 0x00, 0x8c, 0x66, 0x22, 0xfa, 0xc5, 0xf7, 0xbb, 0x19, 0x06, 0x38, 0xc7, 0x41, 0x2f, 0x47, 0x93,
  66. 0xad, 0x51, 0x67, 0x93, 0x81, 0x4e, 0x4d, 0x16, 0x61, 0xbc, 0x78, 0x32, 0x51, 0xf5, 0xc7, 0x15,
  67. 0x5a, 0xbc, 0x46, 0x26, 0x17, 0x0f, 0x50, 0x74, 0xbb, 0x69, 0xe0, 0x5f, 0x91, 0xb5, 0x46, 0xdd,
  68. 0x6e, 0x0d, 0x42, 0xb7, 0x92, 0x56, 0x3b, 0xb7, 0x9b, 0x13, 0xa9, 0x5b, 0xa9, 0x65, 0x68, 0xcd,
  69. 0xae, 0xf4, 0xd7, 0x63, 0x94, 0xa5, 0x25, 0x5a, 0xb3, 0x46, 0xa5, 0xd6, 0x0c, 0xc0, 0xe6, 0x82,
  70. 0xfb, 0x9c, 0x2d, 0x4a, 0x31, 0xcb, 0xd2, 0xd8, 0x7c, 0x15, 0x54, 0x32, 0xb2, 0x03, 0x75, 0x17,
  71. 0x1c, 0x8d, 0xfd, 0x0b, 0xae, 0x2f, 0xca, 0xfc, 0xcb, 0xc9, 0xe0, 0x7b, 0x90, 0x17, 0x59, 0x2e,
  72. 0x0a, 0x55, 0x1d, 0x96, 0x55, 0xa9, 0xc4, 0xfc, 0xf0, 0x67, 0xa8, 0xc4, 0xef, 0xb0, 0x3a, 0xca,
  73. 0xa7, 0xd3, 0x35, 0xf3, 0x19, 0xfc, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x64, 0xa6,
  74. 0x3c, 0x3b, 0x0b, 0x00, 0x00,
  75. }
  76. // Reference imports to suppress errors if they are not otherwise used.
  77. var _ context.Context
  78. var _ grpc.ClientConnInterface
  79. // This is a compile-time assertion to ensure that this generated file
  80. // is compatible with the grpc package it is being compiled against.
  81. const _ = grpc.SupportPackageIsVersion6
  82. // DeviceClient is the client API for Device service.
  83. //
  84. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  85. type DeviceClient interface {
  86. // 门禁在线
  87. GateOnline(ctx context.Context, in *v1.GateOnlineRequest, opts ...grpc.CallOption) (*v1.GateOnlineReply, error)
  88. // 门禁入库
  89. GateIn(ctx context.Context, in *v1.GateInRequest, opts ...grpc.CallOption) (*v1.GateInReply, error)
  90. // 门禁批量入库
  91. GateBatchIn(ctx context.Context, in *v1.GateBatchInRequest, opts ...grpc.CallOption) (*v1.GateBatchInReply, error)
  92. // 门禁列表
  93. GateList(ctx context.Context, in *v1.GateListRequest, opts ...grpc.CallOption) (*v1.GateListReply, error)
  94. // 人脸门禁所有id
  95. MqttFaceGate(ctx context.Context, in *v1.MqttFaceGateRequest, opts ...grpc.CallOption) (*v1.MqttFaceGateReply, error)
  96. // 门禁出库
  97. GateOut(ctx context.Context, in *v1.GateOutRequest, opts ...grpc.CallOption) (*v1.GateOutReply, error)
  98. // 删除门禁
  99. GateDel(ctx context.Context, in *v1.GateDelRequest, opts ...grpc.CallOption) (*v1.GateDelReply, error)
  100. // 门禁回收
  101. GateRecovery(ctx context.Context, in *v1.GateRecoveryRequest, opts ...grpc.CallOption) (*v1.GateRecoveryReply, error)
  102. // 门禁起停用
  103. GateEnable(ctx context.Context, in *v1.GateEnableRequest, opts ...grpc.CallOption) (*v1.GateEnableReply, error)
  104. // 设置门禁位置和进场出场
  105. GateSet(ctx context.Context, in *v1.GateSetRequest, opts ...grpc.CallOption) (*v1.GateSetReply, error)
  106. // 添加门禁卡号
  107. GateCardAdd(ctx context.Context, in *v1.GateCardAddRequest, opts ...grpc.CallOption) (*v1.GateCardAddReply, error)
  108. GateCardDel(ctx context.Context, in *v1.GateCardDelRequest, opts ...grpc.CallOption) (*v1.GateCardDelReply, error)
  109. // 门禁卡列表
  110. GateCardList(ctx context.Context, in *v1.GateCardListRequest, opts ...grpc.CallOption) (*v1.GateCardListReply, error)
  111. // 门禁卡下发
  112. GateCardSync(ctx context.Context, in *v1.GateCardSyncRequest, opts ...grpc.CallOption) (*v1.GateCardSyncReply, error)
  113. // 获取卡还可以绑定的设备
  114. GateCardCanBindDevices(ctx context.Context, in *v1.GateCardCanBindDevicesRequest, opts ...grpc.CallOption) (*v1.GateCardCanBindDevicesReply, error)
  115. // 获取门禁远程命令
  116. GateCommandUse(ctx context.Context, in *v1.GateCommandUseRequest, opts ...grpc.CallOption) (*v1.GateCommandUseReply, error)
  117. // 门禁远程命令结果
  118. GateCommandResult(ctx context.Context, in *v1.GateCommandResultRequest, opts ...grpc.CallOption) (*v1.GateCommandResultReply, error)
  119. // 门禁命令添加
  120. GateCommandAdd(ctx context.Context, in *v1.GateCommandAddRequest, opts ...grpc.CallOption) (*v1.GateCommandAddReply, error)
  121. // 门禁命令记录
  122. GateCommandList(ctx context.Context, in *v1.GateCommandListRequest, opts ...grpc.CallOption) (*v1.GateCommandListReply, error)
  123. // 门禁白名单匹配
  124. GateWhiteMatch(ctx context.Context, in *v1.GateWhiteMatchRequest, opts ...grpc.CallOption) (*v1.GateWhiteMatchReply, error)
  125. // 门禁人脸申请
  126. GateUserPicAdd(ctx context.Context, in *v1.GateUserPicAddRequest, opts ...grpc.CallOption) (*v1.GateUserPicAddReply, error)
  127. // 门禁人脸审核
  128. GateUserPicApprove(ctx context.Context, in *v1.GateUserPicApproveRequest, opts ...grpc.CallOption) (*v1.GateUserPicApproveReply, error)
  129. // 获取人脸录入列表
  130. GateUserPicList(ctx context.Context, in *v1.GateUserPicListRequest, opts ...grpc.CallOption) (*v1.GateUserPicListReply, error)
  131. // 门禁人脸下发
  132. GateUserPicSync(ctx context.Context, in *v1.GateUserPicSyncRequest, opts ...grpc.CallOption) (*v1.GateUserPicSyncReply, error)
  133. GateUserPicDel(ctx context.Context, in *v1.GateUserPicDelRequest, opts ...grpc.CallOption) (*v1.GateUserPicDelReply, error)
  134. // 获取人脸录入信息
  135. GateUserPicInfo(ctx context.Context, in *v1.GateUserPicInfoRequest, opts ...grpc.CallOption) (*v1.GateUserPicInfoReply, error)
  136. // 门禁进出记录列表
  137. GateRecordList(ctx context.Context, in *v1.GateRecordListRequest, opts ...grpc.CallOption) (*v1.GateRecordListReply, error)
  138. // 门禁进出记录添加
  139. GateRecordAdd(ctx context.Context, in *v1.GateRecordAddRequest, opts ...grpc.CallOption) (*v1.GateRecordAddReply, error)
  140. GateVisitorAdd(ctx context.Context, in *v1.GateVisitorAddRequest, opts ...grpc.CallOption) (*v1.GateVisitorAddReply, error)
  141. GateVisitorDel(ctx context.Context, in *v1.GateVisitorDelRequest, opts ...grpc.CallOption) (*v1.GateVisitorDelReply, error)
  142. GateVisitorCheck(ctx context.Context, in *v1.GateVisitorCheckRequest, opts ...grpc.CallOption) (*v1.GateVisitorCheckReply, error)
  143. GateVisitorList(ctx context.Context, in *v1.GateVisitorListRequest, opts ...grpc.CallOption) (*v1.GateVisitorListReply, error)
  144. // 获取绑定了某单元的门禁列表
  145. GateUnitDevice(ctx context.Context, in *v1.GateUnitDeviceRequest, opts ...grpc.CallOption) (*v1.GateUnitDeviceReply, error)
  146. // 门禁设备绑定范围
  147. GateUnitAdd(ctx context.Context, in *v1.GateUnitAddRequest, opts ...grpc.CallOption) (*v1.GateUnitAddReply, error)
  148. // 门禁设备单元列表
  149. GateUnitList(ctx context.Context, in *v1.GateUnitListRequest, opts ...grpc.CallOption) (*v1.GateUnitListReply, error)
  150. // 门禁协议
  151. GateProtocols(ctx context.Context, in *v1.GateProtocolsRequest, opts ...grpc.CallOption) (*v1.GateProtocolsReply, error)
  152. // 住户申请房屋后,检查是否有设备需要同步人脸
  153. HouseholdGateSyncCheck(ctx context.Context, in *v1.HouseholdGateSyncCheckRequest, opts ...grpc.CallOption) (*v1.HouseholdGateSyncCheckReply, error)
  154. }
  155. type deviceClient struct {
  156. cc grpc.ClientConnInterface
  157. }
  158. func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient {
  159. return &deviceClient{cc}
  160. }
  161. func (c *deviceClient) GateOnline(ctx context.Context, in *v1.GateOnlineRequest, opts ...grpc.CallOption) (*v1.GateOnlineReply, error) {
  162. out := new(v1.GateOnlineReply)
  163. err := c.cc.Invoke(ctx, "/pb.service.Device/GateOnline", in, out, opts...)
  164. if err != nil {
  165. return nil, err
  166. }
  167. return out, nil
  168. }
  169. func (c *deviceClient) GateIn(ctx context.Context, in *v1.GateInRequest, opts ...grpc.CallOption) (*v1.GateInReply, error) {
  170. out := new(v1.GateInReply)
  171. err := c.cc.Invoke(ctx, "/pb.service.Device/GateIn", in, out, opts...)
  172. if err != nil {
  173. return nil, err
  174. }
  175. return out, nil
  176. }
  177. func (c *deviceClient) GateBatchIn(ctx context.Context, in *v1.GateBatchInRequest, opts ...grpc.CallOption) (*v1.GateBatchInReply, error) {
  178. out := new(v1.GateBatchInReply)
  179. err := c.cc.Invoke(ctx, "/pb.service.Device/GateBatchIn", in, out, opts...)
  180. if err != nil {
  181. return nil, err
  182. }
  183. return out, nil
  184. }
  185. func (c *deviceClient) GateList(ctx context.Context, in *v1.GateListRequest, opts ...grpc.CallOption) (*v1.GateListReply, error) {
  186. out := new(v1.GateListReply)
  187. err := c.cc.Invoke(ctx, "/pb.service.Device/GateList", in, out, opts...)
  188. if err != nil {
  189. return nil, err
  190. }
  191. return out, nil
  192. }
  193. func (c *deviceClient) MqttFaceGate(ctx context.Context, in *v1.MqttFaceGateRequest, opts ...grpc.CallOption) (*v1.MqttFaceGateReply, error) {
  194. out := new(v1.MqttFaceGateReply)
  195. err := c.cc.Invoke(ctx, "/pb.service.Device/MqttFaceGate", in, out, opts...)
  196. if err != nil {
  197. return nil, err
  198. }
  199. return out, nil
  200. }
  201. func (c *deviceClient) GateOut(ctx context.Context, in *v1.GateOutRequest, opts ...grpc.CallOption) (*v1.GateOutReply, error) {
  202. out := new(v1.GateOutReply)
  203. err := c.cc.Invoke(ctx, "/pb.service.Device/GateOut", in, out, opts...)
  204. if err != nil {
  205. return nil, err
  206. }
  207. return out, nil
  208. }
  209. func (c *deviceClient) GateDel(ctx context.Context, in *v1.GateDelRequest, opts ...grpc.CallOption) (*v1.GateDelReply, error) {
  210. out := new(v1.GateDelReply)
  211. err := c.cc.Invoke(ctx, "/pb.service.Device/GateDel", in, out, opts...)
  212. if err != nil {
  213. return nil, err
  214. }
  215. return out, nil
  216. }
  217. func (c *deviceClient) GateRecovery(ctx context.Context, in *v1.GateRecoveryRequest, opts ...grpc.CallOption) (*v1.GateRecoveryReply, error) {
  218. out := new(v1.GateRecoveryReply)
  219. err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecovery", in, out, opts...)
  220. if err != nil {
  221. return nil, err
  222. }
  223. return out, nil
  224. }
  225. func (c *deviceClient) GateEnable(ctx context.Context, in *v1.GateEnableRequest, opts ...grpc.CallOption) (*v1.GateEnableReply, error) {
  226. out := new(v1.GateEnableReply)
  227. err := c.cc.Invoke(ctx, "/pb.service.Device/GateEnable", in, out, opts...)
  228. if err != nil {
  229. return nil, err
  230. }
  231. return out, nil
  232. }
  233. func (c *deviceClient) GateSet(ctx context.Context, in *v1.GateSetRequest, opts ...grpc.CallOption) (*v1.GateSetReply, error) {
  234. out := new(v1.GateSetReply)
  235. err := c.cc.Invoke(ctx, "/pb.service.Device/GateSet", in, out, opts...)
  236. if err != nil {
  237. return nil, err
  238. }
  239. return out, nil
  240. }
  241. func (c *deviceClient) GateCardAdd(ctx context.Context, in *v1.GateCardAddRequest, opts ...grpc.CallOption) (*v1.GateCardAddReply, error) {
  242. out := new(v1.GateCardAddReply)
  243. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardAdd", in, out, opts...)
  244. if err != nil {
  245. return nil, err
  246. }
  247. return out, nil
  248. }
  249. func (c *deviceClient) GateCardDel(ctx context.Context, in *v1.GateCardDelRequest, opts ...grpc.CallOption) (*v1.GateCardDelReply, error) {
  250. out := new(v1.GateCardDelReply)
  251. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardDel", in, out, opts...)
  252. if err != nil {
  253. return nil, err
  254. }
  255. return out, nil
  256. }
  257. func (c *deviceClient) GateCardList(ctx context.Context, in *v1.GateCardListRequest, opts ...grpc.CallOption) (*v1.GateCardListReply, error) {
  258. out := new(v1.GateCardListReply)
  259. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardList", in, out, opts...)
  260. if err != nil {
  261. return nil, err
  262. }
  263. return out, nil
  264. }
  265. func (c *deviceClient) GateCardSync(ctx context.Context, in *v1.GateCardSyncRequest, opts ...grpc.CallOption) (*v1.GateCardSyncReply, error) {
  266. out := new(v1.GateCardSyncReply)
  267. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardSync", in, out, opts...)
  268. if err != nil {
  269. return nil, err
  270. }
  271. return out, nil
  272. }
  273. func (c *deviceClient) GateCardCanBindDevices(ctx context.Context, in *v1.GateCardCanBindDevicesRequest, opts ...grpc.CallOption) (*v1.GateCardCanBindDevicesReply, error) {
  274. out := new(v1.GateCardCanBindDevicesReply)
  275. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardCanBindDevices", in, out, opts...)
  276. if err != nil {
  277. return nil, err
  278. }
  279. return out, nil
  280. }
  281. func (c *deviceClient) GateCommandUse(ctx context.Context, in *v1.GateCommandUseRequest, opts ...grpc.CallOption) (*v1.GateCommandUseReply, error) {
  282. out := new(v1.GateCommandUseReply)
  283. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandUse", in, out, opts...)
  284. if err != nil {
  285. return nil, err
  286. }
  287. return out, nil
  288. }
  289. func (c *deviceClient) GateCommandResult(ctx context.Context, in *v1.GateCommandResultRequest, opts ...grpc.CallOption) (*v1.GateCommandResultReply, error) {
  290. out := new(v1.GateCommandResultReply)
  291. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandResult", in, out, opts...)
  292. if err != nil {
  293. return nil, err
  294. }
  295. return out, nil
  296. }
  297. func (c *deviceClient) GateCommandAdd(ctx context.Context, in *v1.GateCommandAddRequest, opts ...grpc.CallOption) (*v1.GateCommandAddReply, error) {
  298. out := new(v1.GateCommandAddReply)
  299. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandAdd", in, out, opts...)
  300. if err != nil {
  301. return nil, err
  302. }
  303. return out, nil
  304. }
  305. func (c *deviceClient) GateCommandList(ctx context.Context, in *v1.GateCommandListRequest, opts ...grpc.CallOption) (*v1.GateCommandListReply, error) {
  306. out := new(v1.GateCommandListReply)
  307. err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandList", in, out, opts...)
  308. if err != nil {
  309. return nil, err
  310. }
  311. return out, nil
  312. }
  313. func (c *deviceClient) GateWhiteMatch(ctx context.Context, in *v1.GateWhiteMatchRequest, opts ...grpc.CallOption) (*v1.GateWhiteMatchReply, error) {
  314. out := new(v1.GateWhiteMatchReply)
  315. err := c.cc.Invoke(ctx, "/pb.service.Device/GateWhiteMatch", in, out, opts...)
  316. if err != nil {
  317. return nil, err
  318. }
  319. return out, nil
  320. }
  321. func (c *deviceClient) GateUserPicAdd(ctx context.Context, in *v1.GateUserPicAddRequest, opts ...grpc.CallOption) (*v1.GateUserPicAddReply, error) {
  322. out := new(v1.GateUserPicAddReply)
  323. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicAdd", in, out, opts...)
  324. if err != nil {
  325. return nil, err
  326. }
  327. return out, nil
  328. }
  329. func (c *deviceClient) GateUserPicApprove(ctx context.Context, in *v1.GateUserPicApproveRequest, opts ...grpc.CallOption) (*v1.GateUserPicApproveReply, error) {
  330. out := new(v1.GateUserPicApproveReply)
  331. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicApprove", in, out, opts...)
  332. if err != nil {
  333. return nil, err
  334. }
  335. return out, nil
  336. }
  337. func (c *deviceClient) GateUserPicList(ctx context.Context, in *v1.GateUserPicListRequest, opts ...grpc.CallOption) (*v1.GateUserPicListReply, error) {
  338. out := new(v1.GateUserPicListReply)
  339. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicList", in, out, opts...)
  340. if err != nil {
  341. return nil, err
  342. }
  343. return out, nil
  344. }
  345. func (c *deviceClient) GateUserPicSync(ctx context.Context, in *v1.GateUserPicSyncRequest, opts ...grpc.CallOption) (*v1.GateUserPicSyncReply, error) {
  346. out := new(v1.GateUserPicSyncReply)
  347. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicSync", in, out, opts...)
  348. if err != nil {
  349. return nil, err
  350. }
  351. return out, nil
  352. }
  353. func (c *deviceClient) GateUserPicDel(ctx context.Context, in *v1.GateUserPicDelRequest, opts ...grpc.CallOption) (*v1.GateUserPicDelReply, error) {
  354. out := new(v1.GateUserPicDelReply)
  355. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicDel", in, out, opts...)
  356. if err != nil {
  357. return nil, err
  358. }
  359. return out, nil
  360. }
  361. func (c *deviceClient) GateUserPicInfo(ctx context.Context, in *v1.GateUserPicInfoRequest, opts ...grpc.CallOption) (*v1.GateUserPicInfoReply, error) {
  362. out := new(v1.GateUserPicInfoReply)
  363. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicInfo", in, out, opts...)
  364. if err != nil {
  365. return nil, err
  366. }
  367. return out, nil
  368. }
  369. func (c *deviceClient) GateRecordList(ctx context.Context, in *v1.GateRecordListRequest, opts ...grpc.CallOption) (*v1.GateRecordListReply, error) {
  370. out := new(v1.GateRecordListReply)
  371. err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecordList", in, out, opts...)
  372. if err != nil {
  373. return nil, err
  374. }
  375. return out, nil
  376. }
  377. func (c *deviceClient) GateRecordAdd(ctx context.Context, in *v1.GateRecordAddRequest, opts ...grpc.CallOption) (*v1.GateRecordAddReply, error) {
  378. out := new(v1.GateRecordAddReply)
  379. err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecordAdd", in, out, opts...)
  380. if err != nil {
  381. return nil, err
  382. }
  383. return out, nil
  384. }
  385. func (c *deviceClient) GateVisitorAdd(ctx context.Context, in *v1.GateVisitorAddRequest, opts ...grpc.CallOption) (*v1.GateVisitorAddReply, error) {
  386. out := new(v1.GateVisitorAddReply)
  387. err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorAdd", in, out, opts...)
  388. if err != nil {
  389. return nil, err
  390. }
  391. return out, nil
  392. }
  393. func (c *deviceClient) GateVisitorDel(ctx context.Context, in *v1.GateVisitorDelRequest, opts ...grpc.CallOption) (*v1.GateVisitorDelReply, error) {
  394. out := new(v1.GateVisitorDelReply)
  395. err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorDel", in, out, opts...)
  396. if err != nil {
  397. return nil, err
  398. }
  399. return out, nil
  400. }
  401. func (c *deviceClient) GateVisitorCheck(ctx context.Context, in *v1.GateVisitorCheckRequest, opts ...grpc.CallOption) (*v1.GateVisitorCheckReply, error) {
  402. out := new(v1.GateVisitorCheckReply)
  403. err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorCheck", in, out, opts...)
  404. if err != nil {
  405. return nil, err
  406. }
  407. return out, nil
  408. }
  409. func (c *deviceClient) GateVisitorList(ctx context.Context, in *v1.GateVisitorListRequest, opts ...grpc.CallOption) (*v1.GateVisitorListReply, error) {
  410. out := new(v1.GateVisitorListReply)
  411. err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorList", in, out, opts...)
  412. if err != nil {
  413. return nil, err
  414. }
  415. return out, nil
  416. }
  417. func (c *deviceClient) GateUnitDevice(ctx context.Context, in *v1.GateUnitDeviceRequest, opts ...grpc.CallOption) (*v1.GateUnitDeviceReply, error) {
  418. out := new(v1.GateUnitDeviceReply)
  419. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUnitDevice", in, out, opts...)
  420. if err != nil {
  421. return nil, err
  422. }
  423. return out, nil
  424. }
  425. func (c *deviceClient) GateUnitAdd(ctx context.Context, in *v1.GateUnitAddRequest, opts ...grpc.CallOption) (*v1.GateUnitAddReply, error) {
  426. out := new(v1.GateUnitAddReply)
  427. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUnitAdd", in, out, opts...)
  428. if err != nil {
  429. return nil, err
  430. }
  431. return out, nil
  432. }
  433. func (c *deviceClient) GateUnitList(ctx context.Context, in *v1.GateUnitListRequest, opts ...grpc.CallOption) (*v1.GateUnitListReply, error) {
  434. out := new(v1.GateUnitListReply)
  435. err := c.cc.Invoke(ctx, "/pb.service.Device/GateUnitList", in, out, opts...)
  436. if err != nil {
  437. return nil, err
  438. }
  439. return out, nil
  440. }
  441. func (c *deviceClient) GateProtocols(ctx context.Context, in *v1.GateProtocolsRequest, opts ...grpc.CallOption) (*v1.GateProtocolsReply, error) {
  442. out := new(v1.GateProtocolsReply)
  443. err := c.cc.Invoke(ctx, "/pb.service.Device/GateProtocols", in, out, opts...)
  444. if err != nil {
  445. return nil, err
  446. }
  447. return out, nil
  448. }
  449. func (c *deviceClient) HouseholdGateSyncCheck(ctx context.Context, in *v1.HouseholdGateSyncCheckRequest, opts ...grpc.CallOption) (*v1.HouseholdGateSyncCheckReply, error) {
  450. out := new(v1.HouseholdGateSyncCheckReply)
  451. err := c.cc.Invoke(ctx, "/pb.service.Device/HouseholdGateSyncCheck", in, out, opts...)
  452. if err != nil {
  453. return nil, err
  454. }
  455. return out, nil
  456. }
  457. // DeviceServer is the server API for Device service.
  458. type DeviceServer interface {
  459. // 门禁在线
  460. GateOnline(context.Context, *v1.GateOnlineRequest) (*v1.GateOnlineReply, error)
  461. // 门禁入库
  462. GateIn(context.Context, *v1.GateInRequest) (*v1.GateInReply, error)
  463. // 门禁批量入库
  464. GateBatchIn(context.Context, *v1.GateBatchInRequest) (*v1.GateBatchInReply, error)
  465. // 门禁列表
  466. GateList(context.Context, *v1.GateListRequest) (*v1.GateListReply, error)
  467. // 人脸门禁所有id
  468. MqttFaceGate(context.Context, *v1.MqttFaceGateRequest) (*v1.MqttFaceGateReply, error)
  469. // 门禁出库
  470. GateOut(context.Context, *v1.GateOutRequest) (*v1.GateOutReply, error)
  471. // 删除门禁
  472. GateDel(context.Context, *v1.GateDelRequest) (*v1.GateDelReply, error)
  473. // 门禁回收
  474. GateRecovery(context.Context, *v1.GateRecoveryRequest) (*v1.GateRecoveryReply, error)
  475. // 门禁起停用
  476. GateEnable(context.Context, *v1.GateEnableRequest) (*v1.GateEnableReply, error)
  477. // 设置门禁位置和进场出场
  478. GateSet(context.Context, *v1.GateSetRequest) (*v1.GateSetReply, error)
  479. // 添加门禁卡号
  480. GateCardAdd(context.Context, *v1.GateCardAddRequest) (*v1.GateCardAddReply, error)
  481. GateCardDel(context.Context, *v1.GateCardDelRequest) (*v1.GateCardDelReply, error)
  482. // 门禁卡列表
  483. GateCardList(context.Context, *v1.GateCardListRequest) (*v1.GateCardListReply, error)
  484. // 门禁卡下发
  485. GateCardSync(context.Context, *v1.GateCardSyncRequest) (*v1.GateCardSyncReply, error)
  486. // 获取卡还可以绑定的设备
  487. GateCardCanBindDevices(context.Context, *v1.GateCardCanBindDevicesRequest) (*v1.GateCardCanBindDevicesReply, error)
  488. // 获取门禁远程命令
  489. GateCommandUse(context.Context, *v1.GateCommandUseRequest) (*v1.GateCommandUseReply, error)
  490. // 门禁远程命令结果
  491. GateCommandResult(context.Context, *v1.GateCommandResultRequest) (*v1.GateCommandResultReply, error)
  492. // 门禁命令添加
  493. GateCommandAdd(context.Context, *v1.GateCommandAddRequest) (*v1.GateCommandAddReply, error)
  494. // 门禁命令记录
  495. GateCommandList(context.Context, *v1.GateCommandListRequest) (*v1.GateCommandListReply, error)
  496. // 门禁白名单匹配
  497. GateWhiteMatch(context.Context, *v1.GateWhiteMatchRequest) (*v1.GateWhiteMatchReply, error)
  498. // 门禁人脸申请
  499. GateUserPicAdd(context.Context, *v1.GateUserPicAddRequest) (*v1.GateUserPicAddReply, error)
  500. // 门禁人脸审核
  501. GateUserPicApprove(context.Context, *v1.GateUserPicApproveRequest) (*v1.GateUserPicApproveReply, error)
  502. // 获取人脸录入列表
  503. GateUserPicList(context.Context, *v1.GateUserPicListRequest) (*v1.GateUserPicListReply, error)
  504. // 门禁人脸下发
  505. GateUserPicSync(context.Context, *v1.GateUserPicSyncRequest) (*v1.GateUserPicSyncReply, error)
  506. GateUserPicDel(context.Context, *v1.GateUserPicDelRequest) (*v1.GateUserPicDelReply, error)
  507. // 获取人脸录入信息
  508. GateUserPicInfo(context.Context, *v1.GateUserPicInfoRequest) (*v1.GateUserPicInfoReply, error)
  509. // 门禁进出记录列表
  510. GateRecordList(context.Context, *v1.GateRecordListRequest) (*v1.GateRecordListReply, error)
  511. // 门禁进出记录添加
  512. GateRecordAdd(context.Context, *v1.GateRecordAddRequest) (*v1.GateRecordAddReply, error)
  513. GateVisitorAdd(context.Context, *v1.GateVisitorAddRequest) (*v1.GateVisitorAddReply, error)
  514. GateVisitorDel(context.Context, *v1.GateVisitorDelRequest) (*v1.GateVisitorDelReply, error)
  515. GateVisitorCheck(context.Context, *v1.GateVisitorCheckRequest) (*v1.GateVisitorCheckReply, error)
  516. GateVisitorList(context.Context, *v1.GateVisitorListRequest) (*v1.GateVisitorListReply, error)
  517. // 获取绑定了某单元的门禁列表
  518. GateUnitDevice(context.Context, *v1.GateUnitDeviceRequest) (*v1.GateUnitDeviceReply, error)
  519. // 门禁设备绑定范围
  520. GateUnitAdd(context.Context, *v1.GateUnitAddRequest) (*v1.GateUnitAddReply, error)
  521. // 门禁设备单元列表
  522. GateUnitList(context.Context, *v1.GateUnitListRequest) (*v1.GateUnitListReply, error)
  523. // 门禁协议
  524. GateProtocols(context.Context, *v1.GateProtocolsRequest) (*v1.GateProtocolsReply, error)
  525. // 住户申请房屋后,检查是否有设备需要同步人脸
  526. HouseholdGateSyncCheck(context.Context, *v1.HouseholdGateSyncCheckRequest) (*v1.HouseholdGateSyncCheckReply, error)
  527. }
  528. // UnimplementedDeviceServer can be embedded to have forward compatible implementations.
  529. type UnimplementedDeviceServer struct {
  530. }
  531. func (*UnimplementedDeviceServer) GateOnline(ctx context.Context, req *v1.GateOnlineRequest) (*v1.GateOnlineReply, error) {
  532. return nil, status.Errorf(codes.Unimplemented, "method GateOnline not implemented")
  533. }
  534. func (*UnimplementedDeviceServer) GateIn(ctx context.Context, req *v1.GateInRequest) (*v1.GateInReply, error) {
  535. return nil, status.Errorf(codes.Unimplemented, "method GateIn not implemented")
  536. }
  537. func (*UnimplementedDeviceServer) GateBatchIn(ctx context.Context, req *v1.GateBatchInRequest) (*v1.GateBatchInReply, error) {
  538. return nil, status.Errorf(codes.Unimplemented, "method GateBatchIn not implemented")
  539. }
  540. func (*UnimplementedDeviceServer) GateList(ctx context.Context, req *v1.GateListRequest) (*v1.GateListReply, error) {
  541. return nil, status.Errorf(codes.Unimplemented, "method GateList not implemented")
  542. }
  543. func (*UnimplementedDeviceServer) MqttFaceGate(ctx context.Context, req *v1.MqttFaceGateRequest) (*v1.MqttFaceGateReply, error) {
  544. return nil, status.Errorf(codes.Unimplemented, "method MqttFaceGate not implemented")
  545. }
  546. func (*UnimplementedDeviceServer) GateOut(ctx context.Context, req *v1.GateOutRequest) (*v1.GateOutReply, error) {
  547. return nil, status.Errorf(codes.Unimplemented, "method GateOut not implemented")
  548. }
  549. func (*UnimplementedDeviceServer) GateDel(ctx context.Context, req *v1.GateDelRequest) (*v1.GateDelReply, error) {
  550. return nil, status.Errorf(codes.Unimplemented, "method GateDel not implemented")
  551. }
  552. func (*UnimplementedDeviceServer) GateRecovery(ctx context.Context, req *v1.GateRecoveryRequest) (*v1.GateRecoveryReply, error) {
  553. return nil, status.Errorf(codes.Unimplemented, "method GateRecovery not implemented")
  554. }
  555. func (*UnimplementedDeviceServer) GateEnable(ctx context.Context, req *v1.GateEnableRequest) (*v1.GateEnableReply, error) {
  556. return nil, status.Errorf(codes.Unimplemented, "method GateEnable not implemented")
  557. }
  558. func (*UnimplementedDeviceServer) GateSet(ctx context.Context, req *v1.GateSetRequest) (*v1.GateSetReply, error) {
  559. return nil, status.Errorf(codes.Unimplemented, "method GateSet not implemented")
  560. }
  561. func (*UnimplementedDeviceServer) GateCardAdd(ctx context.Context, req *v1.GateCardAddRequest) (*v1.GateCardAddReply, error) {
  562. return nil, status.Errorf(codes.Unimplemented, "method GateCardAdd not implemented")
  563. }
  564. func (*UnimplementedDeviceServer) GateCardDel(ctx context.Context, req *v1.GateCardDelRequest) (*v1.GateCardDelReply, error) {
  565. return nil, status.Errorf(codes.Unimplemented, "method GateCardDel not implemented")
  566. }
  567. func (*UnimplementedDeviceServer) GateCardList(ctx context.Context, req *v1.GateCardListRequest) (*v1.GateCardListReply, error) {
  568. return nil, status.Errorf(codes.Unimplemented, "method GateCardList not implemented")
  569. }
  570. func (*UnimplementedDeviceServer) GateCardSync(ctx context.Context, req *v1.GateCardSyncRequest) (*v1.GateCardSyncReply, error) {
  571. return nil, status.Errorf(codes.Unimplemented, "method GateCardSync not implemented")
  572. }
  573. func (*UnimplementedDeviceServer) GateCardCanBindDevices(ctx context.Context, req *v1.GateCardCanBindDevicesRequest) (*v1.GateCardCanBindDevicesReply, error) {
  574. return nil, status.Errorf(codes.Unimplemented, "method GateCardCanBindDevices not implemented")
  575. }
  576. func (*UnimplementedDeviceServer) GateCommandUse(ctx context.Context, req *v1.GateCommandUseRequest) (*v1.GateCommandUseReply, error) {
  577. return nil, status.Errorf(codes.Unimplemented, "method GateCommandUse not implemented")
  578. }
  579. func (*UnimplementedDeviceServer) GateCommandResult(ctx context.Context, req *v1.GateCommandResultRequest) (*v1.GateCommandResultReply, error) {
  580. return nil, status.Errorf(codes.Unimplemented, "method GateCommandResult not implemented")
  581. }
  582. func (*UnimplementedDeviceServer) GateCommandAdd(ctx context.Context, req *v1.GateCommandAddRequest) (*v1.GateCommandAddReply, error) {
  583. return nil, status.Errorf(codes.Unimplemented, "method GateCommandAdd not implemented")
  584. }
  585. func (*UnimplementedDeviceServer) GateCommandList(ctx context.Context, req *v1.GateCommandListRequest) (*v1.GateCommandListReply, error) {
  586. return nil, status.Errorf(codes.Unimplemented, "method GateCommandList not implemented")
  587. }
  588. func (*UnimplementedDeviceServer) GateWhiteMatch(ctx context.Context, req *v1.GateWhiteMatchRequest) (*v1.GateWhiteMatchReply, error) {
  589. return nil, status.Errorf(codes.Unimplemented, "method GateWhiteMatch not implemented")
  590. }
  591. func (*UnimplementedDeviceServer) GateUserPicAdd(ctx context.Context, req *v1.GateUserPicAddRequest) (*v1.GateUserPicAddReply, error) {
  592. return nil, status.Errorf(codes.Unimplemented, "method GateUserPicAdd not implemented")
  593. }
  594. func (*UnimplementedDeviceServer) GateUserPicApprove(ctx context.Context, req *v1.GateUserPicApproveRequest) (*v1.GateUserPicApproveReply, error) {
  595. return nil, status.Errorf(codes.Unimplemented, "method GateUserPicApprove not implemented")
  596. }
  597. func (*UnimplementedDeviceServer) GateUserPicList(ctx context.Context, req *v1.GateUserPicListRequest) (*v1.GateUserPicListReply, error) {
  598. return nil, status.Errorf(codes.Unimplemented, "method GateUserPicList not implemented")
  599. }
  600. func (*UnimplementedDeviceServer) GateUserPicSync(ctx context.Context, req *v1.GateUserPicSyncRequest) (*v1.GateUserPicSyncReply, error) {
  601. return nil, status.Errorf(codes.Unimplemented, "method GateUserPicSync not implemented")
  602. }
  603. func (*UnimplementedDeviceServer) GateUserPicDel(ctx context.Context, req *v1.GateUserPicDelRequest) (*v1.GateUserPicDelReply, error) {
  604. return nil, status.Errorf(codes.Unimplemented, "method GateUserPicDel not implemented")
  605. }
  606. func (*UnimplementedDeviceServer) GateUserPicInfo(ctx context.Context, req *v1.GateUserPicInfoRequest) (*v1.GateUserPicInfoReply, error) {
  607. return nil, status.Errorf(codes.Unimplemented, "method GateUserPicInfo not implemented")
  608. }
  609. func (*UnimplementedDeviceServer) GateRecordList(ctx context.Context, req *v1.GateRecordListRequest) (*v1.GateRecordListReply, error) {
  610. return nil, status.Errorf(codes.Unimplemented, "method GateRecordList not implemented")
  611. }
  612. func (*UnimplementedDeviceServer) GateRecordAdd(ctx context.Context, req *v1.GateRecordAddRequest) (*v1.GateRecordAddReply, error) {
  613. return nil, status.Errorf(codes.Unimplemented, "method GateRecordAdd not implemented")
  614. }
  615. func (*UnimplementedDeviceServer) GateVisitorAdd(ctx context.Context, req *v1.GateVisitorAddRequest) (*v1.GateVisitorAddReply, error) {
  616. return nil, status.Errorf(codes.Unimplemented, "method GateVisitorAdd not implemented")
  617. }
  618. func (*UnimplementedDeviceServer) GateVisitorDel(ctx context.Context, req *v1.GateVisitorDelRequest) (*v1.GateVisitorDelReply, error) {
  619. return nil, status.Errorf(codes.Unimplemented, "method GateVisitorDel not implemented")
  620. }
  621. func (*UnimplementedDeviceServer) GateVisitorCheck(ctx context.Context, req *v1.GateVisitorCheckRequest) (*v1.GateVisitorCheckReply, error) {
  622. return nil, status.Errorf(codes.Unimplemented, "method GateVisitorCheck not implemented")
  623. }
  624. func (*UnimplementedDeviceServer) GateVisitorList(ctx context.Context, req *v1.GateVisitorListRequest) (*v1.GateVisitorListReply, error) {
  625. return nil, status.Errorf(codes.Unimplemented, "method GateVisitorList not implemented")
  626. }
  627. func (*UnimplementedDeviceServer) GateUnitDevice(ctx context.Context, req *v1.GateUnitDeviceRequest) (*v1.GateUnitDeviceReply, error) {
  628. return nil, status.Errorf(codes.Unimplemented, "method GateUnitDevice not implemented")
  629. }
  630. func (*UnimplementedDeviceServer) GateUnitAdd(ctx context.Context, req *v1.GateUnitAddRequest) (*v1.GateUnitAddReply, error) {
  631. return nil, status.Errorf(codes.Unimplemented, "method GateUnitAdd not implemented")
  632. }
  633. func (*UnimplementedDeviceServer) GateUnitList(ctx context.Context, req *v1.GateUnitListRequest) (*v1.GateUnitListReply, error) {
  634. return nil, status.Errorf(codes.Unimplemented, "method GateUnitList not implemented")
  635. }
  636. func (*UnimplementedDeviceServer) GateProtocols(ctx context.Context, req *v1.GateProtocolsRequest) (*v1.GateProtocolsReply, error) {
  637. return nil, status.Errorf(codes.Unimplemented, "method GateProtocols not implemented")
  638. }
  639. func (*UnimplementedDeviceServer) HouseholdGateSyncCheck(ctx context.Context, req *v1.HouseholdGateSyncCheckRequest) (*v1.HouseholdGateSyncCheckReply, error) {
  640. return nil, status.Errorf(codes.Unimplemented, "method HouseholdGateSyncCheck not implemented")
  641. }
  642. func RegisterDeviceServer(s *grpc.Server, srv DeviceServer) {
  643. s.RegisterService(&_Device_serviceDesc, srv)
  644. }
  645. func _Device_GateOnline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  646. in := new(v1.GateOnlineRequest)
  647. if err := dec(in); err != nil {
  648. return nil, err
  649. }
  650. if interceptor == nil {
  651. return srv.(DeviceServer).GateOnline(ctx, in)
  652. }
  653. info := &grpc.UnaryServerInfo{
  654. Server: srv,
  655. FullMethod: "/pb.service.Device/GateOnline",
  656. }
  657. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  658. return srv.(DeviceServer).GateOnline(ctx, req.(*v1.GateOnlineRequest))
  659. }
  660. return interceptor(ctx, in, info, handler)
  661. }
  662. func _Device_GateIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  663. in := new(v1.GateInRequest)
  664. if err := dec(in); err != nil {
  665. return nil, err
  666. }
  667. if interceptor == nil {
  668. return srv.(DeviceServer).GateIn(ctx, in)
  669. }
  670. info := &grpc.UnaryServerInfo{
  671. Server: srv,
  672. FullMethod: "/pb.service.Device/GateIn",
  673. }
  674. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  675. return srv.(DeviceServer).GateIn(ctx, req.(*v1.GateInRequest))
  676. }
  677. return interceptor(ctx, in, info, handler)
  678. }
  679. func _Device_GateBatchIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  680. in := new(v1.GateBatchInRequest)
  681. if err := dec(in); err != nil {
  682. return nil, err
  683. }
  684. if interceptor == nil {
  685. return srv.(DeviceServer).GateBatchIn(ctx, in)
  686. }
  687. info := &grpc.UnaryServerInfo{
  688. Server: srv,
  689. FullMethod: "/pb.service.Device/GateBatchIn",
  690. }
  691. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  692. return srv.(DeviceServer).GateBatchIn(ctx, req.(*v1.GateBatchInRequest))
  693. }
  694. return interceptor(ctx, in, info, handler)
  695. }
  696. func _Device_GateList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  697. in := new(v1.GateListRequest)
  698. if err := dec(in); err != nil {
  699. return nil, err
  700. }
  701. if interceptor == nil {
  702. return srv.(DeviceServer).GateList(ctx, in)
  703. }
  704. info := &grpc.UnaryServerInfo{
  705. Server: srv,
  706. FullMethod: "/pb.service.Device/GateList",
  707. }
  708. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  709. return srv.(DeviceServer).GateList(ctx, req.(*v1.GateListRequest))
  710. }
  711. return interceptor(ctx, in, info, handler)
  712. }
  713. func _Device_MqttFaceGate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  714. in := new(v1.MqttFaceGateRequest)
  715. if err := dec(in); err != nil {
  716. return nil, err
  717. }
  718. if interceptor == nil {
  719. return srv.(DeviceServer).MqttFaceGate(ctx, in)
  720. }
  721. info := &grpc.UnaryServerInfo{
  722. Server: srv,
  723. FullMethod: "/pb.service.Device/MqttFaceGate",
  724. }
  725. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  726. return srv.(DeviceServer).MqttFaceGate(ctx, req.(*v1.MqttFaceGateRequest))
  727. }
  728. return interceptor(ctx, in, info, handler)
  729. }
  730. func _Device_GateOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  731. in := new(v1.GateOutRequest)
  732. if err := dec(in); err != nil {
  733. return nil, err
  734. }
  735. if interceptor == nil {
  736. return srv.(DeviceServer).GateOut(ctx, in)
  737. }
  738. info := &grpc.UnaryServerInfo{
  739. Server: srv,
  740. FullMethod: "/pb.service.Device/GateOut",
  741. }
  742. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  743. return srv.(DeviceServer).GateOut(ctx, req.(*v1.GateOutRequest))
  744. }
  745. return interceptor(ctx, in, info, handler)
  746. }
  747. func _Device_GateDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  748. in := new(v1.GateDelRequest)
  749. if err := dec(in); err != nil {
  750. return nil, err
  751. }
  752. if interceptor == nil {
  753. return srv.(DeviceServer).GateDel(ctx, in)
  754. }
  755. info := &grpc.UnaryServerInfo{
  756. Server: srv,
  757. FullMethod: "/pb.service.Device/GateDel",
  758. }
  759. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  760. return srv.(DeviceServer).GateDel(ctx, req.(*v1.GateDelRequest))
  761. }
  762. return interceptor(ctx, in, info, handler)
  763. }
  764. func _Device_GateRecovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  765. in := new(v1.GateRecoveryRequest)
  766. if err := dec(in); err != nil {
  767. return nil, err
  768. }
  769. if interceptor == nil {
  770. return srv.(DeviceServer).GateRecovery(ctx, in)
  771. }
  772. info := &grpc.UnaryServerInfo{
  773. Server: srv,
  774. FullMethod: "/pb.service.Device/GateRecovery",
  775. }
  776. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  777. return srv.(DeviceServer).GateRecovery(ctx, req.(*v1.GateRecoveryRequest))
  778. }
  779. return interceptor(ctx, in, info, handler)
  780. }
  781. func _Device_GateEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  782. in := new(v1.GateEnableRequest)
  783. if err := dec(in); err != nil {
  784. return nil, err
  785. }
  786. if interceptor == nil {
  787. return srv.(DeviceServer).GateEnable(ctx, in)
  788. }
  789. info := &grpc.UnaryServerInfo{
  790. Server: srv,
  791. FullMethod: "/pb.service.Device/GateEnable",
  792. }
  793. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  794. return srv.(DeviceServer).GateEnable(ctx, req.(*v1.GateEnableRequest))
  795. }
  796. return interceptor(ctx, in, info, handler)
  797. }
  798. func _Device_GateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  799. in := new(v1.GateSetRequest)
  800. if err := dec(in); err != nil {
  801. return nil, err
  802. }
  803. if interceptor == nil {
  804. return srv.(DeviceServer).GateSet(ctx, in)
  805. }
  806. info := &grpc.UnaryServerInfo{
  807. Server: srv,
  808. FullMethod: "/pb.service.Device/GateSet",
  809. }
  810. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  811. return srv.(DeviceServer).GateSet(ctx, req.(*v1.GateSetRequest))
  812. }
  813. return interceptor(ctx, in, info, handler)
  814. }
  815. func _Device_GateCardAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  816. in := new(v1.GateCardAddRequest)
  817. if err := dec(in); err != nil {
  818. return nil, err
  819. }
  820. if interceptor == nil {
  821. return srv.(DeviceServer).GateCardAdd(ctx, in)
  822. }
  823. info := &grpc.UnaryServerInfo{
  824. Server: srv,
  825. FullMethod: "/pb.service.Device/GateCardAdd",
  826. }
  827. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  828. return srv.(DeviceServer).GateCardAdd(ctx, req.(*v1.GateCardAddRequest))
  829. }
  830. return interceptor(ctx, in, info, handler)
  831. }
  832. func _Device_GateCardDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  833. in := new(v1.GateCardDelRequest)
  834. if err := dec(in); err != nil {
  835. return nil, err
  836. }
  837. if interceptor == nil {
  838. return srv.(DeviceServer).GateCardDel(ctx, in)
  839. }
  840. info := &grpc.UnaryServerInfo{
  841. Server: srv,
  842. FullMethod: "/pb.service.Device/GateCardDel",
  843. }
  844. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  845. return srv.(DeviceServer).GateCardDel(ctx, req.(*v1.GateCardDelRequest))
  846. }
  847. return interceptor(ctx, in, info, handler)
  848. }
  849. func _Device_GateCardList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  850. in := new(v1.GateCardListRequest)
  851. if err := dec(in); err != nil {
  852. return nil, err
  853. }
  854. if interceptor == nil {
  855. return srv.(DeviceServer).GateCardList(ctx, in)
  856. }
  857. info := &grpc.UnaryServerInfo{
  858. Server: srv,
  859. FullMethod: "/pb.service.Device/GateCardList",
  860. }
  861. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  862. return srv.(DeviceServer).GateCardList(ctx, req.(*v1.GateCardListRequest))
  863. }
  864. return interceptor(ctx, in, info, handler)
  865. }
  866. func _Device_GateCardSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  867. in := new(v1.GateCardSyncRequest)
  868. if err := dec(in); err != nil {
  869. return nil, err
  870. }
  871. if interceptor == nil {
  872. return srv.(DeviceServer).GateCardSync(ctx, in)
  873. }
  874. info := &grpc.UnaryServerInfo{
  875. Server: srv,
  876. FullMethod: "/pb.service.Device/GateCardSync",
  877. }
  878. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  879. return srv.(DeviceServer).GateCardSync(ctx, req.(*v1.GateCardSyncRequest))
  880. }
  881. return interceptor(ctx, in, info, handler)
  882. }
  883. func _Device_GateCardCanBindDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  884. in := new(v1.GateCardCanBindDevicesRequest)
  885. if err := dec(in); err != nil {
  886. return nil, err
  887. }
  888. if interceptor == nil {
  889. return srv.(DeviceServer).GateCardCanBindDevices(ctx, in)
  890. }
  891. info := &grpc.UnaryServerInfo{
  892. Server: srv,
  893. FullMethod: "/pb.service.Device/GateCardCanBindDevices",
  894. }
  895. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  896. return srv.(DeviceServer).GateCardCanBindDevices(ctx, req.(*v1.GateCardCanBindDevicesRequest))
  897. }
  898. return interceptor(ctx, in, info, handler)
  899. }
  900. func _Device_GateCommandUse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  901. in := new(v1.GateCommandUseRequest)
  902. if err := dec(in); err != nil {
  903. return nil, err
  904. }
  905. if interceptor == nil {
  906. return srv.(DeviceServer).GateCommandUse(ctx, in)
  907. }
  908. info := &grpc.UnaryServerInfo{
  909. Server: srv,
  910. FullMethod: "/pb.service.Device/GateCommandUse",
  911. }
  912. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  913. return srv.(DeviceServer).GateCommandUse(ctx, req.(*v1.GateCommandUseRequest))
  914. }
  915. return interceptor(ctx, in, info, handler)
  916. }
  917. func _Device_GateCommandResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  918. in := new(v1.GateCommandResultRequest)
  919. if err := dec(in); err != nil {
  920. return nil, err
  921. }
  922. if interceptor == nil {
  923. return srv.(DeviceServer).GateCommandResult(ctx, in)
  924. }
  925. info := &grpc.UnaryServerInfo{
  926. Server: srv,
  927. FullMethod: "/pb.service.Device/GateCommandResult",
  928. }
  929. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  930. return srv.(DeviceServer).GateCommandResult(ctx, req.(*v1.GateCommandResultRequest))
  931. }
  932. return interceptor(ctx, in, info, handler)
  933. }
  934. func _Device_GateCommandAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  935. in := new(v1.GateCommandAddRequest)
  936. if err := dec(in); err != nil {
  937. return nil, err
  938. }
  939. if interceptor == nil {
  940. return srv.(DeviceServer).GateCommandAdd(ctx, in)
  941. }
  942. info := &grpc.UnaryServerInfo{
  943. Server: srv,
  944. FullMethod: "/pb.service.Device/GateCommandAdd",
  945. }
  946. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  947. return srv.(DeviceServer).GateCommandAdd(ctx, req.(*v1.GateCommandAddRequest))
  948. }
  949. return interceptor(ctx, in, info, handler)
  950. }
  951. func _Device_GateCommandList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  952. in := new(v1.GateCommandListRequest)
  953. if err := dec(in); err != nil {
  954. return nil, err
  955. }
  956. if interceptor == nil {
  957. return srv.(DeviceServer).GateCommandList(ctx, in)
  958. }
  959. info := &grpc.UnaryServerInfo{
  960. Server: srv,
  961. FullMethod: "/pb.service.Device/GateCommandList",
  962. }
  963. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  964. return srv.(DeviceServer).GateCommandList(ctx, req.(*v1.GateCommandListRequest))
  965. }
  966. return interceptor(ctx, in, info, handler)
  967. }
  968. func _Device_GateWhiteMatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  969. in := new(v1.GateWhiteMatchRequest)
  970. if err := dec(in); err != nil {
  971. return nil, err
  972. }
  973. if interceptor == nil {
  974. return srv.(DeviceServer).GateWhiteMatch(ctx, in)
  975. }
  976. info := &grpc.UnaryServerInfo{
  977. Server: srv,
  978. FullMethod: "/pb.service.Device/GateWhiteMatch",
  979. }
  980. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  981. return srv.(DeviceServer).GateWhiteMatch(ctx, req.(*v1.GateWhiteMatchRequest))
  982. }
  983. return interceptor(ctx, in, info, handler)
  984. }
  985. func _Device_GateUserPicAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  986. in := new(v1.GateUserPicAddRequest)
  987. if err := dec(in); err != nil {
  988. return nil, err
  989. }
  990. if interceptor == nil {
  991. return srv.(DeviceServer).GateUserPicAdd(ctx, in)
  992. }
  993. info := &grpc.UnaryServerInfo{
  994. Server: srv,
  995. FullMethod: "/pb.service.Device/GateUserPicAdd",
  996. }
  997. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  998. return srv.(DeviceServer).GateUserPicAdd(ctx, req.(*v1.GateUserPicAddRequest))
  999. }
  1000. return interceptor(ctx, in, info, handler)
  1001. }
  1002. func _Device_GateUserPicApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1003. in := new(v1.GateUserPicApproveRequest)
  1004. if err := dec(in); err != nil {
  1005. return nil, err
  1006. }
  1007. if interceptor == nil {
  1008. return srv.(DeviceServer).GateUserPicApprove(ctx, in)
  1009. }
  1010. info := &grpc.UnaryServerInfo{
  1011. Server: srv,
  1012. FullMethod: "/pb.service.Device/GateUserPicApprove",
  1013. }
  1014. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1015. return srv.(DeviceServer).GateUserPicApprove(ctx, req.(*v1.GateUserPicApproveRequest))
  1016. }
  1017. return interceptor(ctx, in, info, handler)
  1018. }
  1019. func _Device_GateUserPicList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1020. in := new(v1.GateUserPicListRequest)
  1021. if err := dec(in); err != nil {
  1022. return nil, err
  1023. }
  1024. if interceptor == nil {
  1025. return srv.(DeviceServer).GateUserPicList(ctx, in)
  1026. }
  1027. info := &grpc.UnaryServerInfo{
  1028. Server: srv,
  1029. FullMethod: "/pb.service.Device/GateUserPicList",
  1030. }
  1031. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1032. return srv.(DeviceServer).GateUserPicList(ctx, req.(*v1.GateUserPicListRequest))
  1033. }
  1034. return interceptor(ctx, in, info, handler)
  1035. }
  1036. func _Device_GateUserPicSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1037. in := new(v1.GateUserPicSyncRequest)
  1038. if err := dec(in); err != nil {
  1039. return nil, err
  1040. }
  1041. if interceptor == nil {
  1042. return srv.(DeviceServer).GateUserPicSync(ctx, in)
  1043. }
  1044. info := &grpc.UnaryServerInfo{
  1045. Server: srv,
  1046. FullMethod: "/pb.service.Device/GateUserPicSync",
  1047. }
  1048. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1049. return srv.(DeviceServer).GateUserPicSync(ctx, req.(*v1.GateUserPicSyncRequest))
  1050. }
  1051. return interceptor(ctx, in, info, handler)
  1052. }
  1053. func _Device_GateUserPicDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1054. in := new(v1.GateUserPicDelRequest)
  1055. if err := dec(in); err != nil {
  1056. return nil, err
  1057. }
  1058. if interceptor == nil {
  1059. return srv.(DeviceServer).GateUserPicDel(ctx, in)
  1060. }
  1061. info := &grpc.UnaryServerInfo{
  1062. Server: srv,
  1063. FullMethod: "/pb.service.Device/GateUserPicDel",
  1064. }
  1065. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1066. return srv.(DeviceServer).GateUserPicDel(ctx, req.(*v1.GateUserPicDelRequest))
  1067. }
  1068. return interceptor(ctx, in, info, handler)
  1069. }
  1070. func _Device_GateUserPicInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1071. in := new(v1.GateUserPicInfoRequest)
  1072. if err := dec(in); err != nil {
  1073. return nil, err
  1074. }
  1075. if interceptor == nil {
  1076. return srv.(DeviceServer).GateUserPicInfo(ctx, in)
  1077. }
  1078. info := &grpc.UnaryServerInfo{
  1079. Server: srv,
  1080. FullMethod: "/pb.service.Device/GateUserPicInfo",
  1081. }
  1082. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1083. return srv.(DeviceServer).GateUserPicInfo(ctx, req.(*v1.GateUserPicInfoRequest))
  1084. }
  1085. return interceptor(ctx, in, info, handler)
  1086. }
  1087. func _Device_GateRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1088. in := new(v1.GateRecordListRequest)
  1089. if err := dec(in); err != nil {
  1090. return nil, err
  1091. }
  1092. if interceptor == nil {
  1093. return srv.(DeviceServer).GateRecordList(ctx, in)
  1094. }
  1095. info := &grpc.UnaryServerInfo{
  1096. Server: srv,
  1097. FullMethod: "/pb.service.Device/GateRecordList",
  1098. }
  1099. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1100. return srv.(DeviceServer).GateRecordList(ctx, req.(*v1.GateRecordListRequest))
  1101. }
  1102. return interceptor(ctx, in, info, handler)
  1103. }
  1104. func _Device_GateRecordAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1105. in := new(v1.GateRecordAddRequest)
  1106. if err := dec(in); err != nil {
  1107. return nil, err
  1108. }
  1109. if interceptor == nil {
  1110. return srv.(DeviceServer).GateRecordAdd(ctx, in)
  1111. }
  1112. info := &grpc.UnaryServerInfo{
  1113. Server: srv,
  1114. FullMethod: "/pb.service.Device/GateRecordAdd",
  1115. }
  1116. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1117. return srv.(DeviceServer).GateRecordAdd(ctx, req.(*v1.GateRecordAddRequest))
  1118. }
  1119. return interceptor(ctx, in, info, handler)
  1120. }
  1121. func _Device_GateVisitorAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1122. in := new(v1.GateVisitorAddRequest)
  1123. if err := dec(in); err != nil {
  1124. return nil, err
  1125. }
  1126. if interceptor == nil {
  1127. return srv.(DeviceServer).GateVisitorAdd(ctx, in)
  1128. }
  1129. info := &grpc.UnaryServerInfo{
  1130. Server: srv,
  1131. FullMethod: "/pb.service.Device/GateVisitorAdd",
  1132. }
  1133. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1134. return srv.(DeviceServer).GateVisitorAdd(ctx, req.(*v1.GateVisitorAddRequest))
  1135. }
  1136. return interceptor(ctx, in, info, handler)
  1137. }
  1138. func _Device_GateVisitorDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1139. in := new(v1.GateVisitorDelRequest)
  1140. if err := dec(in); err != nil {
  1141. return nil, err
  1142. }
  1143. if interceptor == nil {
  1144. return srv.(DeviceServer).GateVisitorDel(ctx, in)
  1145. }
  1146. info := &grpc.UnaryServerInfo{
  1147. Server: srv,
  1148. FullMethod: "/pb.service.Device/GateVisitorDel",
  1149. }
  1150. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1151. return srv.(DeviceServer).GateVisitorDel(ctx, req.(*v1.GateVisitorDelRequest))
  1152. }
  1153. return interceptor(ctx, in, info, handler)
  1154. }
  1155. func _Device_GateVisitorCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1156. in := new(v1.GateVisitorCheckRequest)
  1157. if err := dec(in); err != nil {
  1158. return nil, err
  1159. }
  1160. if interceptor == nil {
  1161. return srv.(DeviceServer).GateVisitorCheck(ctx, in)
  1162. }
  1163. info := &grpc.UnaryServerInfo{
  1164. Server: srv,
  1165. FullMethod: "/pb.service.Device/GateVisitorCheck",
  1166. }
  1167. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1168. return srv.(DeviceServer).GateVisitorCheck(ctx, req.(*v1.GateVisitorCheckRequest))
  1169. }
  1170. return interceptor(ctx, in, info, handler)
  1171. }
  1172. func _Device_GateVisitorList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1173. in := new(v1.GateVisitorListRequest)
  1174. if err := dec(in); err != nil {
  1175. return nil, err
  1176. }
  1177. if interceptor == nil {
  1178. return srv.(DeviceServer).GateVisitorList(ctx, in)
  1179. }
  1180. info := &grpc.UnaryServerInfo{
  1181. Server: srv,
  1182. FullMethod: "/pb.service.Device/GateVisitorList",
  1183. }
  1184. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1185. return srv.(DeviceServer).GateVisitorList(ctx, req.(*v1.GateVisitorListRequest))
  1186. }
  1187. return interceptor(ctx, in, info, handler)
  1188. }
  1189. func _Device_GateUnitDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1190. in := new(v1.GateUnitDeviceRequest)
  1191. if err := dec(in); err != nil {
  1192. return nil, err
  1193. }
  1194. if interceptor == nil {
  1195. return srv.(DeviceServer).GateUnitDevice(ctx, in)
  1196. }
  1197. info := &grpc.UnaryServerInfo{
  1198. Server: srv,
  1199. FullMethod: "/pb.service.Device/GateUnitDevice",
  1200. }
  1201. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1202. return srv.(DeviceServer).GateUnitDevice(ctx, req.(*v1.GateUnitDeviceRequest))
  1203. }
  1204. return interceptor(ctx, in, info, handler)
  1205. }
  1206. func _Device_GateUnitAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1207. in := new(v1.GateUnitAddRequest)
  1208. if err := dec(in); err != nil {
  1209. return nil, err
  1210. }
  1211. if interceptor == nil {
  1212. return srv.(DeviceServer).GateUnitAdd(ctx, in)
  1213. }
  1214. info := &grpc.UnaryServerInfo{
  1215. Server: srv,
  1216. FullMethod: "/pb.service.Device/GateUnitAdd",
  1217. }
  1218. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1219. return srv.(DeviceServer).GateUnitAdd(ctx, req.(*v1.GateUnitAddRequest))
  1220. }
  1221. return interceptor(ctx, in, info, handler)
  1222. }
  1223. func _Device_GateUnitList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1224. in := new(v1.GateUnitListRequest)
  1225. if err := dec(in); err != nil {
  1226. return nil, err
  1227. }
  1228. if interceptor == nil {
  1229. return srv.(DeviceServer).GateUnitList(ctx, in)
  1230. }
  1231. info := &grpc.UnaryServerInfo{
  1232. Server: srv,
  1233. FullMethod: "/pb.service.Device/GateUnitList",
  1234. }
  1235. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1236. return srv.(DeviceServer).GateUnitList(ctx, req.(*v1.GateUnitListRequest))
  1237. }
  1238. return interceptor(ctx, in, info, handler)
  1239. }
  1240. func _Device_GateProtocols_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1241. in := new(v1.GateProtocolsRequest)
  1242. if err := dec(in); err != nil {
  1243. return nil, err
  1244. }
  1245. if interceptor == nil {
  1246. return srv.(DeviceServer).GateProtocols(ctx, in)
  1247. }
  1248. info := &grpc.UnaryServerInfo{
  1249. Server: srv,
  1250. FullMethod: "/pb.service.Device/GateProtocols",
  1251. }
  1252. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1253. return srv.(DeviceServer).GateProtocols(ctx, req.(*v1.GateProtocolsRequest))
  1254. }
  1255. return interceptor(ctx, in, info, handler)
  1256. }
  1257. func _Device_HouseholdGateSyncCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1258. in := new(v1.HouseholdGateSyncCheckRequest)
  1259. if err := dec(in); err != nil {
  1260. return nil, err
  1261. }
  1262. if interceptor == nil {
  1263. return srv.(DeviceServer).HouseholdGateSyncCheck(ctx, in)
  1264. }
  1265. info := &grpc.UnaryServerInfo{
  1266. Server: srv,
  1267. FullMethod: "/pb.service.Device/HouseholdGateSyncCheck",
  1268. }
  1269. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1270. return srv.(DeviceServer).HouseholdGateSyncCheck(ctx, req.(*v1.HouseholdGateSyncCheckRequest))
  1271. }
  1272. return interceptor(ctx, in, info, handler)
  1273. }
  1274. var _Device_serviceDesc = grpc.ServiceDesc{
  1275. ServiceName: "pb.service.Device",
  1276. HandlerType: (*DeviceServer)(nil),
  1277. Methods: []grpc.MethodDesc{
  1278. {
  1279. MethodName: "GateOnline",
  1280. Handler: _Device_GateOnline_Handler,
  1281. },
  1282. {
  1283. MethodName: "GateIn",
  1284. Handler: _Device_GateIn_Handler,
  1285. },
  1286. {
  1287. MethodName: "GateBatchIn",
  1288. Handler: _Device_GateBatchIn_Handler,
  1289. },
  1290. {
  1291. MethodName: "GateList",
  1292. Handler: _Device_GateList_Handler,
  1293. },
  1294. {
  1295. MethodName: "MqttFaceGate",
  1296. Handler: _Device_MqttFaceGate_Handler,
  1297. },
  1298. {
  1299. MethodName: "GateOut",
  1300. Handler: _Device_GateOut_Handler,
  1301. },
  1302. {
  1303. MethodName: "GateDel",
  1304. Handler: _Device_GateDel_Handler,
  1305. },
  1306. {
  1307. MethodName: "GateRecovery",
  1308. Handler: _Device_GateRecovery_Handler,
  1309. },
  1310. {
  1311. MethodName: "GateEnable",
  1312. Handler: _Device_GateEnable_Handler,
  1313. },
  1314. {
  1315. MethodName: "GateSet",
  1316. Handler: _Device_GateSet_Handler,
  1317. },
  1318. {
  1319. MethodName: "GateCardAdd",
  1320. Handler: _Device_GateCardAdd_Handler,
  1321. },
  1322. {
  1323. MethodName: "GateCardDel",
  1324. Handler: _Device_GateCardDel_Handler,
  1325. },
  1326. {
  1327. MethodName: "GateCardList",
  1328. Handler: _Device_GateCardList_Handler,
  1329. },
  1330. {
  1331. MethodName: "GateCardSync",
  1332. Handler: _Device_GateCardSync_Handler,
  1333. },
  1334. {
  1335. MethodName: "GateCardCanBindDevices",
  1336. Handler: _Device_GateCardCanBindDevices_Handler,
  1337. },
  1338. {
  1339. MethodName: "GateCommandUse",
  1340. Handler: _Device_GateCommandUse_Handler,
  1341. },
  1342. {
  1343. MethodName: "GateCommandResult",
  1344. Handler: _Device_GateCommandResult_Handler,
  1345. },
  1346. {
  1347. MethodName: "GateCommandAdd",
  1348. Handler: _Device_GateCommandAdd_Handler,
  1349. },
  1350. {
  1351. MethodName: "GateCommandList",
  1352. Handler: _Device_GateCommandList_Handler,
  1353. },
  1354. {
  1355. MethodName: "GateWhiteMatch",
  1356. Handler: _Device_GateWhiteMatch_Handler,
  1357. },
  1358. {
  1359. MethodName: "GateUserPicAdd",
  1360. Handler: _Device_GateUserPicAdd_Handler,
  1361. },
  1362. {
  1363. MethodName: "GateUserPicApprove",
  1364. Handler: _Device_GateUserPicApprove_Handler,
  1365. },
  1366. {
  1367. MethodName: "GateUserPicList",
  1368. Handler: _Device_GateUserPicList_Handler,
  1369. },
  1370. {
  1371. MethodName: "GateUserPicSync",
  1372. Handler: _Device_GateUserPicSync_Handler,
  1373. },
  1374. {
  1375. MethodName: "GateUserPicDel",
  1376. Handler: _Device_GateUserPicDel_Handler,
  1377. },
  1378. {
  1379. MethodName: "GateUserPicInfo",
  1380. Handler: _Device_GateUserPicInfo_Handler,
  1381. },
  1382. {
  1383. MethodName: "GateRecordList",
  1384. Handler: _Device_GateRecordList_Handler,
  1385. },
  1386. {
  1387. MethodName: "GateRecordAdd",
  1388. Handler: _Device_GateRecordAdd_Handler,
  1389. },
  1390. {
  1391. MethodName: "GateVisitorAdd",
  1392. Handler: _Device_GateVisitorAdd_Handler,
  1393. },
  1394. {
  1395. MethodName: "GateVisitorDel",
  1396. Handler: _Device_GateVisitorDel_Handler,
  1397. },
  1398. {
  1399. MethodName: "GateVisitorCheck",
  1400. Handler: _Device_GateVisitorCheck_Handler,
  1401. },
  1402. {
  1403. MethodName: "GateVisitorList",
  1404. Handler: _Device_GateVisitorList_Handler,
  1405. },
  1406. {
  1407. MethodName: "GateUnitDevice",
  1408. Handler: _Device_GateUnitDevice_Handler,
  1409. },
  1410. {
  1411. MethodName: "GateUnitAdd",
  1412. Handler: _Device_GateUnitAdd_Handler,
  1413. },
  1414. {
  1415. MethodName: "GateUnitList",
  1416. Handler: _Device_GateUnitList_Handler,
  1417. },
  1418. {
  1419. MethodName: "GateProtocols",
  1420. Handler: _Device_GateProtocols_Handler,
  1421. },
  1422. {
  1423. MethodName: "HouseholdGateSyncCheck",
  1424. Handler: _Device_HouseholdGateSyncCheck_Handler,
  1425. },
  1426. },
  1427. Streams: []grpc.StreamDesc{},
  1428. Metadata: "device_service.proto",
  1429. }