1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: device_service.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- v1 "property-device/pb/v1"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- func init() {
- proto.RegisterFile("device_service.proto", fileDescriptor_5b575c291bff7431)
- }
- var fileDescriptor_5b575c291bff7431 = []byte{
- // 717 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x96, 0x5b, 0x6f, 0xd3, 0x4c,
- 0x10, 0x86, 0xbf, 0xab, 0x7e, 0x68, 0x39, 0x14, 0x96, 0xf4, 0xe4, 0x1e, 0x40, 0x15, 0xb7, 0xa4,
- 0x2a, 0x20, 0x21, 0x71, 0x05, 0x49, 0x28, 0x44, 0x6a, 0xd5, 0x2a, 0x51, 0x00, 0x71, 0x53, 0x39,
- 0xf6, 0xa2, 0x58, 0xb8, 0x6b, 0xd7, 0xde, 0x44, 0xca, 0xaf, 0xe5, 0xaf, 0xa0, 0xdd, 0xf5, 0xda,
- 0x33, 0xeb, 0x71, 0xb8, 0x8a, 0xf4, 0x3e, 0x33, 0x6f, 0xc6, 0x3b, 0xb3, 0x07, 0xd6, 0x8b, 0xc5,
- 0x2a, 0x89, 0xc4, 0x6d, 0x29, 0x0a, 0xfd, 0xdb, 0xcf, 0x8b, 0x4c, 0x65, 0x9c, 0xe5, 0xf3, 0x7e,
- 0xa5, 0x04, 0xdb, 0xab, 0xf3, 0x33, 0x1b, 0x64, 0xe1, 0x9b, 0x3f, 0x3b, 0x6c, 0x6b, 0x64, 0x04,
- 0xfe, 0x91, 0xb1, 0x2f, 0xa1, 0x12, 0xd7, 0x32, 0x4d, 0xa4, 0xe0, 0xfb, 0xfd, 0x7c, 0x7e, 0xbb,
- 0x3a, 0xef, 0x37, 0xd2, 0x44, 0xdc, 0x2f, 0x45, 0xa9, 0x82, 0x5d, 0x82, 0xe4, 0xe9, 0xfa, 0xf4,
- 0x3f, 0xfe, 0x8e, 0x6d, 0x69, 0x71, 0x2c, 0x79, 0x0f, 0xc4, 0x8c, 0xa5, 0xcb, 0xe4, 0x9e, 0x6a,
- 0xb3, 0x86, 0xec, 0xa1, 0x16, 0x06, 0xa1, 0x8a, 0x16, 0x63, 0xc9, 0x0f, 0x40, 0x50, 0xa5, 0xb9,
- 0xfc, 0x3d, 0x0a, 0x59, 0x93, 0x0f, 0xec, 0x81, 0x56, 0x2f, 0x93, 0x52, 0x71, 0x58, 0xa0, 0x16,
- 0x5c, 0x7a, 0xaf, 0xa5, 0xdb, 0xdc, 0x0b, 0xf6, 0xe8, 0xea, 0x5e, 0xa9, 0x8b, 0x30, 0x12, 0x1a,
- 0xf1, 0xa0, 0x8a, 0x83, 0xa2, 0xf3, 0xd8, 0x27, 0x99, 0xf5, 0x79, 0xcf, 0xfe, 0x37, 0x6b, 0xb2,
- 0x54, 0x7c, 0x07, 0xae, 0xd1, 0xb2, 0xae, 0xe0, 0xb9, 0x2f, 0xa3, 0xc4, 0x91, 0x48, 0x51, 0xe2,
- 0x48, 0xa4, 0x54, 0xa2, 0x91, 0xeb, 0xca, 0x6d, 0x01, 0x51, 0xb6, 0x12, 0xc5, 0xba, 0xae, 0x1c,
- 0x8a, 0x7e, 0xe5, 0x98, 0x59, 0x9f, 0xaa, 0xf5, 0x9f, 0x65, 0x38, 0x4f, 0x71, 0xeb, 0xad, 0x44,
- 0xb5, 0xde, 0x11, 0xf4, 0x09, 0x53, 0x81, 0xbf, 0x7d, 0x2a, 0xc8, 0x6f, 0x37, 0x32, 0xea, 0xfe,
- 0x30, 0x2c, 0xe2, 0x4f, 0x71, 0x8c, 0xba, 0x5f, 0x69, 0x54, 0xf7, 0x6b, 0xd4, 0x32, 0xd1, 0x8b,
- 0xe8, 0x9b, 0x80, 0x85, 0xdc, 0xa3, 0x10, 0x5a, 0x4c, 0xad, 0x9a, 0x31, 0x0a, 0xbc, 0x50, 0x38,
- 0x4a, 0xfb, 0x24, 0x6b, 0xf9, 0x4c, 0xd7, 0x32, 0x6a, 0xf9, 0x68, 0xb1, 0xcb, 0xc7, 0x32, 0xeb,
- 0x13, 0xb3, 0x5d, 0x27, 0x0f, 0x43, 0x39, 0x48, 0x64, 0x6c, 0x37, 0x6a, 0xc9, 0x5f, 0x79, 0x59,
- 0x18, 0x3b, 0xef, 0xd3, 0x7f, 0x44, 0xd9, 0x7f, 0xb9, 0x64, 0x4f, 0x4c, 0x40, 0x76, 0x77, 0x17,
- 0xca, 0x78, 0x56, 0x0a, 0x7e, 0x04, 0xf3, 0x6a, 0xd9, 0xb9, 0x06, 0x1d, 0xd4, 0xba, 0xcd, 0xd8,
- 0x33, 0x00, 0x26, 0xa2, 0x5c, 0xa6, 0x8a, 0xbf, 0x68, 0xa7, 0x58, 0xe2, 0x3c, 0x8f, 0xbb, 0x03,
- 0xa8, 0x22, 0xf5, 0x9c, 0x10, 0x45, 0x82, 0x51, 0x09, 0x3a, 0xa8, 0x75, 0xbb, 0x66, 0xdb, 0x00,
- 0x98, 0x5e, 0x13, 0x15, 0xc0, 0x76, 0x1f, 0x76, 0x61, 0x54, 0xde, 0xf7, 0x45, 0xa2, 0xc4, 0x95,
- 0x3e, 0x97, 0x50, 0x79, 0x8d, 0x4c, 0x95, 0x07, 0x29, 0x72, 0x9b, 0x95, 0xa2, 0xb8, 0x49, 0x22,
- 0xff, 0x63, 0x1b, 0x99, 0x72, 0x83, 0x94, 0x72, 0xd3, 0xbb, 0x83, 0x70, 0x03, 0x1b, 0x24, 0xe8,
- 0xa0, 0xd6, 0xed, 0x07, 0xe3, 0xf0, 0x6f, 0xf2, 0xbc, 0xc8, 0x56, 0x82, 0xbf, 0x24, 0x2a, 0xb0,
- 0xc8, 0xb9, 0x9e, 0x6c, 0x88, 0x40, 0x4d, 0xa9, 0xa0, 0xd9, 0x38, 0xc7, 0xed, 0x24, 0xb8, 0x77,
- 0x0e, 0xbb, 0x30, 0x65, 0xd8, 0xea, 0x32, 0xd0, 0x37, 0x18, 0xc2, 0x2e, 0x63, 0xc3, 0xb1, 0xfc,
- 0x95, 0x51, 0x86, 0x5a, 0xdf, 0x60, 0x68, 0x31, 0x6a, 0x8d, 0x3e, 0x8c, 0xab, 0x23, 0xe7, 0xc8,
- 0x3b, 0xa3, 0xf1, 0xa1, 0x13, 0x74, 0x50, 0xeb, 0x36, 0x66, 0x8f, 0x1b, 0xa0, 0xa7, 0xe6, 0xb0,
- 0x15, 0x0e, 0x86, 0xe6, 0x80, 0x86, 0xa8, 0xb0, 0x6f, 0x49, 0x99, 0xa8, 0xac, 0xf0, 0x27, 0xb0,
- 0x91, 0xa9, 0xc2, 0x20, 0xa5, 0xdc, 0xfc, 0x09, 0x6c, 0xe4, 0x0d, 0x6e, 0x60, 0x02, 0x27, 0xec,
- 0x29, 0x00, 0xc3, 0x85, 0x88, 0x7e, 0xf3, 0x93, 0x76, 0x86, 0x01, 0xce, 0xf1, 0xa8, 0x93, 0xa3,
- 0xce, 0x56, 0xa8, 0x35, 0x2a, 0x40, 0xa7, 0x3a, 0x8b, 0x30, 0xde, 0x74, 0x32, 0x51, 0xd5, 0xe3,
- 0x0a, 0x6d, 0xba, 0x5a, 0x26, 0x37, 0x1d, 0xa0, 0xe8, 0x76, 0xd3, 0xc0, 0xbf, 0x22, 0x2b, 0x8d,
- 0xba, 0xdd, 0x6a, 0x84, 0x6e, 0x25, 0xad, 0xb6, 0x6e, 0x37, 0x27, 0x52, 0xb7, 0x52, 0xc3, 0xd0,
- 0x98, 0xdd, 0xe8, 0xd7, 0x63, 0x94, 0xa5, 0x25, 0x1a, 0xb3, 0x5a, 0xa5, 0xc6, 0x0c, 0xc0, 0xfa,
- 0x82, 0xfb, 0x9a, 0x2d, 0x4b, 0xb1, 0xc8, 0xd2, 0xd8, 0xbc, 0x0a, 0xd6, 0x32, 0xb2, 0x0d, 0x75,
- 0x17, 0x1c, 0x8d, 0xfd, 0x0b, 0xae, 0x2b, 0xca, 0xfc, 0xcb, 0xa0, 0xf7, 0x93, 0xe7, 0x45, 0x96,
- 0x8b, 0x42, 0xad, 0x5f, 0xdb, 0xa7, 0xef, 0x59, 0x3e, 0x9f, 0x6f, 0x99, 0xe7, 0xef, 0xdb, 0xbf,
- 0x01, 0x00, 0x00, 0xff, 0xff, 0x27, 0x5c, 0x95, 0xca, 0x33, 0x0b, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // DeviceClient is the client API for Device service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type DeviceClient interface {
- // 门禁在线
- GateOnline(ctx context.Context, in *v1.GateOnlineRequest, opts ...grpc.CallOption) (*v1.GateOnlineReply, error)
- // 门禁入库
- GateIn(ctx context.Context, in *v1.GateInRequest, opts ...grpc.CallOption) (*v1.GateInReply, error)
- // 门禁批量入库
- GateBatchIn(ctx context.Context, in *v1.GateBatchInRequest, opts ...grpc.CallOption) (*v1.GateBatchInReply, error)
- // 门禁列表
- GateList(ctx context.Context, in *v1.GateListRequest, opts ...grpc.CallOption) (*v1.GateListReply, error)
- // 人脸门禁所有id
- MqttFaceGate(ctx context.Context, in *v1.MqttFaceGateRequest, opts ...grpc.CallOption) (*v1.MqttFaceGateReply, error)
- // 门禁出库
- GateOut(ctx context.Context, in *v1.GateOutRequest, opts ...grpc.CallOption) (*v1.GateOutReply, error)
- // 删除门禁
- GateDel(ctx context.Context, in *v1.GateDelRequest, opts ...grpc.CallOption) (*v1.GateDelReply, error)
- // 门禁回收
- GateRecovery(ctx context.Context, in *v1.GateRecoveryRequest, opts ...grpc.CallOption) (*v1.GateRecoveryReply, error)
- // 门禁起停用
- GateEnable(ctx context.Context, in *v1.GateEnableRequest, opts ...grpc.CallOption) (*v1.GateEnableReply, error)
- // 设置门禁位置和进场出场
- GateSet(ctx context.Context, in *v1.GateSetRequest, opts ...grpc.CallOption) (*v1.GateSetReply, error)
- // 添加门禁卡号
- GateCardAdd(ctx context.Context, in *v1.GateCardAddRequest, opts ...grpc.CallOption) (*v1.GateCardAddReply, error)
- GateCardDel(ctx context.Context, in *v1.GateCardDelRequest, opts ...grpc.CallOption) (*v1.GateCardDelReply, error)
- // 门禁卡列表
- GateCardList(ctx context.Context, in *v1.GateCardListRequest, opts ...grpc.CallOption) (*v1.GateCardListReply, error)
- // 门禁卡下发
- GateCardSync(ctx context.Context, in *v1.GateCardSyncRequest, opts ...grpc.CallOption) (*v1.GateCardSyncReply, error)
- // 获取卡还可以绑定的设备
- GateCardCanBindDevices(ctx context.Context, in *v1.GateCardCanBindDevicesRequest, opts ...grpc.CallOption) (*v1.GateCardCanBindDevicesReply, error)
- // 获取门禁远程命令
- GateCommandUse(ctx context.Context, in *v1.GateCommandUseRequest, opts ...grpc.CallOption) (*v1.GateCommandUseReply, error)
- // 门禁远程命令结果
- GateCommandResult(ctx context.Context, in *v1.GateCommandResultRequest, opts ...grpc.CallOption) (*v1.GateCommandResultReply, error)
- // 门禁命令添加
- GateCommandAdd(ctx context.Context, in *v1.GateCommandAddRequest, opts ...grpc.CallOption) (*v1.GateCommandAddReply, error)
- // 门禁命令记录
- GateCommandList(ctx context.Context, in *v1.GateCommandListRequest, opts ...grpc.CallOption) (*v1.GateCommandListReply, error)
- // 门禁白名单匹配
- GateWhiteMatch(ctx context.Context, in *v1.GateWhiteMatchRequest, opts ...grpc.CallOption) (*v1.GateWhiteMatchReply, error)
- // 门禁人脸申请
- GateUserPicAdd(ctx context.Context, in *v1.GateUserPicAddRequest, opts ...grpc.CallOption) (*v1.GateUserPicAddReply, error)
- GateUserPicDel(ctx context.Context, in *v1.GateUserPicDelRequest, opts ...grpc.CallOption) (*v1.GateUserPicDelReply, error)
- // 门禁人脸审核
- GateUserPicApprove(ctx context.Context, in *v1.GateUserPicApproveRequest, opts ...grpc.CallOption) (*v1.GateUserPicApproveReply, error)
- // 门禁人脸下发
- GateUserPicSync(ctx context.Context, in *v1.GateUserPicSyncRequest, opts ...grpc.CallOption) (*v1.GateUserPicSyncReply, error)
- // 获取人脸录入列表
- GateUserPicList(ctx context.Context, in *v1.GateUserPicListRequest, opts ...grpc.CallOption) (*v1.GateUserPicListReply, error)
- // 获取人脸录入信息
- GateUserPicInfo(ctx context.Context, in *v1.GateUserPicInfoRequest, opts ...grpc.CallOption) (*v1.GateUserPicInfoReply, error)
- // 门禁进出记录列表
- GateRecordList(ctx context.Context, in *v1.GateRecordListRequest, opts ...grpc.CallOption) (*v1.GateRecordListReply, error)
- // 门禁进出记录添加
- GateRecordAdd(ctx context.Context, in *v1.GateRecordAddRequest, opts ...grpc.CallOption) (*v1.GateRecordAddReply, error)
- GateVisitorAdd(ctx context.Context, in *v1.GateVisitorAddRequest, opts ...grpc.CallOption) (*v1.GateVisitorAddReply, error)
- GateVisitorDel(ctx context.Context, in *v1.GateVisitorDelRequest, opts ...grpc.CallOption) (*v1.GateVisitorDelReply, error)
- GateVisitorCheck(ctx context.Context, in *v1.GateVisitorCheckRequest, opts ...grpc.CallOption) (*v1.GateVisitorCheckReply, error)
- GateVisitorList(ctx context.Context, in *v1.GateVisitorListRequest, opts ...grpc.CallOption) (*v1.GateVisitorListReply, error)
- // 获取绑定了某单元的门禁列表
- GateUnitDevice(ctx context.Context, in *v1.GateUnitDeviceRequest, opts ...grpc.CallOption) (*v1.GateUnitDeviceReply, error)
- // 门禁设备绑定范围
- GateUnitAdd(ctx context.Context, in *v1.GateUnitAddRequest, opts ...grpc.CallOption) (*v1.GateUnitAddReply, error)
- // 门禁设备单元列表
- GateUnitList(ctx context.Context, in *v1.GateUnitListRequest, opts ...grpc.CallOption) (*v1.GateUnitListReply, error)
- // 门禁协议
- GateProtocols(ctx context.Context, in *v1.GateProtocolsRequest, opts ...grpc.CallOption) (*v1.GateProtocolsReply, error)
- // 住户申请房屋后,检查是否有设备需要同步人脸
- HouseholdGateSyncCheck(ctx context.Context, in *v1.HouseholdGateSyncCheckRequest, opts ...grpc.CallOption) (*v1.HouseholdGateSyncCheckReply, error)
- }
- type deviceClient struct {
- cc grpc.ClientConnInterface
- }
- func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient {
- return &deviceClient{cc}
- }
- func (c *deviceClient) GateOnline(ctx context.Context, in *v1.GateOnlineRequest, opts ...grpc.CallOption) (*v1.GateOnlineReply, error) {
- out := new(v1.GateOnlineReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateOnline", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateIn(ctx context.Context, in *v1.GateInRequest, opts ...grpc.CallOption) (*v1.GateInReply, error) {
- out := new(v1.GateInReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateIn", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateBatchIn(ctx context.Context, in *v1.GateBatchInRequest, opts ...grpc.CallOption) (*v1.GateBatchInReply, error) {
- out := new(v1.GateBatchInReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateBatchIn", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateList(ctx context.Context, in *v1.GateListRequest, opts ...grpc.CallOption) (*v1.GateListReply, error) {
- out := new(v1.GateListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) MqttFaceGate(ctx context.Context, in *v1.MqttFaceGateRequest, opts ...grpc.CallOption) (*v1.MqttFaceGateReply, error) {
- out := new(v1.MqttFaceGateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/MqttFaceGate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateOut(ctx context.Context, in *v1.GateOutRequest, opts ...grpc.CallOption) (*v1.GateOutReply, error) {
- out := new(v1.GateOutReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateOut", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateDel(ctx context.Context, in *v1.GateDelRequest, opts ...grpc.CallOption) (*v1.GateDelReply, error) {
- out := new(v1.GateDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateRecovery(ctx context.Context, in *v1.GateRecoveryRequest, opts ...grpc.CallOption) (*v1.GateRecoveryReply, error) {
- out := new(v1.GateRecoveryReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecovery", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateEnable(ctx context.Context, in *v1.GateEnableRequest, opts ...grpc.CallOption) (*v1.GateEnableReply, error) {
- out := new(v1.GateEnableReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateEnable", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateSet(ctx context.Context, in *v1.GateSetRequest, opts ...grpc.CallOption) (*v1.GateSetReply, error) {
- out := new(v1.GateSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCardAdd(ctx context.Context, in *v1.GateCardAddRequest, opts ...grpc.CallOption) (*v1.GateCardAddReply, error) {
- out := new(v1.GateCardAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCardDel(ctx context.Context, in *v1.GateCardDelRequest, opts ...grpc.CallOption) (*v1.GateCardDelReply, error) {
- out := new(v1.GateCardDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCardList(ctx context.Context, in *v1.GateCardListRequest, opts ...grpc.CallOption) (*v1.GateCardListReply, error) {
- out := new(v1.GateCardListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCardSync(ctx context.Context, in *v1.GateCardSyncRequest, opts ...grpc.CallOption) (*v1.GateCardSyncReply, error) {
- out := new(v1.GateCardSyncReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardSync", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCardCanBindDevices(ctx context.Context, in *v1.GateCardCanBindDevicesRequest, opts ...grpc.CallOption) (*v1.GateCardCanBindDevicesReply, error) {
- out := new(v1.GateCardCanBindDevicesReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCardCanBindDevices", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCommandUse(ctx context.Context, in *v1.GateCommandUseRequest, opts ...grpc.CallOption) (*v1.GateCommandUseReply, error) {
- out := new(v1.GateCommandUseReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandUse", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCommandResult(ctx context.Context, in *v1.GateCommandResultRequest, opts ...grpc.CallOption) (*v1.GateCommandResultReply, error) {
- out := new(v1.GateCommandResultReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandResult", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCommandAdd(ctx context.Context, in *v1.GateCommandAddRequest, opts ...grpc.CallOption) (*v1.GateCommandAddReply, error) {
- out := new(v1.GateCommandAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCommandList(ctx context.Context, in *v1.GateCommandListRequest, opts ...grpc.CallOption) (*v1.GateCommandListReply, error) {
- out := new(v1.GateCommandListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateWhiteMatch(ctx context.Context, in *v1.GateWhiteMatchRequest, opts ...grpc.CallOption) (*v1.GateWhiteMatchReply, error) {
- out := new(v1.GateWhiteMatchReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateWhiteMatch", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUserPicAdd(ctx context.Context, in *v1.GateUserPicAddRequest, opts ...grpc.CallOption) (*v1.GateUserPicAddReply, error) {
- out := new(v1.GateUserPicAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUserPicDel(ctx context.Context, in *v1.GateUserPicDelRequest, opts ...grpc.CallOption) (*v1.GateUserPicDelReply, error) {
- out := new(v1.GateUserPicDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUserPicApprove(ctx context.Context, in *v1.GateUserPicApproveRequest, opts ...grpc.CallOption) (*v1.GateUserPicApproveReply, error) {
- out := new(v1.GateUserPicApproveReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicApprove", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUserPicSync(ctx context.Context, in *v1.GateUserPicSyncRequest, opts ...grpc.CallOption) (*v1.GateUserPicSyncReply, error) {
- out := new(v1.GateUserPicSyncReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicSync", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUserPicList(ctx context.Context, in *v1.GateUserPicListRequest, opts ...grpc.CallOption) (*v1.GateUserPicListReply, error) {
- out := new(v1.GateUserPicListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUserPicInfo(ctx context.Context, in *v1.GateUserPicInfoRequest, opts ...grpc.CallOption) (*v1.GateUserPicInfoReply, error) {
- out := new(v1.GateUserPicInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateRecordList(ctx context.Context, in *v1.GateRecordListRequest, opts ...grpc.CallOption) (*v1.GateRecordListReply, error) {
- out := new(v1.GateRecordListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecordList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateRecordAdd(ctx context.Context, in *v1.GateRecordAddRequest, opts ...grpc.CallOption) (*v1.GateRecordAddReply, error) {
- out := new(v1.GateRecordAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecordAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateVisitorAdd(ctx context.Context, in *v1.GateVisitorAddRequest, opts ...grpc.CallOption) (*v1.GateVisitorAddReply, error) {
- out := new(v1.GateVisitorAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateVisitorDel(ctx context.Context, in *v1.GateVisitorDelRequest, opts ...grpc.CallOption) (*v1.GateVisitorDelReply, error) {
- out := new(v1.GateVisitorDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateVisitorCheck(ctx context.Context, in *v1.GateVisitorCheckRequest, opts ...grpc.CallOption) (*v1.GateVisitorCheckReply, error) {
- out := new(v1.GateVisitorCheckReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorCheck", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateVisitorList(ctx context.Context, in *v1.GateVisitorListRequest, opts ...grpc.CallOption) (*v1.GateVisitorListReply, error) {
- out := new(v1.GateVisitorListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUnitDevice(ctx context.Context, in *v1.GateUnitDeviceRequest, opts ...grpc.CallOption) (*v1.GateUnitDeviceReply, error) {
- out := new(v1.GateUnitDeviceReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUnitDevice", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUnitAdd(ctx context.Context, in *v1.GateUnitAddRequest, opts ...grpc.CallOption) (*v1.GateUnitAddReply, error) {
- out := new(v1.GateUnitAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUnitAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateUnitList(ctx context.Context, in *v1.GateUnitListRequest, opts ...grpc.CallOption) (*v1.GateUnitListReply, error) {
- out := new(v1.GateUnitListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateUnitList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateProtocols(ctx context.Context, in *v1.GateProtocolsRequest, opts ...grpc.CallOption) (*v1.GateProtocolsReply, error) {
- out := new(v1.GateProtocolsReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateProtocols", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) HouseholdGateSyncCheck(ctx context.Context, in *v1.HouseholdGateSyncCheckRequest, opts ...grpc.CallOption) (*v1.HouseholdGateSyncCheckReply, error) {
- out := new(v1.HouseholdGateSyncCheckReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/HouseholdGateSyncCheck", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // DeviceServer is the server API for Device service.
- type DeviceServer interface {
- // 门禁在线
- GateOnline(context.Context, *v1.GateOnlineRequest) (*v1.GateOnlineReply, error)
- // 门禁入库
- GateIn(context.Context, *v1.GateInRequest) (*v1.GateInReply, error)
- // 门禁批量入库
- GateBatchIn(context.Context, *v1.GateBatchInRequest) (*v1.GateBatchInReply, error)
- // 门禁列表
- GateList(context.Context, *v1.GateListRequest) (*v1.GateListReply, error)
- // 人脸门禁所有id
- MqttFaceGate(context.Context, *v1.MqttFaceGateRequest) (*v1.MqttFaceGateReply, error)
- // 门禁出库
- GateOut(context.Context, *v1.GateOutRequest) (*v1.GateOutReply, error)
- // 删除门禁
- GateDel(context.Context, *v1.GateDelRequest) (*v1.GateDelReply, error)
- // 门禁回收
- GateRecovery(context.Context, *v1.GateRecoveryRequest) (*v1.GateRecoveryReply, error)
- // 门禁起停用
- GateEnable(context.Context, *v1.GateEnableRequest) (*v1.GateEnableReply, error)
- // 设置门禁位置和进场出场
- GateSet(context.Context, *v1.GateSetRequest) (*v1.GateSetReply, error)
- // 添加门禁卡号
- GateCardAdd(context.Context, *v1.GateCardAddRequest) (*v1.GateCardAddReply, error)
- GateCardDel(context.Context, *v1.GateCardDelRequest) (*v1.GateCardDelReply, error)
- // 门禁卡列表
- GateCardList(context.Context, *v1.GateCardListRequest) (*v1.GateCardListReply, error)
- // 门禁卡下发
- GateCardSync(context.Context, *v1.GateCardSyncRequest) (*v1.GateCardSyncReply, error)
- // 获取卡还可以绑定的设备
- GateCardCanBindDevices(context.Context, *v1.GateCardCanBindDevicesRequest) (*v1.GateCardCanBindDevicesReply, error)
- // 获取门禁远程命令
- GateCommandUse(context.Context, *v1.GateCommandUseRequest) (*v1.GateCommandUseReply, error)
- // 门禁远程命令结果
- GateCommandResult(context.Context, *v1.GateCommandResultRequest) (*v1.GateCommandResultReply, error)
- // 门禁命令添加
- GateCommandAdd(context.Context, *v1.GateCommandAddRequest) (*v1.GateCommandAddReply, error)
- // 门禁命令记录
- GateCommandList(context.Context, *v1.GateCommandListRequest) (*v1.GateCommandListReply, error)
- // 门禁白名单匹配
- GateWhiteMatch(context.Context, *v1.GateWhiteMatchRequest) (*v1.GateWhiteMatchReply, error)
- // 门禁人脸申请
- GateUserPicAdd(context.Context, *v1.GateUserPicAddRequest) (*v1.GateUserPicAddReply, error)
- GateUserPicDel(context.Context, *v1.GateUserPicDelRequest) (*v1.GateUserPicDelReply, error)
- // 门禁人脸审核
- GateUserPicApprove(context.Context, *v1.GateUserPicApproveRequest) (*v1.GateUserPicApproveReply, error)
- // 门禁人脸下发
- GateUserPicSync(context.Context, *v1.GateUserPicSyncRequest) (*v1.GateUserPicSyncReply, error)
- // 获取人脸录入列表
- GateUserPicList(context.Context, *v1.GateUserPicListRequest) (*v1.GateUserPicListReply, error)
- // 获取人脸录入信息
- GateUserPicInfo(context.Context, *v1.GateUserPicInfoRequest) (*v1.GateUserPicInfoReply, error)
- // 门禁进出记录列表
- GateRecordList(context.Context, *v1.GateRecordListRequest) (*v1.GateRecordListReply, error)
- // 门禁进出记录添加
- GateRecordAdd(context.Context, *v1.GateRecordAddRequest) (*v1.GateRecordAddReply, error)
- GateVisitorAdd(context.Context, *v1.GateVisitorAddRequest) (*v1.GateVisitorAddReply, error)
- GateVisitorDel(context.Context, *v1.GateVisitorDelRequest) (*v1.GateVisitorDelReply, error)
- GateVisitorCheck(context.Context, *v1.GateVisitorCheckRequest) (*v1.GateVisitorCheckReply, error)
- GateVisitorList(context.Context, *v1.GateVisitorListRequest) (*v1.GateVisitorListReply, error)
- // 获取绑定了某单元的门禁列表
- GateUnitDevice(context.Context, *v1.GateUnitDeviceRequest) (*v1.GateUnitDeviceReply, error)
- // 门禁设备绑定范围
- GateUnitAdd(context.Context, *v1.GateUnitAddRequest) (*v1.GateUnitAddReply, error)
- // 门禁设备单元列表
- GateUnitList(context.Context, *v1.GateUnitListRequest) (*v1.GateUnitListReply, error)
- // 门禁协议
- GateProtocols(context.Context, *v1.GateProtocolsRequest) (*v1.GateProtocolsReply, error)
- // 住户申请房屋后,检查是否有设备需要同步人脸
- HouseholdGateSyncCheck(context.Context, *v1.HouseholdGateSyncCheckRequest) (*v1.HouseholdGateSyncCheckReply, error)
- }
- // UnimplementedDeviceServer can be embedded to have forward compatible implementations.
- type UnimplementedDeviceServer struct {
- }
- func (*UnimplementedDeviceServer) GateOnline(ctx context.Context, req *v1.GateOnlineRequest) (*v1.GateOnlineReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateOnline not implemented")
- }
- func (*UnimplementedDeviceServer) GateIn(ctx context.Context, req *v1.GateInRequest) (*v1.GateInReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateIn not implemented")
- }
- func (*UnimplementedDeviceServer) GateBatchIn(ctx context.Context, req *v1.GateBatchInRequest) (*v1.GateBatchInReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateBatchIn not implemented")
- }
- func (*UnimplementedDeviceServer) GateList(ctx context.Context, req *v1.GateListRequest) (*v1.GateListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateList not implemented")
- }
- func (*UnimplementedDeviceServer) MqttFaceGate(ctx context.Context, req *v1.MqttFaceGateRequest) (*v1.MqttFaceGateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MqttFaceGate not implemented")
- }
- func (*UnimplementedDeviceServer) GateOut(ctx context.Context, req *v1.GateOutRequest) (*v1.GateOutReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateOut not implemented")
- }
- func (*UnimplementedDeviceServer) GateDel(ctx context.Context, req *v1.GateDelRequest) (*v1.GateDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateDel not implemented")
- }
- func (*UnimplementedDeviceServer) GateRecovery(ctx context.Context, req *v1.GateRecoveryRequest) (*v1.GateRecoveryReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateRecovery not implemented")
- }
- func (*UnimplementedDeviceServer) GateEnable(ctx context.Context, req *v1.GateEnableRequest) (*v1.GateEnableReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateEnable not implemented")
- }
- func (*UnimplementedDeviceServer) GateSet(ctx context.Context, req *v1.GateSetRequest) (*v1.GateSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateSet not implemented")
- }
- func (*UnimplementedDeviceServer) GateCardAdd(ctx context.Context, req *v1.GateCardAddRequest) (*v1.GateCardAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCardAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateCardDel(ctx context.Context, req *v1.GateCardDelRequest) (*v1.GateCardDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCardDel not implemented")
- }
- func (*UnimplementedDeviceServer) GateCardList(ctx context.Context, req *v1.GateCardListRequest) (*v1.GateCardListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCardList not implemented")
- }
- func (*UnimplementedDeviceServer) GateCardSync(ctx context.Context, req *v1.GateCardSyncRequest) (*v1.GateCardSyncReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCardSync not implemented")
- }
- func (*UnimplementedDeviceServer) GateCardCanBindDevices(ctx context.Context, req *v1.GateCardCanBindDevicesRequest) (*v1.GateCardCanBindDevicesReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCardCanBindDevices not implemented")
- }
- func (*UnimplementedDeviceServer) GateCommandUse(ctx context.Context, req *v1.GateCommandUseRequest) (*v1.GateCommandUseReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCommandUse not implemented")
- }
- func (*UnimplementedDeviceServer) GateCommandResult(ctx context.Context, req *v1.GateCommandResultRequest) (*v1.GateCommandResultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCommandResult not implemented")
- }
- func (*UnimplementedDeviceServer) GateCommandAdd(ctx context.Context, req *v1.GateCommandAddRequest) (*v1.GateCommandAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCommandAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateCommandList(ctx context.Context, req *v1.GateCommandListRequest) (*v1.GateCommandListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCommandList not implemented")
- }
- func (*UnimplementedDeviceServer) GateWhiteMatch(ctx context.Context, req *v1.GateWhiteMatchRequest) (*v1.GateWhiteMatchReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateWhiteMatch not implemented")
- }
- func (*UnimplementedDeviceServer) GateUserPicAdd(ctx context.Context, req *v1.GateUserPicAddRequest) (*v1.GateUserPicAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUserPicAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateUserPicDel(ctx context.Context, req *v1.GateUserPicDelRequest) (*v1.GateUserPicDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUserPicDel not implemented")
- }
- func (*UnimplementedDeviceServer) GateUserPicApprove(ctx context.Context, req *v1.GateUserPicApproveRequest) (*v1.GateUserPicApproveReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUserPicApprove not implemented")
- }
- func (*UnimplementedDeviceServer) GateUserPicSync(ctx context.Context, req *v1.GateUserPicSyncRequest) (*v1.GateUserPicSyncReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUserPicSync not implemented")
- }
- func (*UnimplementedDeviceServer) GateUserPicList(ctx context.Context, req *v1.GateUserPicListRequest) (*v1.GateUserPicListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUserPicList not implemented")
- }
- func (*UnimplementedDeviceServer) GateUserPicInfo(ctx context.Context, req *v1.GateUserPicInfoRequest) (*v1.GateUserPicInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUserPicInfo not implemented")
- }
- func (*UnimplementedDeviceServer) GateRecordList(ctx context.Context, req *v1.GateRecordListRequest) (*v1.GateRecordListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateRecordList not implemented")
- }
- func (*UnimplementedDeviceServer) GateRecordAdd(ctx context.Context, req *v1.GateRecordAddRequest) (*v1.GateRecordAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateRecordAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateVisitorAdd(ctx context.Context, req *v1.GateVisitorAddRequest) (*v1.GateVisitorAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateVisitorAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateVisitorDel(ctx context.Context, req *v1.GateVisitorDelRequest) (*v1.GateVisitorDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateVisitorDel not implemented")
- }
- func (*UnimplementedDeviceServer) GateVisitorCheck(ctx context.Context, req *v1.GateVisitorCheckRequest) (*v1.GateVisitorCheckReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateVisitorCheck not implemented")
- }
- func (*UnimplementedDeviceServer) GateVisitorList(ctx context.Context, req *v1.GateVisitorListRequest) (*v1.GateVisitorListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateVisitorList not implemented")
- }
- func (*UnimplementedDeviceServer) GateUnitDevice(ctx context.Context, req *v1.GateUnitDeviceRequest) (*v1.GateUnitDeviceReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUnitDevice not implemented")
- }
- func (*UnimplementedDeviceServer) GateUnitAdd(ctx context.Context, req *v1.GateUnitAddRequest) (*v1.GateUnitAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUnitAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateUnitList(ctx context.Context, req *v1.GateUnitListRequest) (*v1.GateUnitListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateUnitList not implemented")
- }
- func (*UnimplementedDeviceServer) GateProtocols(ctx context.Context, req *v1.GateProtocolsRequest) (*v1.GateProtocolsReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateProtocols not implemented")
- }
- func (*UnimplementedDeviceServer) HouseholdGateSyncCheck(ctx context.Context, req *v1.HouseholdGateSyncCheckRequest) (*v1.HouseholdGateSyncCheckReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseholdGateSyncCheck not implemented")
- }
- func RegisterDeviceServer(s *grpc.Server, srv DeviceServer) {
- s.RegisterService(&_Device_serviceDesc, srv)
- }
- func _Device_GateOnline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateOnlineRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateOnline(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateOnline",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateOnline(ctx, req.(*v1.GateOnlineRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateInRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateIn(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateIn",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateIn(ctx, req.(*v1.GateInRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateBatchIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateBatchInRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateBatchIn(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateBatchIn",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateBatchIn(ctx, req.(*v1.GateBatchInRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateList(ctx, req.(*v1.GateListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_MqttFaceGate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MqttFaceGateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).MqttFaceGate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/MqttFaceGate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).MqttFaceGate(ctx, req.(*v1.MqttFaceGateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateOutRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateOut(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateOut",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateOut(ctx, req.(*v1.GateOutRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateDel(ctx, req.(*v1.GateDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateRecovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateRecoveryRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateRecovery(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateRecovery",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateRecovery(ctx, req.(*v1.GateRecoveryRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateEnableRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateEnable(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateEnable",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateEnable(ctx, req.(*v1.GateEnableRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateSet(ctx, req.(*v1.GateSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCardAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCardAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCardAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCardAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCardAdd(ctx, req.(*v1.GateCardAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCardDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCardDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCardDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCardDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCardDel(ctx, req.(*v1.GateCardDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCardList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCardListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCardList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCardList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCardList(ctx, req.(*v1.GateCardListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCardSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCardSyncRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCardSync(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCardSync",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCardSync(ctx, req.(*v1.GateCardSyncRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCardCanBindDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCardCanBindDevicesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCardCanBindDevices(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCardCanBindDevices",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCardCanBindDevices(ctx, req.(*v1.GateCardCanBindDevicesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCommandUse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCommandUseRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCommandUse(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCommandUse",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCommandUse(ctx, req.(*v1.GateCommandUseRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCommandResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCommandResultRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCommandResult(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCommandResult",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCommandResult(ctx, req.(*v1.GateCommandResultRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCommandAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCommandAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCommandAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCommandAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCommandAdd(ctx, req.(*v1.GateCommandAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCommandList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCommandListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCommandList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCommandList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCommandList(ctx, req.(*v1.GateCommandListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateWhiteMatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateWhiteMatchRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateWhiteMatch(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateWhiteMatch",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateWhiteMatch(ctx, req.(*v1.GateWhiteMatchRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUserPicAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUserPicAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUserPicAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUserPicAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUserPicAdd(ctx, req.(*v1.GateUserPicAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUserPicDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUserPicDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUserPicDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUserPicDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUserPicDel(ctx, req.(*v1.GateUserPicDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUserPicApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUserPicApproveRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUserPicApprove(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUserPicApprove",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUserPicApprove(ctx, req.(*v1.GateUserPicApproveRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUserPicSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUserPicSyncRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUserPicSync(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUserPicSync",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUserPicSync(ctx, req.(*v1.GateUserPicSyncRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUserPicList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUserPicListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUserPicList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUserPicList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUserPicList(ctx, req.(*v1.GateUserPicListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUserPicInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUserPicInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUserPicInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUserPicInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUserPicInfo(ctx, req.(*v1.GateUserPicInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateRecordListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateRecordList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateRecordList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateRecordList(ctx, req.(*v1.GateRecordListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateRecordAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateRecordAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateRecordAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateRecordAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateRecordAdd(ctx, req.(*v1.GateRecordAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateVisitorAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateVisitorAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateVisitorAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateVisitorAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateVisitorAdd(ctx, req.(*v1.GateVisitorAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateVisitorDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateVisitorDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateVisitorDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateVisitorDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateVisitorDel(ctx, req.(*v1.GateVisitorDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateVisitorCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateVisitorCheckRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateVisitorCheck(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateVisitorCheck",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateVisitorCheck(ctx, req.(*v1.GateVisitorCheckRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateVisitorList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateVisitorListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateVisitorList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateVisitorList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateVisitorList(ctx, req.(*v1.GateVisitorListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUnitDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUnitDeviceRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUnitDevice(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUnitDevice",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUnitDevice(ctx, req.(*v1.GateUnitDeviceRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUnitAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUnitAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUnitAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUnitAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUnitAdd(ctx, req.(*v1.GateUnitAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateUnitList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateUnitListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateUnitList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateUnitList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateUnitList(ctx, req.(*v1.GateUnitListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateProtocols_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateProtocolsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateProtocols(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateProtocols",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateProtocols(ctx, req.(*v1.GateProtocolsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_HouseholdGateSyncCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseholdGateSyncCheckRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).HouseholdGateSyncCheck(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/HouseholdGateSyncCheck",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).HouseholdGateSyncCheck(ctx, req.(*v1.HouseholdGateSyncCheckRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Device_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Device",
- HandlerType: (*DeviceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GateOnline",
- Handler: _Device_GateOnline_Handler,
- },
- {
- MethodName: "GateIn",
- Handler: _Device_GateIn_Handler,
- },
- {
- MethodName: "GateBatchIn",
- Handler: _Device_GateBatchIn_Handler,
- },
- {
- MethodName: "GateList",
- Handler: _Device_GateList_Handler,
- },
- {
- MethodName: "MqttFaceGate",
- Handler: _Device_MqttFaceGate_Handler,
- },
- {
- MethodName: "GateOut",
- Handler: _Device_GateOut_Handler,
- },
- {
- MethodName: "GateDel",
- Handler: _Device_GateDel_Handler,
- },
- {
- MethodName: "GateRecovery",
- Handler: _Device_GateRecovery_Handler,
- },
- {
- MethodName: "GateEnable",
- Handler: _Device_GateEnable_Handler,
- },
- {
- MethodName: "GateSet",
- Handler: _Device_GateSet_Handler,
- },
- {
- MethodName: "GateCardAdd",
- Handler: _Device_GateCardAdd_Handler,
- },
- {
- MethodName: "GateCardDel",
- Handler: _Device_GateCardDel_Handler,
- },
- {
- MethodName: "GateCardList",
- Handler: _Device_GateCardList_Handler,
- },
- {
- MethodName: "GateCardSync",
- Handler: _Device_GateCardSync_Handler,
- },
- {
- MethodName: "GateCardCanBindDevices",
- Handler: _Device_GateCardCanBindDevices_Handler,
- },
- {
- MethodName: "GateCommandUse",
- Handler: _Device_GateCommandUse_Handler,
- },
- {
- MethodName: "GateCommandResult",
- Handler: _Device_GateCommandResult_Handler,
- },
- {
- MethodName: "GateCommandAdd",
- Handler: _Device_GateCommandAdd_Handler,
- },
- {
- MethodName: "GateCommandList",
- Handler: _Device_GateCommandList_Handler,
- },
- {
- MethodName: "GateWhiteMatch",
- Handler: _Device_GateWhiteMatch_Handler,
- },
- {
- MethodName: "GateUserPicAdd",
- Handler: _Device_GateUserPicAdd_Handler,
- },
- {
- MethodName: "GateUserPicDel",
- Handler: _Device_GateUserPicDel_Handler,
- },
- {
- MethodName: "GateUserPicApprove",
- Handler: _Device_GateUserPicApprove_Handler,
- },
- {
- MethodName: "GateUserPicSync",
- Handler: _Device_GateUserPicSync_Handler,
- },
- {
- MethodName: "GateUserPicList",
- Handler: _Device_GateUserPicList_Handler,
- },
- {
- MethodName: "GateUserPicInfo",
- Handler: _Device_GateUserPicInfo_Handler,
- },
- {
- MethodName: "GateRecordList",
- Handler: _Device_GateRecordList_Handler,
- },
- {
- MethodName: "GateRecordAdd",
- Handler: _Device_GateRecordAdd_Handler,
- },
- {
- MethodName: "GateVisitorAdd",
- Handler: _Device_GateVisitorAdd_Handler,
- },
- {
- MethodName: "GateVisitorDel",
- Handler: _Device_GateVisitorDel_Handler,
- },
- {
- MethodName: "GateVisitorCheck",
- Handler: _Device_GateVisitorCheck_Handler,
- },
- {
- MethodName: "GateVisitorList",
- Handler: _Device_GateVisitorList_Handler,
- },
- {
- MethodName: "GateUnitDevice",
- Handler: _Device_GateUnitDevice_Handler,
- },
- {
- MethodName: "GateUnitAdd",
- Handler: _Device_GateUnitAdd_Handler,
- },
- {
- MethodName: "GateUnitList",
- Handler: _Device_GateUnitList_Handler,
- },
- {
- MethodName: "GateProtocols",
- Handler: _Device_GateProtocols_Handler,
- },
- {
- MethodName: "HouseholdGateSyncCheck",
- Handler: _Device_HouseholdGateSyncCheck_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "device_service.proto",
- }
|