|
|
@@ -93,6 +93,8 @@ type ManagerClient interface {
|
|
|
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)
|
|
|
+ // 管理员增加黑名单图片
|
|
|
+ ManagerAddBlackPicture(ctx context.Context, in *ManagerAddBlackPictureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
}
|
|
|
|
|
|
type managerClient struct {
|
|
|
@@ -427,6 +429,15 @@ func (c *managerClient) FindOnlineCanMatchingPerson(ctx context.Context, in *emp
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *managerClient) ManagerAddBlackPicture(ctx context.Context, in *ManagerAddBlackPictureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
+ out := new(emptypb.Empty)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.manager.Manager/ManagerAddBlackPicture", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// ManagerServer is the server API for Manager service.
|
|
|
// All implementations must embed UnimplementedManagerServer
|
|
|
// for forward compatibility
|
|
|
@@ -503,6 +514,8 @@ type ManagerServer interface {
|
|
|
ManagerUserUnsubscribe(context.Context, *ManagerUserUnsubscribeRequest) (*emptypb.Empty, error)
|
|
|
// 查询在线可匹配人数
|
|
|
FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*websocket.FindOnlineCanMatchingPersonReply, error)
|
|
|
+ // 管理员增加黑名单图片
|
|
|
+ ManagerAddBlackPicture(context.Context, *ManagerAddBlackPictureRequest) (*emptypb.Empty, error)
|
|
|
mustEmbedUnimplementedManagerServer()
|
|
|
}
|
|
|
|
|
|
@@ -618,6 +631,9 @@ func (UnimplementedManagerServer) ManagerUserUnsubscribe(context.Context, *Manag
|
|
|
func (UnimplementedManagerServer) FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*websocket.FindOnlineCanMatchingPersonReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindOnlineCanMatchingPerson not implemented")
|
|
|
}
|
|
|
+func (UnimplementedManagerServer) ManagerAddBlackPicture(context.Context, *ManagerAddBlackPictureRequest) (*emptypb.Empty, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ManagerAddBlackPicture not implemented")
|
|
|
+}
|
|
|
func (UnimplementedManagerServer) mustEmbedUnimplementedManagerServer() {}
|
|
|
|
|
|
// UnsafeManagerServer may be embedded to opt out of forward compatibility for this service.
|
|
|
@@ -1279,6 +1295,24 @@ func _Manager_FindOnlineCanMatchingPerson_Handler(srv interface{}, ctx context.C
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Manager_ManagerAddBlackPicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ManagerAddBlackPictureRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ManagerServer).ManagerAddBlackPicture(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.manager.Manager/ManagerAddBlackPicture",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ManagerServer).ManagerAddBlackPicture(ctx, req.(*ManagerAddBlackPictureRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
// Manager_ServiceDesc is the grpc.ServiceDesc for Manager service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
|
@@ -1430,6 +1464,10 @@ var Manager_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "FindOnlineCanMatchingPerson",
|
|
|
Handler: _Manager_FindOnlineCanMatchingPerson_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "ManagerAddBlackPicture",
|
|
|
+ Handler: _Manager_ManagerAddBlackPicture_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "manager.proto",
|