|
|
@@ -145,6 +145,8 @@ type PartnerClient interface {
|
|
|
ManagerLogin(ctx context.Context, in *common.ManagerLoginRequest, opts ...grpc.CallOption) (*common.LoginToken, error)
|
|
|
// 审核记录列表
|
|
|
FindExamineRecordList(ctx context.Context, in *FindExamineRecordListRequest, opts ...grpc.CallOption) (*FindExamineRecordListReply, error)
|
|
|
+ // 当前在线人
|
|
|
+ OnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error)
|
|
|
// ---rpc---
|
|
|
// 1、获取用户详情
|
|
|
GetPartnerDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error)
|
|
|
@@ -727,6 +729,15 @@ func (c *partnerClient) FindExamineRecordList(ctx context.Context, in *FindExami
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *partnerClient) OnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error) {
|
|
|
+ out := new(OnlinePersonReply)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.partner.Partner/OnlinePerson", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
func (c *partnerClient) GetPartnerDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
|
|
|
out := new(common.PersonMsg)
|
|
|
err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerDBMsg", in, out, opts...)
|
|
|
@@ -953,6 +964,8 @@ type PartnerServer interface {
|
|
|
ManagerLogin(context.Context, *common.ManagerLoginRequest) (*common.LoginToken, error)
|
|
|
// 审核记录列表
|
|
|
FindExamineRecordList(context.Context, *FindExamineRecordListRequest) (*FindExamineRecordListReply, error)
|
|
|
+ // 当前在线人
|
|
|
+ OnlinePerson(context.Context, *emptypb.Empty) (*OnlinePersonReply, error)
|
|
|
// ---rpc---
|
|
|
// 1、获取用户详情
|
|
|
GetPartnerDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
|
|
|
@@ -1166,6 +1179,9 @@ func (UnimplementedPartnerServer) ManagerLogin(context.Context, *common.ManagerL
|
|
|
func (UnimplementedPartnerServer) FindExamineRecordList(context.Context, *FindExamineRecordListRequest) (*FindExamineRecordListReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindExamineRecordList not implemented")
|
|
|
}
|
|
|
+func (UnimplementedPartnerServer) OnlinePerson(context.Context, *emptypb.Empty) (*OnlinePersonReply, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method OnlinePerson not implemented")
|
|
|
+}
|
|
|
func (UnimplementedPartnerServer) GetPartnerDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetPartnerDBMsg not implemented")
|
|
|
}
|
|
|
@@ -2310,6 +2326,24 @@ func _Partner_FindExamineRecordList_Handler(srv interface{}, ctx context.Context
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Partner_OnlinePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(emptypb.Empty)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(PartnerServer).OnlinePerson(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.partner.Partner/OnlinePerson",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(PartnerServer).OnlinePerson(ctx, req.(*emptypb.Empty))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
func _Partner_GetPartnerDBMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(common.PersonIDParam)
|
|
|
if err := dec(in); err != nil {
|
|
|
@@ -2759,6 +2793,10 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "FindExamineRecordList",
|
|
|
Handler: _Partner_FindExamineRecordList_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "OnlinePerson",
|
|
|
+ Handler: _Partner_OnlinePerson_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "GetPartnerDBMsg",
|
|
|
Handler: _Partner_GetPartnerDBMsg_Handler,
|