
export interface Message {
    id?: number;
    senderId?: number;
    receiverId?: number;
    content: string;
    type: number;
    translatedContent?: string;
    language?: any;
    translationLanguage?: any;
    isRead?: any;
    isRetracted?: any;
    customerId?: number;
    username?: string;
    lastMessage?: string;
    createTime?: number;
    cid?:string;
    status?: number;
  }
export interface MessagesWithTotal {
    total?: number;
    isGroupMessage?: boolean;
    fromId?: string;
    messages?: Message;
}

interface Tag {
    tagName: string;
    textColor: string;
    bgColor: string;
    createTime: number;
    id: number;
}

export interface TagRelation {
  id : number
  tagName: string,
  memberId: number,
  username?: string,
  tagId: number
}

interface UserInfo {
  id?: number;
  username?: string;
  userType?: number;
  remark?: string; 
  countryCode?: string;
  invitationCode?: string;
  memberLevel?: number;
  sex?: string; 
  avatar?: string;
  status?: number;
  loginIp?: string;
  loginDate?: number;
  onlineStatus?: number;
  tagList?: TagRelation[];
  lastMessage?: string;
  lastMessageType?: number;
  hasNewMessage?: boolean;
  memberRemark?: MemberRemark;
  unreadCount?: number
}
export interface MemberRemark {
  memberId: number;
  nickName: string;
  remark: string;
}