|
|
@@ -43,6 +43,8 @@ type AiClient interface {
|
|
|
CreateAdditionalService(ctx context.Context, in *CreateAdditionalServiceRequest, opts ...grpc.CallOption) (*CreateAdditionalServiceReply, error)
|
|
|
// 更新额外服务
|
|
|
UpdateAdditionalService(ctx context.Context, in *UpdateAdditionalServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
+ // 查询用户的ai信息
|
|
|
+ FindUserAIMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindUserAIMessageReply, error)
|
|
|
// 定时执行服务
|
|
|
CronAdditionalService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 用户已读
|
|
|
@@ -165,6 +167,15 @@ func (c *aiClient) UpdateAdditionalService(ctx context.Context, in *UpdateAdditi
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *aiClient) FindUserAIMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindUserAIMessageReply, error) {
|
|
|
+ out := new(FindUserAIMessageReply)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.ai.Ai/FindUserAIMessage", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
func (c *aiClient) CronAdditionalService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.ai.Ai/CronAdditionalService", in, out, opts...)
|
|
|
@@ -211,6 +222,8 @@ type AiServer interface {
|
|
|
CreateAdditionalService(context.Context, *CreateAdditionalServiceRequest) (*CreateAdditionalServiceReply, error)
|
|
|
// 更新额外服务
|
|
|
UpdateAdditionalService(context.Context, *UpdateAdditionalServiceRequest) (*emptypb.Empty, error)
|
|
|
+ // 查询用户的ai信息
|
|
|
+ FindUserAIMessage(context.Context, *emptypb.Empty) (*FindUserAIMessageReply, error)
|
|
|
// 定时执行服务
|
|
|
CronAdditionalService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
|
|
// 用户已读
|
|
|
@@ -258,6 +271,9 @@ func (UnimplementedAiServer) CreateAdditionalService(context.Context, *CreateAdd
|
|
|
func (UnimplementedAiServer) UpdateAdditionalService(context.Context, *UpdateAdditionalServiceRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateAdditionalService not implemented")
|
|
|
}
|
|
|
+func (UnimplementedAiServer) FindUserAIMessage(context.Context, *emptypb.Empty) (*FindUserAIMessageReply, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method FindUserAIMessage not implemented")
|
|
|
+}
|
|
|
func (UnimplementedAiServer) CronAdditionalService(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CronAdditionalService not implemented")
|
|
|
}
|
|
|
@@ -493,6 +509,24 @@ func _Ai_UpdateAdditionalService_Handler(srv interface{}, ctx context.Context, d
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Ai_FindUserAIMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(emptypb.Empty)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(AiServer).FindUserAIMessage(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.ai.Ai/FindUserAIMessage",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(AiServer).FindUserAIMessage(ctx, req.(*emptypb.Empty))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
func _Ai_CronAdditionalService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(emptypb.Empty)
|
|
|
if err := dec(in); err != nil {
|
|
|
@@ -584,6 +618,10 @@ var Ai_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "UpdateAdditionalService",
|
|
|
Handler: _Ai_UpdateAdditionalService_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "FindUserAIMessage",
|
|
|
+ Handler: _Ai_FindUserAIMessage_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "CronAdditionalService",
|
|
|
Handler: _Ai_CronAdditionalService_Handler,
|