|
|
@@ -88,7 +88,7 @@ type ManagerClient interface {
|
|
|
// 管理员查询某个举报者的举报详情列表
|
|
|
ManagerFindReportDetailsList(ctx context.Context, in *common.ManagerFindReportDetailsListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportDetailsListReply, error)
|
|
|
// 查询在线人数
|
|
|
- FindOnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*websocket.FindOnlinePersonReply, error)
|
|
|
+ FindOnlinePerson(ctx context.Context, in *FindOnlinePersonRequest, opts ...grpc.CallOption) (*websocket.FindOnlinePersonReply, error)
|
|
|
}
|
|
|
|
|
|
type managerClient struct {
|
|
|
@@ -396,7 +396,7 @@ func (c *managerClient) ManagerFindReportDetailsList(ctx context.Context, in *co
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *managerClient) FindOnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*websocket.FindOnlinePersonReply, error) {
|
|
|
+func (c *managerClient) FindOnlinePerson(ctx context.Context, in *FindOnlinePersonRequest, opts ...grpc.CallOption) (*websocket.FindOnlinePersonReply, error) {
|
|
|
out := new(websocket.FindOnlinePersonReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.manager.Manager/FindOnlinePerson", in, out, opts...)
|
|
|
if err != nil {
|
|
|
@@ -476,7 +476,7 @@ type ManagerServer interface {
|
|
|
// 管理员查询某个举报者的举报详情列表
|
|
|
ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error)
|
|
|
// 查询在线人数
|
|
|
- FindOnlinePerson(context.Context, *emptypb.Empty) (*websocket.FindOnlinePersonReply, error)
|
|
|
+ FindOnlinePerson(context.Context, *FindOnlinePersonRequest) (*websocket.FindOnlinePersonReply, error)
|
|
|
mustEmbedUnimplementedManagerServer()
|
|
|
}
|
|
|
|
|
|
@@ -583,7 +583,7 @@ func (UnimplementedManagerServer) ManagerFindReportList(context.Context, *common
|
|
|
func (UnimplementedManagerServer) ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ManagerFindReportDetailsList not implemented")
|
|
|
}
|
|
|
-func (UnimplementedManagerServer) FindOnlinePerson(context.Context, *emptypb.Empty) (*websocket.FindOnlinePersonReply, error) {
|
|
|
+func (UnimplementedManagerServer) FindOnlinePerson(context.Context, *FindOnlinePersonRequest) (*websocket.FindOnlinePersonReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePerson not implemented")
|
|
|
}
|
|
|
func (UnimplementedManagerServer) mustEmbedUnimplementedManagerServer() {}
|
|
|
@@ -1194,7 +1194,7 @@ func _Manager_ManagerFindReportDetailsList_Handler(srv interface{}, ctx context.
|
|
|
}
|
|
|
|
|
|
func _Manager_FindOnlinePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(emptypb.Empty)
|
|
|
+ in := new(FindOnlinePersonRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -1206,7 +1206,7 @@ func _Manager_FindOnlinePerson_Handler(srv interface{}, ctx context.Context, dec
|
|
|
FullMethod: "/api.manager.Manager/FindOnlinePerson",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ManagerServer).FindOnlinePerson(ctx, req.(*emptypb.Empty))
|
|
|
+ return srv.(ManagerServer).FindOnlinePerson(ctx, req.(*FindOnlinePersonRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|