|
@@ -49,8 +49,14 @@ type AiClient interface {
|
|
|
CronAdditionalService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
CronAdditionalService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 用户已读
|
|
// 用户已读
|
|
|
GetIsRead(ctx context.Context, in *GetIsReadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
GetIsRead(ctx context.Context, in *GetIsReadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
- // 获取AI信息
|
|
|
|
|
|
|
+ // 获取AI升级信息
|
|
|
GetAIShareMessage(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*GetAIShareMessageReply, error)
|
|
GetAIShareMessage(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*GetAIShareMessageReply, error)
|
|
|
|
|
+ // 获取二维码
|
|
|
|
|
+ GetShareQrcode(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*GetShareQrcodeReply, error)
|
|
|
|
|
+ // 保存视频链接
|
|
|
|
|
+ SetVideoLink(ctx context.Context, in *SetVideoLinkRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
|
|
+ // 用户受到邀请
|
|
|
|
|
+ ShareUserInto(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type aiClient struct {
|
|
type aiClient struct {
|
|
@@ -205,6 +211,33 @@ func (c *aiClient) GetAIShareMessage(ctx context.Context, in *GetAIShareMessageR
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *aiClient) GetShareQrcode(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*GetShareQrcodeReply, error) {
|
|
|
|
|
+ out := new(GetShareQrcodeReply)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/api.ai.Ai/GetShareQrcode", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (c *aiClient) SetVideoLink(ctx context.Context, in *SetVideoLinkRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
|
|
+ out := new(emptypb.Empty)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/api.ai.Ai/SetVideoLink", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (c *aiClient) ShareUserInto(ctx context.Context, in *GetAIShareMessageRequest, 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 {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// AiServer is the server API for Ai service.
|
|
// AiServer is the server API for Ai service.
|
|
|
// All implementations must embed UnimplementedAiServer
|
|
// All implementations must embed UnimplementedAiServer
|
|
|
// for forward compatibility
|
|
// for forward compatibility
|
|
@@ -239,8 +272,14 @@ type AiServer interface {
|
|
|
CronAdditionalService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
|
CronAdditionalService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
|
|
// 用户已读
|
|
// 用户已读
|
|
|
GetIsRead(context.Context, *GetIsReadRequest) (*emptypb.Empty, error)
|
|
GetIsRead(context.Context, *GetIsReadRequest) (*emptypb.Empty, error)
|
|
|
- // 获取AI信息
|
|
|
|
|
|
|
+ // 获取AI升级信息
|
|
|
GetAIShareMessage(context.Context, *GetAIShareMessageRequest) (*GetAIShareMessageReply, error)
|
|
GetAIShareMessage(context.Context, *GetAIShareMessageRequest) (*GetAIShareMessageReply, error)
|
|
|
|
|
+ // 获取二维码
|
|
|
|
|
+ GetShareQrcode(context.Context, *GetAIShareMessageRequest) (*GetShareQrcodeReply, error)
|
|
|
|
|
+ // 保存视频链接
|
|
|
|
|
+ SetVideoLink(context.Context, *SetVideoLinkRequest) (*emptypb.Empty, error)
|
|
|
|
|
+ // 用户受到邀请
|
|
|
|
|
+ ShareUserInto(context.Context, *GetAIShareMessageRequest) (*emptypb.Empty, error)
|
|
|
mustEmbedUnimplementedAiServer()
|
|
mustEmbedUnimplementedAiServer()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -296,6 +335,15 @@ func (UnimplementedAiServer) GetIsRead(context.Context, *GetIsReadRequest) (*emp
|
|
|
func (UnimplementedAiServer) GetAIShareMessage(context.Context, *GetAIShareMessageRequest) (*GetAIShareMessageReply, error) {
|
|
func (UnimplementedAiServer) GetAIShareMessage(context.Context, *GetAIShareMessageRequest) (*GetAIShareMessageReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetAIShareMessage not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetAIShareMessage not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (UnimplementedAiServer) GetShareQrcode(context.Context, *GetAIShareMessageRequest) (*GetShareQrcodeReply, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetShareQrcode not implemented")
|
|
|
|
|
+}
|
|
|
|
|
+func (UnimplementedAiServer) SetVideoLink(context.Context, *SetVideoLinkRequest) (*emptypb.Empty, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method SetVideoLink not implemented")
|
|
|
|
|
+}
|
|
|
|
|
+func (UnimplementedAiServer) ShareUserInto(context.Context, *GetAIShareMessageRequest) (*emptypb.Empty, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ShareUserInto not implemented")
|
|
|
|
|
+}
|
|
|
func (UnimplementedAiServer) mustEmbedUnimplementedAiServer() {}
|
|
func (UnimplementedAiServer) mustEmbedUnimplementedAiServer() {}
|
|
|
|
|
|
|
|
// UnsafeAiServer may be embedded to opt out of forward compatibility for this service.
|
|
// UnsafeAiServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -597,6 +645,60 @@ func _Ai_GetAIShareMessage_Handler(srv interface{}, ctx context.Context, dec fun
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Ai_GetShareQrcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(GetAIShareMessageRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(AiServer).GetShareQrcode(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/api.ai.Ai/GetShareQrcode",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(AiServer).GetShareQrcode(ctx, req.(*GetAIShareMessageRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func _Ai_SetVideoLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(SetVideoLinkRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(AiServer).SetVideoLink(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/api.ai.Ai/SetVideoLink",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(AiServer).SetVideoLink(ctx, req.(*SetVideoLinkRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func _Ai_ShareUserInto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(GetAIShareMessageRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(AiServer).ShareUserInto(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/api.ai.Ai/ShareUserInto",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(AiServer).ShareUserInto(ctx, req.(*GetAIShareMessageRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// Ai_ServiceDesc is the grpc.ServiceDesc for Ai service.
|
|
// Ai_ServiceDesc is the grpc.ServiceDesc for Ai service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -668,6 +770,18 @@ var Ai_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetAIShareMessage",
|
|
MethodName: "GetAIShareMessage",
|
|
|
Handler: _Ai_GetAIShareMessage_Handler,
|
|
Handler: _Ai_GetAIShareMessage_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "GetShareQrcode",
|
|
|
|
|
+ Handler: _Ai_GetShareQrcode_Handler,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "SetVideoLink",
|
|
|
|
|
+ Handler: _Ai_SetVideoLink_Handler,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "ShareUserInto",
|
|
|
|
|
+ Handler: _Ai_ShareUserInto_Handler,
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "ai.proto",
|
|
Metadata: "ai.proto",
|