Przeglądaj źródła

GetWindowInfoRequest

wfz 3 lat temu
rodzic
commit
a87c3f3949
4 zmienionych plików z 452 dodań i 367 usunięć
  1. 431 360
      api/chat/chat.pb.go
  2. 7 1
      api/chat/chat.proto
  3. 6 6
      api/chat/chat_grpc.pb.go
  4. 8 0
      js/api/chat/chat_pb.ts

Plik diff jest za duży
+ 431 - 360
api/chat/chat.pb.go


+ 7 - 1
api/chat/chat.proto

@@ -56,7 +56,13 @@ service Chat {
   // 回复小纸条
   rpc PersonReplyScrip (common.ReplyScripRequest) returns (common.ChatRecordInfo){};
   // 获取假弹窗
-  rpc GetWindowInfo (common.PersonParam) returns (chat.WindowInfo){};
+  rpc GetWindowInfo (GetWindowInfoRequest) returns (chat.WindowInfo){};
+}
+
+message GetWindowInfoRequest{
+  string personId = 1; // 查询目标的ID
+  string personType = 2; // 类型
+  string identifyId = 3; // 身份ID
 }
 
 message FindNotReplyNumReply{

+ 6 - 6
api/chat/chat_grpc.pb.go

@@ -64,7 +64,7 @@ type ChatClient interface {
 	// 回复小纸条
 	PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error)
 	// 获取假弹窗
-	GetWindowInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*WindowInfo, error)
+	GetWindowInfo(ctx context.Context, in *GetWindowInfoRequest, opts ...grpc.CallOption) (*WindowInfo, error)
 }
 
 type chatClient struct {
@@ -273,7 +273,7 @@ func (c *chatClient) PersonReplyScrip(ctx context.Context, in *common.ReplyScrip
 	return out, nil
 }
 
-func (c *chatClient) GetWindowInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*WindowInfo, error) {
+func (c *chatClient) GetWindowInfo(ctx context.Context, in *GetWindowInfoRequest, opts ...grpc.CallOption) (*WindowInfo, error) {
 	out := new(WindowInfo)
 	err := c.cc.Invoke(ctx, "/api.chat.Chat/GetWindowInfo", in, out, opts...)
 	if err != nil {
@@ -330,7 +330,7 @@ type ChatServer interface {
 	// 回复小纸条
 	PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error)
 	// 获取假弹窗
-	GetWindowInfo(context.Context, *common.PersonParam) (*WindowInfo, error)
+	GetWindowInfo(context.Context, *GetWindowInfoRequest) (*WindowInfo, error)
 	mustEmbedUnimplementedChatServer()
 }
 
@@ -404,7 +404,7 @@ func (UnimplementedChatServer) PersonClickLookBack(context.Context, *common.Pers
 func (UnimplementedChatServer) PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method PersonReplyScrip not implemented")
 }
-func (UnimplementedChatServer) GetWindowInfo(context.Context, *common.PersonParam) (*WindowInfo, error) {
+func (UnimplementedChatServer) GetWindowInfo(context.Context, *GetWindowInfoRequest) (*WindowInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetWindowInfo not implemented")
 }
 func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
@@ -817,7 +817,7 @@ func _Chat_PersonReplyScrip_Handler(srv interface{}, ctx context.Context, dec fu
 }
 
 func _Chat_GetWindowInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(common.PersonParam)
+	in := new(GetWindowInfoRequest)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -829,7 +829,7 @@ func _Chat_GetWindowInfo_Handler(srv interface{}, ctx context.Context, dec func(
 		FullMethod: "/api.chat.Chat/GetWindowInfo",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(ChatServer).GetWindowInfo(ctx, req.(*common.PersonParam))
+		return srv.(ChatServer).GetWindowInfo(ctx, req.(*GetWindowInfoRequest))
 	}
 	return interceptor(ctx, in, info, handler)
 }

+ 8 - 0
js/api/chat/chat_pb.ts

@@ -1,3 +1,11 @@
+export interface GetWindowInfoRequest{
+    /**  查询目标的ID */
+    personId?:string;
+    /**  类型 */
+    personType?:string;
+    /**  身份ID */
+    identifyId?:string;
+}
 export interface FindNotReplyNumReply{
     /**  未接待人数 */
     personNum?:number;

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików