device_service.pb.go 62 KB

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