Files
energy_dist/dist/app/common/util/im_help.d.ts
T
2026-04-21 22:34:39 +08:00

103 lines
2.9 KiB
TypeScript

export interface ResResult {
ActionStatus: 'FAIL' | 'OK';
ErrorCode: number;
ErrorInfo: string;
ErrorDisplay: string;
}
export declare class IMHelp {
static kickUser(imUid: string): Promise<ResResult>;
static updateUserProfile(imUid: string, nick: string, avatar: string): Promise<ResResult>;
static multiaccountImportUser(arr: Array<{
UserID: string;
Nick: string;
FaceUrl?: string;
}>): Promise<ResResult>;
static friendImport(imUid: string, friendImUids: Array<{
Remark?: string;
imUid: string;
}>): Promise<ResResult & {
ResultItem: Array<{
To_Account: string;
ResultCode: number;
ResultInfo: string;
}>;
Fail_Account: string[];
}>;
static createGroup(group: {
Owner_Account: string;
Type: 'Community' | 'Public';
GroupId: string;
FaceUrl: string;
Name: string;
}): Promise<ResResult & {
GroupId: string;
}>;
static getGroupInfo(GroupIdList: string[]): Promise<ResResult & {
GroupInfo: Array<{
Appid: number;
ApplyJoinOption: string;
CreateTime: number;
ErrorCode: number;
FaceUrl: string;
GroupId: string;
HistoryMsgBeforeJoin: string;
InfoSeq: number;
Introduction: string;
InviteJoinOption: string;
LastInfoTime: number;
LastMsgTime: number;
MaxMemberNum: number;
MemberList: object[];
MemberNum: number;
MuteAllMember: string;
Name: string;
NextMsgSeq: number;
Notification: "";
OnlineMemberNum: number;
Owner_Account: string;
ShutUpAllMember: string;
Type: string;
}>;
}>;
static modifyGroupBaseInfo(params: {
GroupId: string;
Name?: string;
Introduction?: string;
Notification?: string;
FaceUrl?: string;
MaxMemberNum?: number;
ApplyJoinOption?: string;
MuteAllMember?: string;
InviteJoinOption?: string;
From_Account?: string;
}): Promise<ResResult>;
static importGroupMemberExist(params: {
GroupId: string;
User_Account: string;
}): Promise<boolean>;
static importGroupMember(params: {
GroupId: string;
MemberList: Array<{
Member_Account: string;
Role?: string;
}>;
}): Promise<ResResult & {
MemberList: Array<{
Member_Account: string;
Result: 0 | 1 | 2;
}>;
}>;
static sendGroupMsg(params: {
GroupId: string;
From_Account: string;
Random: number;
MsgBody: Array<{
MsgType: 'TIMCustomElem';
MsgContent: {
Data: string;
};
}>;
}): Promise<ResResult>;
static getUrlParams(): string;
}