mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 00:10:27 +00:00
chore: reformat code style
This commit is contained in:
@@ -1,34 +1,40 @@
|
||||
import { QQLevel, Sex, User } from './user';
|
||||
import { QQLevel, Sex } from './user';
|
||||
|
||||
export interface KickMemberInfo {
|
||||
optFlag: number,
|
||||
optOperate: number,
|
||||
optMemberUid: string,
|
||||
optBytesMsg: string,
|
||||
}
|
||||
export interface KickMemberV2Req{
|
||||
|
||||
export interface KickMemberV2Req {
|
||||
groupCode: string,
|
||||
kickFlag: number,
|
||||
kickList: Array<KickMemberInfo>,
|
||||
kickListUids: Array<string>,
|
||||
kickMsg: string
|
||||
}
|
||||
|
||||
export enum DataSource {
|
||||
LOCAL,
|
||||
REMOTE
|
||||
}
|
||||
|
||||
export enum GroupListUpdateType {
|
||||
REFRESHALL,
|
||||
GETALL,
|
||||
MODIFIED,
|
||||
REMOVE
|
||||
}
|
||||
|
||||
export interface GroupMemberCache {
|
||||
group: {
|
||||
data: GroupMember[];
|
||||
isExpired: boolean;
|
||||
}
|
||||
};
|
||||
isExpired: boolean;
|
||||
}
|
||||
|
||||
export interface Group {
|
||||
groupCode: string,
|
||||
createTime?: string,//高版本才有
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { GroupMemberRole } from './group';
|
||||
import { GroupMemberRole } from '@/core';
|
||||
|
||||
export interface Peer {
|
||||
chatType: ChatType;
|
||||
@@ -145,6 +145,7 @@ export interface TaskTopMsgElement {
|
||||
iconUrl: string;
|
||||
topMsgType: number;
|
||||
}
|
||||
|
||||
export enum NTMsgType {
|
||||
KMSGTYPEARKSTRUCT = 11,
|
||||
KMSGTYPEFACEBUBBLE = 24,
|
||||
@@ -168,6 +169,7 @@ export enum NTMsgType {
|
||||
KMSGTYPEVIDEO = 7,
|
||||
KMSGTYPEWALLET = 10
|
||||
}
|
||||
|
||||
export interface SendTaskTopMsgElement {
|
||||
elementType: ElementType.TASKTOPMSG;
|
||||
elementId: string;
|
||||
@@ -355,6 +357,7 @@ export enum NTMsgAtType {
|
||||
ATTYPESUMMONROLE = 256,
|
||||
ATTYPEUNKNOWN = 0
|
||||
}
|
||||
|
||||
export interface SendPicElement {
|
||||
elementType: ElementType.PIC;
|
||||
elementId: string;
|
||||
@@ -511,6 +514,7 @@ export enum AtType {
|
||||
atAll = 1,
|
||||
atUser = 2
|
||||
}
|
||||
|
||||
// 来自Android分析
|
||||
export enum ChatType {
|
||||
KCHATTYPEADELIE = 42,
|
||||
@@ -626,6 +630,7 @@ export enum NTGrayTipElementSubTypeV2 {
|
||||
GRAYTIP_ELEMENT_SUBTYPE_WALLET = 16,
|
||||
GRAYTIP_ELEMENT_SUBTYPE_XMLMSG = 12,
|
||||
}
|
||||
|
||||
export interface GrayTipElement {
|
||||
subElementType: NTGrayTipElementSubTypeV2;
|
||||
revokeElement: {
|
||||
@@ -848,12 +853,14 @@ export interface MultiForwardMsgElement {
|
||||
resId: string;
|
||||
fileName: string;
|
||||
}
|
||||
|
||||
export enum SendStatusType {
|
||||
KSEND_STATUS_FAILED = 0,
|
||||
KSEND_STATUS_SENDING = 1,
|
||||
KSEND_STATUS_SUCCESS = 2,
|
||||
KSEND_STATUS_SUCCESS_NOSEQ = 3
|
||||
}
|
||||
|
||||
export interface RawMessage {
|
||||
parentMsgPeer: Peer;
|
||||
|
||||
@@ -923,4 +930,4 @@ export interface RawMessage {
|
||||
records: RawMessage[];
|
||||
|
||||
elements: MessageElement[];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export enum GroupNotifyMsgType {
|
||||
TRANSFER_GROUP_NOTIFY_OLDOWNER,
|
||||
TRANSFER_GROUP_NOTIFY_ADMIN
|
||||
}
|
||||
|
||||
export interface GroupNotifies {
|
||||
doubt: boolean;
|
||||
nextStartSeq: string;
|
||||
@@ -29,17 +30,20 @@ export enum GroupNotifyMsgStatus {
|
||||
KREFUSED,//拒绝
|
||||
KIGNORED//忽略
|
||||
}
|
||||
|
||||
export enum GroupInviteStatus {
|
||||
INIT,
|
||||
WAIT_TO_APPROVE,
|
||||
JOINED,
|
||||
REFUSED_BY_ADMINI_STRATOR
|
||||
}
|
||||
|
||||
export enum GroupInviteType {
|
||||
BYBUDDY,
|
||||
BYGROUPMEMBER,
|
||||
BYDISCUSSMEMBER
|
||||
}
|
||||
|
||||
export interface GroupNotify {
|
||||
seq: string; // 通知序列号
|
||||
type: GroupNotifyMsgType;
|
||||
|
||||
Reference in New Issue
Block a user