mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: NTGroupMemberRole
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
GeneralCallResult,
|
||||
Group,
|
||||
GroupMember,
|
||||
GroupMemberRole,
|
||||
NTGroupMemberRole,
|
||||
GroupRequestOperateTypes,
|
||||
InstanceContext,
|
||||
KickMemberV2Req,
|
||||
@@ -457,7 +457,7 @@ export class NTQQGroupApi {
|
||||
return this.context.session.getGroupService().modifyMemberCardName(groupQQ, memberUid, cardName);
|
||||
}
|
||||
|
||||
async setMemberRole(groupQQ: string, memberUid: string, role: GroupMemberRole) {
|
||||
async setMemberRole(groupQQ: string, memberUid: string, role: NTGroupMemberRole) {
|
||||
return this.context.session.getGroupService().modifyMemberRole(groupQQ, memberUid, role);
|
||||
}
|
||||
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
export interface FSABRecentContactParams {
|
||||
anchorPointContact: {
|
||||
contactId: string;
|
||||
|
@@ -113,14 +113,13 @@ export interface Group {
|
||||
memberUid: string;
|
||||
};
|
||||
}
|
||||
|
||||
// 群成员角色类型
|
||||
export enum GroupMemberRole {
|
||||
normal = 2,
|
||||
admin = 3,
|
||||
owner = 4
|
||||
export enum NTGroupMemberRole {
|
||||
KUNSPECIFIED = 0,
|
||||
KSTRANGER = 1,
|
||||
KMEMBER = 2,
|
||||
KADMIN = 3,
|
||||
KOWNER = 4
|
||||
}
|
||||
|
||||
export interface GroupMember {
|
||||
memberRealLevel: number | undefined;
|
||||
memberSpecialTitle?: string;
|
||||
@@ -131,7 +130,7 @@ export interface GroupMember {
|
||||
nick: string;
|
||||
qid: string;
|
||||
remark: string;
|
||||
role: GroupMemberRole;
|
||||
role: NTGroupMemberRole;
|
||||
shutUpTime: number; // 禁言时间(S)
|
||||
uid: string;
|
||||
uin: string;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { GroupMemberRole } from '@/core';
|
||||
import { NTGroupMemberRole } from '@/core';
|
||||
import { ActionBarElement, ArkElement, AvRecordElement, CalendarElement, FaceBubbleElement, FaceElement, FileElement, GiphyElement, GrayTipElement, MarketFaceElement, PicElement, PttElement, RecommendedMsgElement, ReplyElement, ShareLocationElement, StructLongMsgElement, TaskTopMsgElement, TextElement, TofuRecordElement, VideoElement, YoloGameResultElement } from './element';
|
||||
|
||||
/**
|
||||
@@ -420,13 +420,13 @@ export interface TipGroupElement {
|
||||
uid: string;
|
||||
card: string;
|
||||
name: string;
|
||||
role: GroupMemberRole
|
||||
role: NTGroupMemberRole
|
||||
};
|
||||
member: {
|
||||
uid: string
|
||||
card: string;
|
||||
name: string;
|
||||
role: GroupMemberRole
|
||||
role: NTGroupMemberRole
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@@ -135,7 +135,7 @@ export interface FriendRequest {
|
||||
isDecide: boolean;
|
||||
friendUid: string;
|
||||
reqType: BuddyReqType,
|
||||
reqTime: string; // 时间戳;秒
|
||||
reqTime: string; // 时间戳 秒
|
||||
extWords: string; // 申请人填写的验证消息
|
||||
isUnread: boolean;
|
||||
friendNick: string;
|
||||
|
Reference in New Issue
Block a user