|
|
@@ -158,7 +158,9 @@ type UserClient interface {
|
|
|
// 管理员查询优质用户列表
|
|
|
ManagerFindHighQualityUserList(ctx context.Context, in *common.ManagerFindPersonListRequest, opts ...grpc.CallOption) (*common.ManagerFindPersonListReply, error)
|
|
|
// 管理员标记优质用户
|
|
|
- ManagerMarkHighQualityUser(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
+ ManagerMarkHighQualityUser(ctx context.Context, in *ManagerMarkHighQualityUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
+ // 管理员标记单个优质用户
|
|
|
+ ManagerMarkHighQualityUserOne(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 管理员取消标记优质用户
|
|
|
ManagerDeleteHighQualityUser(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 管理员更新用户语音
|
|
|
@@ -816,7 +818,7 @@ func (c *userClient) ManagerFindHighQualityUserList(ctx context.Context, in *com
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *userClient) ManagerMarkHighQualityUser(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
+func (c *userClient) ManagerMarkHighQualityUser(ctx context.Context, in *ManagerMarkHighQualityUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.user.User/ManagerMarkHighQualityUser", in, out, opts...)
|
|
|
if err != nil {
|
|
|
@@ -825,6 +827,15 @@ func (c *userClient) ManagerMarkHighQualityUser(ctx context.Context, in *common.
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *userClient) ManagerMarkHighQualityUserOne(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
+ out := new(emptypb.Empty)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.user.User/ManagerMarkHighQualityUserOne", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
func (c *userClient) ManagerDeleteHighQualityUser(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.user.User/ManagerDeleteHighQualityUser", in, out, opts...)
|
|
|
@@ -1199,7 +1210,9 @@ type UserServer interface {
|
|
|
// 管理员查询优质用户列表
|
|
|
ManagerFindHighQualityUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error)
|
|
|
// 管理员标记优质用户
|
|
|
- ManagerMarkHighQualityUser(context.Context, *common.PersonIDList) (*emptypb.Empty, error)
|
|
|
+ ManagerMarkHighQualityUser(context.Context, *ManagerMarkHighQualityUserRequest) (*emptypb.Empty, error)
|
|
|
+ // 管理员标记单个优质用户
|
|
|
+ ManagerMarkHighQualityUserOne(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
// 管理员取消标记优质用户
|
|
|
ManagerDeleteHighQualityUser(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
// 管理员更新用户语音
|
|
|
@@ -1458,9 +1471,12 @@ func (UnimplementedUserServer) ManagerFindInformationUserList(context.Context, *
|
|
|
func (UnimplementedUserServer) ManagerFindHighQualityUserList(context.Context, *common.ManagerFindPersonListRequest) (*common.ManagerFindPersonListReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ManagerFindHighQualityUserList not implemented")
|
|
|
}
|
|
|
-func (UnimplementedUserServer) ManagerMarkHighQualityUser(context.Context, *common.PersonIDList) (*emptypb.Empty, error) {
|
|
|
+func (UnimplementedUserServer) ManagerMarkHighQualityUser(context.Context, *ManagerMarkHighQualityUserRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ManagerMarkHighQualityUser not implemented")
|
|
|
}
|
|
|
+func (UnimplementedUserServer) ManagerMarkHighQualityUserOne(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ManagerMarkHighQualityUserOne not implemented")
|
|
|
+}
|
|
|
func (UnimplementedUserServer) ManagerDeleteHighQualityUser(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ManagerDeleteHighQualityUser not implemented")
|
|
|
}
|
|
|
@@ -2741,7 +2757,7 @@ func _User_ManagerFindHighQualityUserList_Handler(srv interface{}, ctx context.C
|
|
|
}
|
|
|
|
|
|
func _User_ManagerMarkHighQualityUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(common.PersonIDList)
|
|
|
+ in := new(ManagerMarkHighQualityUserRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -2753,7 +2769,25 @@ func _User_ManagerMarkHighQualityUser_Handler(srv interface{}, ctx context.Conte
|
|
|
FullMethod: "/api.user.User/ManagerMarkHighQualityUser",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserServer).ManagerMarkHighQualityUser(ctx, req.(*common.PersonIDList))
|
|
|
+ return srv.(UserServer).ManagerMarkHighQualityUser(ctx, req.(*ManagerMarkHighQualityUserRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _User_ManagerMarkHighQualityUserOne_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 {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(UserServer).ManagerMarkHighQualityUserOne(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.user.User/ManagerMarkHighQualityUserOne",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(UserServer).ManagerMarkHighQualityUserOne(ctx, req.(*common.PersonIDParam))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
@@ -3501,6 +3535,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "ManagerMarkHighQualityUser",
|
|
|
Handler: _User_ManagerMarkHighQualityUser_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "ManagerMarkHighQualityUserOne",
|
|
|
+ Handler: _User_ManagerMarkHighQualityUserOne_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "ManagerDeleteHighQualityUser",
|
|
|
Handler: _User_ManagerDeleteHighQualityUser_Handler,
|