github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/pb/message/notify.proto (about)

     1  syntax = "proto3";
     2  
     3  option go_package = "github.com/LagrangeDev/LagrangeGo/client/packets/pb/message";
     4  
     5  message FriendRecall {
     6    FriendRecallInfo Info = 1;
     7    uint32 InstId = 2;
     8    uint32 AppId = 3;
     9    uint32 LongMessageFlag = 4;
    10    bytes Reserved = 5;
    11  }
    12  
    13  message FriendRecallInfo {
    14    string FromUid = 1;
    15    string ToUid = 2;
    16    uint32 Sequence = 3;
    17    uint64 NewId = 4;
    18    uint32 Time = 5;
    19    uint32 Random = 6;
    20    uint32 PkgNum = 7;
    21    uint32 PkgIndex = 8;
    22    uint32 DivSeq = 9;
    23  }
    24  
    25  message FriendRequest {
    26    optional FriendRequestInfo Info = 1;
    27  }
    28  
    29  message FriendRequestInfo {
    30    string TargetUid = 1;
    31    string SourceUid = 2;
    32    string Message = 10;
    33    string Source = 11;
    34  }
    35  
    36  message GroupAdmin {
    37    uint32 GroupUin = 1;
    38    uint32 Flag = 2;
    39    bool IsPromote = 3;
    40    GroupAdminBody Body = 4;
    41  }
    42  
    43  message GroupAdminBody {
    44    optional GroupAdminExtra ExtraDisable = 1;
    45    optional GroupAdminExtra ExtraEnable = 2;
    46  }
    47  
    48  message GroupAdminExtra {
    49    string AdminUid = 1;
    50    bool IsPromote = 2;
    51  }
    52  
    53  message GroupChange {
    54    uint32 GroupUin = 1;
    55    uint32 Flag = 2;
    56    string MemberUid = 3;
    57    uint32 DecreaseType = 4;
    58    optional bytes Operator = 5;
    59    uint32 IncreaseType = 6;
    60    optional bytes Field7 = 7;
    61  }
    62  
    63  message OperatorInfo {
    64    OperatorField1 OperatorField1 = 1;
    65  }
    66  
    67  message OperatorField1 {
    68    string OperatorUid = 1;
    69    uint32 Field2 = 2;
    70    bytes Field3 = 3;
    71    uint32 Field4 = 4;
    72    bytes Field5 = 5;
    73  }
    74  
    75  message GroupInvitation {
    76    int32 Cmd = 1;
    77    InvitationInfo Info = 2;
    78  }
    79  
    80  message InvitationInfo {
    81    InvitationInner Inner = 1;
    82  }
    83  
    84  message InvitationInner {
    85    uint32 GroupUin = 1;
    86    uint32 Field2 = 2;
    87    uint32 Field3 = 3;
    88    uint32 Field4 = 4;
    89    string TargetUid = 5;
    90    string InvitorUid = 6;
    91    uint32 Field7 = 7;
    92    uint32 Field9 = 9;
    93    bytes Field10 = 10;
    94    uint32 Field11 = 11;
    95    string Field12 = 12;
    96  }
    97  
    98  message GroupInvite {
    99    uint32 GroupUin = 1;
   100    uint32 Field2 = 2; // 1
   101    uint32 Field3 = 3; // 4
   102    uint32 Field4 = 4; // 0
   103    string InvitorUid = 5;
   104    bytes Hashes = 6;
   105  }
   106  
   107  message GroupJoin {
   108    uint32 GroupUin = 1;
   109    uint32 Field2 = 2;
   110    string TargetUid = 3;
   111    uint32 Field4 = 4;
   112    optional string RequestField = 5;
   113    uint32 Field6 = 6;
   114    string Field7 = 7;
   115    uint32 Field8 = 8;
   116    bytes Field9 = 9;
   117  }
   118  
   119  message GroupMute {
   120    uint32 GroupUin = 1;
   121    uint32 SubType = 2;
   122    uint32 Field3 = 3;
   123    optional string OperatorUid = 4;
   124    GroupMuteData Data = 5;
   125  }
   126  
   127  message GroupMuteData {
   128    uint32 Timestamp = 1;
   129    uint32 Type = 2;
   130    GroupMuteState State = 3;
   131  }
   132  
   133  message GroupMuteState {
   134    optional string TargetUid = 1;
   135    uint32 Duration = 2; // uint.MaxValue = Mute else Lift
   136  }
   137  
   138  message GroupRecall {
   139    optional string OperatorUid = 1;
   140    repeated RecallMessage RecallMessages = 3;
   141    bytes UserDef = 5;
   142    int32 GroupType = 6;
   143    int32 OpType = 7;
   144  }
   145  
   146  message RecallMessage {
   147    uint64 Sequence = 1;
   148    uint32 Time = 2;
   149    uint32 Random = 3;
   150    uint32 Type = 4;
   151    uint32 Flag = 5;
   152    string AuthorUid = 6;
   153  }
   154  
   155  message NotifyMessageBody {
   156    uint32 Type = 1;
   157    uint32 GroupUin = 4;
   158    GroupRecall Recall = 11;
   159  }