|
|
@@ -5,7 +5,6 @@ package manager
|
|
|
import (
|
|
|
context "context"
|
|
|
common "git.ikuban.com/server/pw-protobuf/api/common"
|
|
|
- websocket "git.ikuban.com/server/pw-protobuf/api/websocket"
|
|
|
grpc "google.golang.org/grpc"
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
status "google.golang.org/grpc/status"
|
|
|
@@ -88,11 +87,11 @@ type ManagerClient interface {
|
|
|
// 管理员查询某个举报者的举报详情列表
|
|
|
ManagerFindReportDetailsList(ctx context.Context, in *common.ManagerFindReportDetailsListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportDetailsListReply, error)
|
|
|
// 查询在线人数
|
|
|
- FindOnlinePerson(ctx context.Context, in *FindOnlinePersonRequest, opts ...grpc.CallOption) (*websocket.FindOnlinePersonReply, error)
|
|
|
+ FindOnlinePerson(ctx context.Context, in *FindOnlinePersonRequest, opts ...grpc.CallOption) (*FindOnlinePersonReply, error)
|
|
|
// 管理员注销用户
|
|
|
ManagerUserUnsubscribe(ctx context.Context, in *ManagerUserUnsubscribeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 查询在线可匹配人数
|
|
|
- FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*websocket.FindOnlineCanMatchingPersonReply, error)
|
|
|
+ FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlineCanMatchingPersonReply, error)
|
|
|
// 管理员增加黑名单图片
|
|
|
ManagerAddBlackPicture(ctx context.Context, in *ManagerAddBlackPictureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
}
|
|
|
@@ -402,8 +401,8 @@ func (c *managerClient) ManagerFindReportDetailsList(ctx context.Context, in *co
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *managerClient) FindOnlinePerson(ctx context.Context, in *FindOnlinePersonRequest, opts ...grpc.CallOption) (*websocket.FindOnlinePersonReply, error) {
|
|
|
- out := new(websocket.FindOnlinePersonReply)
|
|
|
+func (c *managerClient) FindOnlinePerson(ctx context.Context, in *FindOnlinePersonRequest, opts ...grpc.CallOption) (*FindOnlinePersonReply, error) {
|
|
|
+ out := new(FindOnlinePersonReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.manager.Manager/FindOnlinePerson", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
@@ -420,8 +419,8 @@ func (c *managerClient) ManagerUserUnsubscribe(ctx context.Context, in *ManagerU
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *managerClient) FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*websocket.FindOnlineCanMatchingPersonReply, error) {
|
|
|
- out := new(websocket.FindOnlineCanMatchingPersonReply)
|
|
|
+func (c *managerClient) FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlineCanMatchingPersonReply, error) {
|
|
|
+ out := new(FindOnlineCanMatchingPersonReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.manager.Manager/FindOnlineCanMatchingPerson", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
@@ -509,11 +508,11 @@ type ManagerServer interface {
|
|
|
// 管理员查询某个举报者的举报详情列表
|
|
|
ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error)
|
|
|
// 查询在线人数
|
|
|
- FindOnlinePerson(context.Context, *FindOnlinePersonRequest) (*websocket.FindOnlinePersonReply, error)
|
|
|
+ FindOnlinePerson(context.Context, *FindOnlinePersonRequest) (*FindOnlinePersonReply, error)
|
|
|
// 管理员注销用户
|
|
|
ManagerUserUnsubscribe(context.Context, *ManagerUserUnsubscribeRequest) (*emptypb.Empty, error)
|
|
|
// 查询在线可匹配人数
|
|
|
- FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*websocket.FindOnlineCanMatchingPersonReply, error)
|
|
|
+ FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*FindOnlineCanMatchingPersonReply, error)
|
|
|
// 管理员增加黑名单图片
|
|
|
ManagerAddBlackPicture(context.Context, *ManagerAddBlackPictureRequest) (*emptypb.Empty, error)
|
|
|
mustEmbedUnimplementedManagerServer()
|
|
|
@@ -622,13 +621,13 @@ 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, *FindOnlinePersonRequest) (*websocket.FindOnlinePersonReply, error) {
|
|
|
+func (UnimplementedManagerServer) FindOnlinePerson(context.Context, *FindOnlinePersonRequest) (*FindOnlinePersonReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePerson not implemented")
|
|
|
}
|
|
|
func (UnimplementedManagerServer) ManagerUserUnsubscribe(context.Context, *ManagerUserUnsubscribeRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ManagerUserUnsubscribe not implemented")
|
|
|
}
|
|
|
-func (UnimplementedManagerServer) FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*websocket.FindOnlineCanMatchingPersonReply, error) {
|
|
|
+func (UnimplementedManagerServer) FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*FindOnlineCanMatchingPersonReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindOnlineCanMatchingPerson not implemented")
|
|
|
}
|
|
|
func (UnimplementedManagerServer) ManagerAddBlackPicture(context.Context, *ManagerAddBlackPictureRequest) (*emptypb.Empty, error) {
|