|
|
@@ -58,7 +58,7 @@ type AiClient interface {
|
|
|
// vip直接升级
|
|
|
VipUpAI(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 用户受到邀请
|
|
|
- ShareUserInto(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
+ ShareUserInto(ctx context.Context, in *ShareUserIntoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
}
|
|
|
|
|
|
type aiClient struct {
|
|
|
@@ -240,7 +240,7 @@ func (c *aiClient) VipUpAI(ctx context.Context, in *GetAIShareMessageRequest, op
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *aiClient) ShareUserInto(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
+func (c *aiClient) ShareUserInto(ctx context.Context, in *ShareUserIntoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.ai.Ai/ShareUserInto", in, out, opts...)
|
|
|
if err != nil {
|
|
|
@@ -292,7 +292,7 @@ type AiServer interface {
|
|
|
// vip直接升级
|
|
|
VipUpAI(context.Context, *GetAIShareMessageRequest) (*emptypb.Empty, error)
|
|
|
// 用户受到邀请
|
|
|
- ShareUserInto(context.Context, *GetAIShareMessageRequest) (*emptypb.Empty, error)
|
|
|
+ ShareUserInto(context.Context, *ShareUserIntoRequest) (*emptypb.Empty, error)
|
|
|
mustEmbedUnimplementedAiServer()
|
|
|
}
|
|
|
|
|
|
@@ -357,7 +357,7 @@ func (UnimplementedAiServer) SetVideoLink(context.Context, *SetVideoLinkRequest)
|
|
|
func (UnimplementedAiServer) VipUpAI(context.Context, *GetAIShareMessageRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method VipUpAI not implemented")
|
|
|
}
|
|
|
-func (UnimplementedAiServer) ShareUserInto(context.Context, *GetAIShareMessageRequest) (*emptypb.Empty, error) {
|
|
|
+func (UnimplementedAiServer) ShareUserInto(context.Context, *ShareUserIntoRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareUserInto not implemented")
|
|
|
}
|
|
|
func (UnimplementedAiServer) mustEmbedUnimplementedAiServer() {}
|
|
|
@@ -716,7 +716,7 @@ func _Ai_VipUpAI_Handler(srv interface{}, ctx context.Context, dec func(interfac
|
|
|
}
|
|
|
|
|
|
func _Ai_ShareUserInto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(GetAIShareMessageRequest)
|
|
|
+ in := new(ShareUserIntoRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -728,7 +728,7 @@ func _Ai_ShareUserInto_Handler(srv interface{}, ctx context.Context, dec func(in
|
|
|
FullMethod: "/api.ai.Ai/ShareUserInto",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(AiServer).ShareUserInto(ctx, req.(*GetAIShareMessageRequest))
|
|
|
+ return srv.(AiServer).ShareUserInto(ctx, req.(*ShareUserIntoRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|