import './global.less'
import { businessPlanData, GENDER_TYPE } from "../../page/businessPlan/create/const"

const targetingData = [
    { key: 'msgTagIds', name: '智能标签' },
    { key: 'msgExcludeTagIds', name: '排除智能标签' },
    { key: 'platformKey', name: '书城' },
    { key: 'sysExternalExcludeTagNames', name: '排除标签' },
    { key: 'lastBookNameList', name: '最近阅读书籍' },
    { key: 'lastChapterNameList', name: '最近阅读章节' },
    { key: 'platformUserId', name: '书城用户ID' },
    { key: 'rechargeBook', name: '充值小说' },
    { key: 'allCorp', name: '是否查询所有公司' },
    { key: 'begin', name: '关注时间' },
    { key: 'genders', name: '性别' },
    { key: 'rechargeCount', name: '充值次数' },
    { key: 'rechargeMoney', name: '充值金额' },
    { key: 'lastRechargeTime', name: '最后充值时间' },
    { key: 'firstRechargeMoney', name: '首充金额' },
    { key: 'rechargeMoneyMax', name: '单笔最大充值金额' },
    { key: 'subHour', name: '关注距今时间' },
    { key: 'subDay', name: '关注距今天' },
    { key: 'lastRechargeHour', name: '最近充值时间距今（小时）' },
    { key: 'lastReadTime', name: '最近阅读时间' },
    { key: 'lastReadHour', name: '最近阅读至今（小时）' },
    { key: 'opers', name: '手机系统' },
    { key: 'firstAddGroupTime', name: '首次拉群时间' },
    { key: 'lastAddGroupTime', name: '最近拉群时间' },
    { key: 'lastExitTime', name: '最近退群时间' },
    { key: 'firstAddGroupHourRange', name: '首次拉群(最近N小时)' },
    { key: 'lastAddGroupHourRange', name: '最近拉群(最近N小时)' },
    { key: 'lastExitHourRange', name: '最近退群(最近N小时)' },
    { key: 'addGroupCount', name: '进群次数' },
    { key: 'exitGroupCount', name: '退群次数' },
    { key: 'retentionGroupCount', name: '留存群聊数' },
    { key: 'repeatRang', name: '重粉范围' },
    { key: 'repeatOperateType', name: '重粉操作类型' },
    { key: 'corpIdCount', name: '添加主体数' },
    { key: 'corpUserIdCount', name: '添加客服数' },
    { key: 'groupRepeatRang', name: '群重名过滤范围' },
    { key: 'groupOperateType', name: '群重名操作类型' },
    { key: 'groupNameList', name: '群名称列表' },
]

const targetingGroupData = [
    { key: 'groupChatNames', name: '群名称列表' },
    { key: 'groupChatTime', name: '群创建时间' },
    { key: 'groupChatHour', name: '群创建时长' },
    { key: 'groupChatUser', name: '群人数' }
]

interface ContentProps {
    unlimited?: string,         // 不限
    msgTagIds?: { [x: string]: string }[], // 智能标签
    msgExcludeTagIds?: { [x: string]: string }[], // 排除智能标签
    platformKey?: string,   // 书城
    sysExternalExcludeTagNames?: string[],   // 书城
    lastBookNameList?: string[],
    lastChapterNameList?: string[],
    platformUserId?: string,// 书城用户ID
    rechargeBook?: string,  // 充值小说
    allCorp?: boolean,  // 是否查询所有公司
    begin?: {               // 关注时间
        beginTime?: string,
        endTime?: string
    },
    genders?: string[],     // 性别
    rechargeCount?: {       // 充值次数
        rechargeCountMin?: number,
        rechargeCountMax?: number
    },
    rechargeMoney?: {       // 充值金额
        rechargeMoneyMin?: number
        rechargeMoneyMax?: number
    },
    lastRechargeTime?: {        // 最后充值时间
        lastRechargeTimeMin?: string,
        lastRechargeTimeMax?: string
    },
    firstRechargeMoney?: { // 首充金额
        firstRechargeMoneyMin?: number,
        firstRechargeMoneyMax?: number
    },
    rechargeMoneyMax?: {  // 单笔最大充值金额
        rechargeMoneyMaxMin?: number,
        rechargeMoneyMaxMax?: number
    },
    subHour?: {          // 关注距今时间
        subHourMin?: number,
        subHourMax?: number
    },
    subDay?: {          // 关注距今天
        subDayMin?: number
        subDayMax?: number
    },
    lastRechargeHour?: {          // 充值距今
        lastRechargeHourMin?: number
        lastRechargeHourMax?: number
    },
    lastReadTime?: {        // 最近阅读时间
        lastReadTimeMin?: string,
        lastReadTimeMax?: string
    },
    lastReadHour?: {          // 充值距今
        lastReadHourMin?: number
        lastReadHourMax?: number
    },
    opers?: string[]   // 手机系统
    // 群
    groupChatNames?: string,
    groupChatTime?: {
        groupChatBeginTime?: string,
        groupChatEndTime?: string
    }
    groupChatHour?: {
        groupChatHourMin?: number,
        groupChatHourMax?: number
    }
    groupChatUser?: {
        groupChatUserMin?: number,
        groupChatUserMax?: number
    }
    firstAddGroupTime?: { // 首次拉群时间
        firstAddGroupTimeMin?: string,
        firstAddGroupTimeMax?: string
    }
    lastAddGroupTime?: { // 最近拉群时间
        lastAddGroupTimeMin?: string,
        lastAddGroupTimeMax?: string
    }
    lastExitTime?: { // 最近退群时间
        lastExitTimeMin?: string,
        lastExitTimeMax?: string
    }
    firstAddGroupHourRange?: { // 首次拉群(最近N小时)
        firstAddGroupHourRangeMin?: string,
        firstAddGroupHourRangeMax?: string
    }
    lastAddGroupHourRange?: { // 最近拉群(最近N小时)
        lastAddGroupHourRangeMin?: string,
        lastAddGroupHourRangeMax?: string
    }
    lastExitHourRange?: { // 最近退群(最近N小时)
        lastExitHourRangeMin?: string,
        lastExitHourRangeMax?: string
    }
    addGroupCount?: { // 进群次数
        addGroupCountMin?: string,
        addGroupCountMax?: string
    }
    exitGroupCount?: { // 退群次数
        exitGroupCountMin?: string,
        exitGroupCountMax?: string
    }
    retentionGroupCount?: { // 留存群聊数
        retentionGroupCountMin?: string,
        retentionGroupCountMax?: string
    },
    repeatRang?: Record<string, string>,
    repeatOperateType?: 0 | 1,
    corpIdCount?: {
        minCorpIdCount?: number,
        maxCorpIdCount?: number
    },
    corpUserIdCount?: {
        minCorpUserIdCount?: number,
        maxCorpUserIdCount?: number
    },
    groupRepeatRang?: Record<string, string>,
    groupOperateType?: 0 | 1,
    groupNameList?: string[],
}

/** 重置筛选用户数据 */
export const resetFilterUserData = (data: { [x: string]: any }): ContentProps => {
    const {
        beginTime, endTime, rechargeCountMin, rechargeCountMax, rechargeMoneyMin, rechargeMoneyMax, lastRechargeTimeMin, lastRechargeTimeMax,
        firstRechargeMoneyMin, firstRechargeMoneyMax, rechargeMoneyMaxMin, rechargeMoneyMaxMax, subHourMin, subHourMax, subDayMin, subDayMax,
        lastRechargeHourMin, lastRechargeHourMax, lastReadHourMin, lastReadHourMax, groupChatNames, groupChatBeginTime, groupChatEndTime, groupChatHourMin, groupChatHourMax,
        groupChatUserMin, groupChatUserMax, lastReadTimeMin, lastReadTimeMax, firstAddGroupTimeMin, firstAddGroupTimeMax,
        lastAddGroupTimeMin, lastAddGroupTimeMax, lastExitTimeMin, lastExitTimeMax, firstAddGroupHourRangeMin, firstAddGroupHourRangeMax,
        lastAddGroupHourRangeMin, lastAddGroupHourRangeMax, lastExitHourRangeMin, lastExitHourRangeMax, addGroupCountMin, addGroupCountMax,
        exitGroupCountMin, exitGroupCountMax, retentionGroupCountMin, retentionGroupCountMax, minCorpIdCount, maxCorpIdCount, minCorpUserIdCount, maxCorpUserIdCount,
        ...params
    } = data

    const newData: ContentProps = { ...params }
    if (beginTime || endTime) {
        newData.begin = { beginTime, endTime }
    }
    if (rechargeCountMin || rechargeCountMax) {
        newData.rechargeCount = { rechargeCountMin, rechargeCountMax }
    }
    if (rechargeMoneyMin || rechargeMoneyMax) {
        newData.rechargeMoney = { rechargeMoneyMin, rechargeMoneyMax }
    }
    if (lastRechargeTimeMin || lastRechargeTimeMax) {
        newData.lastRechargeTime = { lastRechargeTimeMin, lastRechargeTimeMax }
    }
    if (lastReadTimeMin || lastReadTimeMax) {
        newData.lastReadTime = { lastReadTimeMin, lastReadTimeMax }
    }
    if (firstRechargeMoneyMin || firstRechargeMoneyMax) {
        newData.firstRechargeMoney = { firstRechargeMoneyMin, firstRechargeMoneyMax }
    }
    if (rechargeMoneyMaxMin || rechargeMoneyMaxMax) {
        newData.rechargeMoneyMax = { rechargeMoneyMaxMin, rechargeMoneyMaxMax }
    }
    if (subHourMin || subHourMax) {
        newData.subHour = { subHourMin, subHourMax }
    }
    if (subDayMin || subDayMax) {
        newData.subDay = { subDayMin, subDayMax }
    }
    if (lastRechargeHourMin || lastRechargeHourMax) {
        newData.lastRechargeHour = { lastRechargeHourMin, lastRechargeHourMax }
    }
    if (lastReadHourMin || lastReadHourMax) {
        newData.lastReadHour = { lastReadHourMin, lastReadHourMax }
    }
    if (groupChatNames?.length) {
        newData.groupChatNames = groupChatNames.join('、')
    }
    if (groupChatBeginTime && groupChatEndTime) {
        newData.groupChatTime = { groupChatBeginTime, groupChatEndTime }
    }
    if (groupChatHourMin || groupChatHourMax) {
        newData.groupChatHour = { groupChatHourMin, groupChatHourMax }
    }
    if (groupChatUserMin || groupChatUserMax) {
        newData.groupChatUser = { groupChatUserMin, groupChatUserMax }
    }
    if (firstAddGroupTimeMin || firstAddGroupTimeMax) {
        newData.firstAddGroupTime = { firstAddGroupTimeMin, firstAddGroupTimeMax }
    }
    if (lastAddGroupTimeMin || lastAddGroupTimeMax) {
        newData.lastAddGroupTime = { lastAddGroupTimeMin, lastAddGroupTimeMax }
    }
    if (lastExitTimeMin || lastExitTimeMax) {
        newData.lastExitTime = { lastExitTimeMin, lastExitTimeMax }
    }
    if (firstAddGroupHourRangeMin || firstAddGroupHourRangeMax) {
        newData.firstAddGroupHourRange = { firstAddGroupHourRangeMin, firstAddGroupHourRangeMax }
    }
    if (lastAddGroupHourRangeMin || lastAddGroupHourRangeMax) {
        newData.lastAddGroupHourRange = { lastAddGroupHourRangeMin, lastAddGroupHourRangeMax }
    }
    if (lastExitHourRangeMin || lastExitHourRangeMax) {
        newData.lastExitHourRange = { lastExitHourRangeMin, lastExitHourRangeMax }
    }
    if (addGroupCountMin || addGroupCountMax) {
        newData.addGroupCount = { addGroupCountMin, addGroupCountMax }
    }
    if (exitGroupCountMin || exitGroupCountMax) {
        newData.exitGroupCount = { exitGroupCountMin, exitGroupCountMax }
    }
    if (retentionGroupCountMin || retentionGroupCountMax) {
        newData.retentionGroupCount = { retentionGroupCountMin, retentionGroupCountMax }
    }
    if (minCorpIdCount || minCorpIdCount === 0 || maxCorpIdCount || maxCorpIdCount === 0) {
        newData.corpIdCount = { minCorpIdCount, maxCorpIdCount }
    }
    if (minCorpUserIdCount || maxCorpUserIdCount || minCorpUserIdCount  === 0 || maxCorpUserIdCount === 0) {
        newData.corpUserIdCount = { minCorpUserIdCount, maxCorpUserIdCount }
    }
    return newData
}

const getContent = (data: any, configType: BUSINES_SPLAN_API.ConfigTypeProps) => {
    const currentTargetingData = configType === 'GROUP_GROUP' ? targetingGroupData : targetingData
    if (data) {
        const newData = resetFilterUserData(data)
        let newConten: ContentProps = newData
        newConten.unlimited = currentTargetingData.filter((item: any) => !Object.keys(newData).includes(item.key))?.map((item: any) => item?.name)?.toString()
        return newConten
    } else {
        return { unlimited: currentTargetingData?.map((item: any) => item?.name)?.toString() }
    }
}

interface Props {
    data: any,
    bookCityList: { label: string, value: string }[]
    configName?: string
    bookPlatForm?: { platformName: string, id: number, platformKey: string }[]
    bookList?: { id: number, bookName: string, platformId: number }[]
    configType?: BUSINES_SPLAN_API.ConfigTypeProps
}
/**
 * 定向处理展示
 * @returns 
 */
const FilterUserText = ({ data, configName, configType = 'USER_GROUP', bookCityList, bookPlatForm, bookList }: Props): string => {


    const content: ContentProps = getContent(data, configType)

    return (configName ? configName + '\n' : '') +
        (content?.msgTagIds ? `智能标签：${content?.msgTagIds?.['business'] ? `业务：${businessPlanData.find(i => i.value === content?.msgTagIds['business'])?.label}` : ''}--${content?.msgTagIds?.['bookCity'] ? `书城：${bookPlatForm.find(i => i.id === content?.msgTagIds['bookCity'])?.platformName}` : ''}--${content?.msgTagIds?.['product'] ? `产品：${bookList.find(i => i.id === content?.msgTagIds['product'])?.bookName}\n` : ''}` : '') +
        (content?.msgExcludeTagIds ? `排除智能标签：${content?.msgExcludeTagIds?.['business'] ? `业务：${businessPlanData.find(i => i.value === content?.msgExcludeTagIds['business'])?.label}` : ''}--${content?.msgExcludeTagIds?.['bookCity'] ? `书城：${bookPlatForm.find(i => i.id === content?.msgExcludeTagIds['bookCity'])?.platformName}` : ''}--${content?.msgExcludeTagIds?.['product'] ? `产品：${bookList.find(i => i.id === content?.msgExcludeTagIds['product'])?.bookName}\n` : ''}` : '') +
        (content?.sysExternalExcludeTagNames ? `排除标签：${content?.sysExternalExcludeTagNames.join('、') || '--'}\n` : '') +
        (content?.platformKey ? `书城：${bookCityList?.find(item => item.value === content?.platformKey)?.label || '--'}\n` : '') +
        (content?.lastBookNameList ? `最近阅读书籍：${content?.lastBookNameList?.join('、') || '--'}\n` : '') +
        (content?.lastChapterNameList ? `最近阅读章节：${content?.lastChapterNameList?.join('、') || '--'}\n` : '') +
        (content?.platformUserId ? `书城用户ID：${content?.platformUserId}\n` : '') +
        (content?.rechargeBook ? `充值小说：${content?.rechargeBook}\n` : '') +
        (content?.begin ? `关注时间：${content?.begin?.beginTime ? content?.begin?.beginTime : '不限'} - ${content?.begin?.endTime ? content?.begin?.endTime : '不限'}\n` : '') +
        (content?.genders?.length > 0 ? `性别：${content?.genders.map(g => GENDER_TYPE[g]).join('、')}\n` : '') +
        (content?.rechargeCount ? `充值次数：${content?.rechargeCount?.rechargeCountMin ? content?.rechargeCount?.rechargeCountMin : '不限'} - ${content?.rechargeCount?.rechargeCountMax ? content?.rechargeCount?.rechargeCountMax : '不限'}\n` : '') +
        (content?.rechargeMoney ? `充值金额：${content?.rechargeMoney?.rechargeMoneyMin ? content?.rechargeMoney?.rechargeMoneyMin : '不限'} - ${content?.rechargeMoney?.rechargeMoneyMax ? content?.rechargeMoney?.rechargeMoneyMax : '不限'}\n` : '') +
        (content?.lastRechargeTime ? `最后充值时间：${content?.lastRechargeTime?.lastRechargeTimeMin ? content?.lastRechargeTime?.lastRechargeTimeMin : '不限'} - ${content?.lastRechargeTime?.lastRechargeTimeMax ? content?.lastRechargeTime?.lastRechargeTimeMax : '不限'}\n` : '') +
        (content?.firstRechargeMoney ? `首充金额：${content?.firstRechargeMoney?.firstRechargeMoneyMin ? content?.firstRechargeMoney?.firstRechargeMoneyMin : '不限'} - ${content?.firstRechargeMoney?.firstRechargeMoneyMax ? content?.firstRechargeMoney?.firstRechargeMoneyMax : '不限'}\n` : '') +
        (content?.rechargeMoneyMax ? `单笔最大充值金额：${content?.rechargeMoneyMax?.rechargeMoneyMaxMin ? content?.rechargeMoneyMax?.rechargeMoneyMaxMin : '不限'} - ${content?.rechargeMoneyMax?.rechargeMoneyMaxMax ? content?.rechargeMoneyMax?.rechargeMoneyMaxMax : '不限'}\n` : '') +
        (content?.subHour ? `关注距今时间：${content?.subHour?.subHourMin ? content?.subHour?.subHourMin + '小时' : '不限'} - ${content?.subHour?.subHourMax ? content?.subHour?.subHourMax + '小时' : '不限'}\n` : '') +
        (content?.subDay ? `关注距今天：${content?.subDay?.subDayMin ? content?.subDay?.subDayMin + '天' : '不限'} - ${content?.subDay?.subDayMax ? content?.subDay?.subDayMax + '天' : '不限'}\n` : '') +
        (content?.lastRechargeHour ? `最近一次充值距今：${content?.lastRechargeHour?.lastRechargeHourMin ? content?.lastRechargeHour?.lastRechargeHourMin + '小时' : '不限'} - ${content?.lastRechargeHour?.lastRechargeHourMax ? content?.lastRechargeHour?.lastRechargeHourMax + '小时' : '不限'}\n` : '') +
        (content?.lastReadTime ? `最近阅读时间：${content?.lastReadTime?.lastReadTimeMin ? content?.lastReadTime?.lastReadTimeMin : '不限'} - ${content?.lastReadTime?.lastReadTimeMax ? content?.lastReadTime?.lastReadTimeMax : '不限'}\n` : '') +
        (content?.lastRechargeHour ? `最近阅读至今：${content?.lastReadHour?.lastReadHourMin ? content?.lastReadHour?.lastReadHourMin + '小时' : '不限'} - ${content?.lastReadHour?.lastReadHourMax ? content?.lastReadHour?.lastReadHourMax + '小时' : '不限'}\n` : '') +
        (content?.opers?.length > 0 ? `手机系统：${content?.opers.map(g => ({ '0': '未知', '1': '安卓', '2': 'IOS' } as any)[g]).join('、')}\n` : '') +
        (content?.groupChatNames ? `群名称列表：${content?.groupChatNames?.toString()}` : '') +
        (content?.groupChatTime ? `群创建时间：${content?.groupChatTime?.groupChatBeginTime ? content?.groupChatTime?.groupChatBeginTime + '小时' : '不限'} - ${content?.groupChatTime?.groupChatEndTime ? content?.groupChatTime?.groupChatEndTime + '小时' : '不限'}\n` : '') +
        (content?.groupChatHour ? `群创建时长：${content?.groupChatHour?.groupChatHourMin ? content?.groupChatHour?.groupChatHourMin : '不限'} - ${content?.groupChatHour?.groupChatHourMax ? content?.groupChatHour?.groupChatHourMax : '不限'}\n` : '') +
        (content?.groupChatUser ? `群人数：${content?.groupChatUser?.groupChatUserMin ? content?.groupChatUser?.groupChatUserMin : '不限'} - ${content?.groupChatUser?.groupChatUserMax ? content?.groupChatUser?.groupChatUserMax : '不限'}\n` : '') +
        (content?.firstAddGroupTime ? `首次拉群时间：${content?.firstAddGroupTime?.firstAddGroupTimeMin ? content?.firstAddGroupTime?.firstAddGroupTimeMin : '不限'} - ${content?.firstAddGroupTime?.firstAddGroupTimeMax ? content?.firstAddGroupTime?.firstAddGroupTimeMax : '不限'}\n` : '') +
        (content?.lastAddGroupTime ? `最近拉群时间：${content?.lastAddGroupTime?.lastAddGroupTimeMin ? content?.lastAddGroupTime?.lastAddGroupTimeMin : '不限'} - ${content?.lastAddGroupTime?.lastAddGroupTimeMax ? content?.lastAddGroupTime?.lastAddGroupTimeMax : '不限'}\n` : '') +
        (content?.lastExitTime ? `最近退群时间：${content?.lastExitTime?.lastExitTimeMin ? content?.lastExitTime?.lastExitTimeMin : '不限'} - ${content?.lastExitTime?.lastExitTimeMax ? content?.lastExitTime?.lastExitTimeMax : '不限'}\n` : '') +
        (content?.firstAddGroupHourRange ? `首次拉群(最近N小时)：${content?.firstAddGroupHourRange?.firstAddGroupHourRangeMin ? content?.firstAddGroupHourRange?.firstAddGroupHourRangeMin : '不限'} - ${content?.firstAddGroupHourRange?.firstAddGroupHourRangeMax ? content?.firstAddGroupHourRange?.firstAddGroupHourRangeMax : '不限'}\n` : '') +
        (content?.lastAddGroupHourRange ? `最近拉群(最近N小时)：${content?.lastAddGroupHourRange?.lastAddGroupHourRangeMin ? content?.lastAddGroupHourRange?.lastAddGroupHourRangeMin : '不限'} - ${content?.lastAddGroupHourRange?.lastAddGroupHourRangeMax ? content?.lastAddGroupHourRange?.lastAddGroupHourRangeMax : '不限'}\n` : '') +
        (content?.lastExitHourRange ? `最近退群(最近N小时)：${content?.lastExitHourRange?.lastExitHourRangeMin ? content?.lastExitHourRange?.lastExitHourRangeMin : '不限'} - ${content?.lastExitHourRange?.lastExitHourRangeMax ? content?.lastExitHourRange?.lastExitHourRangeMax : '不限'}\n` : '') +
        (content?.addGroupCount ? `进群次数：${content?.addGroupCount?.addGroupCountMin ? content?.addGroupCount?.addGroupCountMin : '不限'} - ${content?.addGroupCount?.addGroupCountMax ? content?.addGroupCount?.addGroupCountMax : '不限'}\n` : '') +
        (content?.exitGroupCount ? `退群次数：${content?.exitGroupCount?.exitGroupCountMin ? content?.exitGroupCount?.exitGroupCountMin : '不限'} - ${content?.exitGroupCount?.exitGroupCountMax ? content?.exitGroupCount?.exitGroupCountMax : '不限'}\n` : '') +
        (content?.retentionGroupCount ? `留存群聊数：${content?.retentionGroupCount?.retentionGroupCountMin ? content?.retentionGroupCount?.retentionGroupCountMin : '不限'} - ${content?.retentionGroupCount?.retentionGroupCountMax ? content?.retentionGroupCount?.retentionGroupCountMax : '不限'}\n` : '') +
        (configType === 'USER_GROUP' ? `是否查询所有公司：${content?.allCorp ? '是' : '否'}\n` : '') +
        ((content?.repeatRang) ? `重粉范围：${Object.values(content?.repeatRang).map(corpName => corpName).join('、')}\n` : '') +
        ((content?.repeatOperateType || content?.repeatOperateType == 0) ? `重粉操作类型：${content?.repeatOperateType == 0 ? '排除运营' : '去重运营'}\n` : '') +
        (content?.corpIdCount ? `添加主体数：${content?.corpIdCount?.minCorpIdCount ? content?.corpIdCount?.minCorpIdCount : '不限'} - ${content?.corpIdCount?.maxCorpIdCount ? content?.corpIdCount?.maxCorpIdCount : '不限'}\n` : '') +
        (content?.corpUserIdCount ? `添加客服数：${content?.corpUserIdCount?.minCorpUserIdCount ? content?.corpUserIdCount?.minCorpUserIdCount : '不限'} - ${content?.corpUserIdCount?.maxCorpUserIdCount ? content?.corpUserIdCount?.maxCorpUserIdCount : '不限'}\n` : '') +
        ((content?.groupRepeatRang) ? `群重名过滤范围：${Object.values(content?.groupRepeatRang).map(corpName => corpName).join('、')}\n` : '') +
        ((content?.groupOperateType || content?.groupOperateType == 0) ? `群重名操作类型：${content?.groupOperateType == 0 ? '历史群' : '当前所在群'}\n` : '') +
        (content?.groupNameList?.length > 0 ? `群名称列表${content?.groupNameList.join('、')}\n` : '') +
        (content?.unlimited ? `不限：${content?.unlimited}` : '')
}

export default FilterUserText