/**=============================登录授权================= */
export interface LoginProps {
    code?: 'qq' | 'wx'//扫码
    user?: string,//账号
    password?: string,//密码
    phone: number,//创建人的手机号作为关联
    cookies?: string,//cookie
}
/**更新获取服务商，账号，人群包 */
export interface UpdateData {
    cookies?: string,//cookie
    phone: number,//
    is_update?: UpdateProps
}
export interface UpdateProps {
    update_name: 'channel' | 'user' | 'crowd_package' | 'all',//channel 渠道 ，user 渠道下的账号 ， crowd_package 账号下的人群包 ，all 全部
    channels?: {
        account_id: number,
        url: string,
        service_tag: number,
        account_name: string,
        users?: { adq_list: any, mp_list: any } | 'all',//更新crowd_package必传 账号ID
    }[] | 'all', //更新user 或者crowd_package时必传 渠道ID
}
/** =============================创建计划===================*/
export interface TasksPlan { }//任务参数
/** =============================创建落地页==================*/
export interface TasksPage { }//任务参数
/** =============================创建任务==================*/
export interface CreateReqProps {
    cookies: string,//cookie登录
    phone: number,//创建人的手机号作为关联
    user: string,
    password: string,
    channels: ChannelProps[],
    page_data?: CreatePage,//落地页参数
    plan_data?: CreatePlan,//计划参数
}
/** =========渠道=========*/
export interface ChannelProps {
    channel: {
        account_id: number,
        account_name: string,
        url: string,
        service_tag: number,
    },//渠道ID
    platforms: PlatformProps//平台组
}
/**=========平台=========*/
export interface PlatformProps {
    platform: 'MP' | 'ADQ',//平台类型
    users: MpUser[]//要同步的用户列表
}
/**ADQuser 服务商下用户信息**/
export interface AdqUser {
    uid: number,
    agency_uid: number,
    jump_url: string,
    packages?: string[],//人群包
}
/**MPuser**/
export interface MpUser extends AdqUser {
    appid?: string,
    uname?: string,
}
/**createPage 落地页 */
export interface CreatePage { //落地页参数信息
    action: 'create',//动作
    page_id: 0,//未知暂时0
    page_type: 4,//未知暂时4 4原生推广页 26 原生推广小程序
    share_title: string,//标题
    share_desc: string,//描述
    share_thumb: string,//分享地址 图片一般都是轮播或顶部图的第一张图地址,或者视频取视频的封面图
    canvas_name: string,//推广页名称
    canvas_type: number,//顶部组件类型 6视频 7图片|轮播 14视频
    canvas_btn_type: number,//按钮编号取最后插入的按钮  131072 关注 131073 链接 没有为0 很重要的参数，最后计划选择落地页的时候按这个值来区分
    qid: 0,//未知暂时为0
    version: 2,//版本号
    original_page_id: 0,//未知暂时为0
    token: number | string,//token
    appid: '',//空
    spid: '',//空
    _: number,//当前时间
    canvas_info: {
        adCanvasInfo: {
            PageList: {//页面数据
                Page: {//页面数据列表
                    backgroundCover: string,//背景封面空
                    backgroundColor: string,//背景颜色
                    componentItemList: {//页面内容
                        componentItem: Array<Img | TopImg | Video | TopVideo | TopVideoNew | Slider101 | Slider102 | TopSlider | Text | GhButton>
                    }
                }[]
            },
            canvasName: string,//页面名称
            sizeType: string,//未知一般都是1
            basicWidth: string,//基本宽度 一般都是750
            basicRootFontSize: string,//基本字体大小一般都是1
            shareDesc: string,//分享描述
            shareTitle: string,//分享标题
            shareThumbUrl: string,//分享地址 图片一般都是轮播或顶部图的第一张图地址,或者视频取视频的封面图
            pageID: string,//空
            shareWebUrl: string,//未知空
            top_type: string,//顶部组件的type编号例如41是图片101是轮播 61视频
            fileSize: number,//页面中使有图片视频大小相加的值
            supportInfo: {
                subType: string[],//存放按钮subType的编号，17 公众号 0跳转链接 8进入小程序
                platform: [],
                iosAppid: [],
                appid: [],
                qid: "",
            },//未知
            btnType: number,//按钮编号取最后插入的按钮  131072 关注 131073 链接 没有为0
            videoFileSize: number,//页面中有视频大小相加的值 ,目前不管是图还是视频都是0，全都在filesize上相加
            version: string,//版本号 v2
            original_page_id: number,//未知 0
            platform: string,//未知 "native"原生推广页 "alita"推广页小程序
            wxad_copyFlag: string,// 0创建 2 复制
            hasRedPkt: string,//未知 "0"
        }
    },
}
/**
           * PRODUCTTYPE_WECHAT_ARTICLE=推广品牌活动
           * PRODUCTTYPE_WECHAT_LBS=推广门店
           * PRODUCTTYPE_LEAD_AD=收集销售线索
           * PRODUCTTYPE_WECHAT_SHOP=推广商品
           * PRODUCTTYPE_APPLE_APP_STORE=推广应用
           * PRODUCTTYPE_WECHAT_CARD=派发优惠券
           * PRODUCTTYPE_WECHAT=推广公众号
           * PRODUCTTYPE_WECHAT_MINI_GAME=推广小游戏
          */
export type ProductType = "PRODUCTTYPE_WECHAT_ARTICLE" | "PRODUCTTYPE_WECHAT_LBS" | "PRODUCTTYPE_LEAD_AD" | "PRODUCTTYPE_WECHAT_SHOP" | "PRODUCTTYPE_APPLE_APP_STORE" | "PRODUCTTYPE_WECHAT_CARD" | "PRODUCTTYPE_WECHAT" | "PRODUCTTYPE_WECHAT_MINI_GAME"
/**createPlan 计划*/
export interface CreatePlan {
    first: {
        pos_type: number, //101 | 999 | 0 | 5 101=公众平台流量 999=朋友圈信息流 0=公众号底部 5=中部
        product: {
            product_type: ProductType, //推广目标 PRODUCTTYPE_WECHAT=推广公众号
            product_id: string, //创建计划的公众号appid
            product_info: string,//未知留空字符串
        },
        campaign: {
            cid: number,//创建时为0 编辑时为对应ID
            ctype: "CAMPAIGNTYPE_AUCTION" | "CAMPAIGNTYPE_SCHEDULE", //购买方式 CAMPAIGNTYPE_AUCTION=竞价购买 CAMPAIGNTYPE_SCHEDULE=合约购买
            cname: string, //投放计划名称
            can_mix_product: number,//未知 填1
            end_time: number | string, //当前时间29天后毫秒数，去除后3位
            begin_time: number, //当前时间毫秒数，去除后3位
            exposure_frequency: number,//未知 填8
        },
        sub_product: {
            subordinate_product_id: string,//未知留空字符串
            product_type: ProductType, //推广目标 PRODUCTTYPE_WECHAT=推广公众号
            product_id: string,//未知 填空字符串
            spname: string,//未知 填空字符串
        },
        target_groups: [
            {
                target_group: {
                    mp_conf: string,//可传空对象字符串 此处为ocpm配置字符串
                },
                ad_groups: [
                    {
                        ad_group: {
                            aid: number,//创建时为0 编辑时为对应ID
                            backup_aid: number,//创建时为0 编辑时为对应ID
                            aname: string, //广告名称 地域 性别 年龄组装
                            timeset: string, //二进制时间 将时间转成二进制字符串
                            product_id: string, //公众号appid
                            product_type: ProductType, //推广目标 PRODUCTTYPE_WECHAT=推广公众号
                            end_time: number,//貌似结束时间可以填0
                            begin_time: number, //当前时间毫秒数，去除后3位
                            strategy_opt: string,// //'{"bid_objective":7,"bid_action_type":7,"bid_objective_mode":1}'=oCPM-下单  "{\"bid_action_type\":1,\"bid_objective\":2,\"bid_objective_mode\":1}"=CPM固定
                            bid: number, //出价26274 = 262.74
                            change_bid: 0,//填0
                            budget: number, //每日预算 5010表示50.1
                            day_budget: number, //每日预算
                            contract_flag: 2,//未知暂时填2 
                            pos_type: number, //101 | 999 | 0 | 5 101=公众平台流量 999=朋友圈信息流 0=公众号底部 5=中部
                            exposure_frequency: 8,//未知暂时填8
                            poi: "",//未知
                            cost_type?: string, // "COSTTYPE_CPM" 选择视频有
                            expand_targeting_switch: "EXPAND_TARGETING_SWITCH_CLOSE" | "EXPAND_TARGETING_SWITCH_OPEN", //自动扩量 EXPAND_TARGETING_SWITCH_CLOSE=关闭 EXPAND_TARGETING_SWITCH_OPEN=开启
                            expand_targeting_setting: "[]", //不可突破定向 ‘age’=年龄  ‘area’ = 地域
                            cold_start_audience_id_list: "[]", //扩量种子人群 人群包ID
                            time_mode: 0,
                            multi_slot_type: number,  // 优雅横板大图 2 其它 0
                            bid_strategy?: 1 | 2 | 3, //1 均衡投放 2 优先跑量 3优先成本 (注：CPM没有这个参数)
                            auto_acquisition_switch: 0 | 1, //一键起量 0=关 1=开
                            auto_acquisition_budget: null, //探索预算
                            tracking_sourceid: string, // 归因
                        },
                        ad_target: {
                            mid: 0,
                            ad_behavior: string,  // '[{"in_action_list":[],"not_in_action_list":[101]}]'
                            education: "[]",
                            device_price: "[]",
                            area: any, //地域
                            travel_area: "[]",
                            area_type: "area",
                            gender: string, //性别 MALE=男 FEMALE = 女 ""=全部
                            sns_optimal_user_group: "",
                            age: string, //年龄
                            device_brand_model: "[]",
                            businessinterest: "[]",
                            app_behavior: "{}",
                            os: "[]",
                            marriage_status: "[]",
                            wechatflowclass: "[]",
                            connection: "[]",
                            telcom: "[]",
                            payment: "[]",
                            game_consumption_level: "[]",
                            custom_poi: "[]",
                            weapp_version:
                            '{"min_ios_version":0,"min_android_version":0,"min_ios_os_version":"","min_android_os_version":""}',
                            oversea: "[]",
                            in_dmp_audience: "", //人群包
                            not_in_dmp_audience: "[]",
                            behavior_interest: "{}",
                            star_fans: "",
                        },
                    },
                ],
            },
        ],
        expected_ret: 0,
        materials: [{ tname: string, crt_size: number }], // 创意名称
    },//第一步参数
    second: {
        cid: string,//不用填 
        pos_type: number,//101=公众平台流量 999=朋友圈信息流
        page_name: string,//落地页名称
        materials: Array<{
            rid: string,//不用填 
            cid: string,//不用填 
            desc: string,//about:blank
            link_hidden: number,        // 朋友圈 0 常规广告 1 卡片式广告
            link_name: string,     // 文字链文案
            is_show_friend: 0,
            show_first_comment: 0,
            interaction: 0,
            crt_size: number,
            tname: string, // 创意名称
            page_id: string,//不用填
            page_id_str: string,//不用填
            link_page_id: number,  // 与文字链跳转有关 没有 0
            link_page_id_str: "0",
            page_type: 4,
            link_page_type: 6 | 4 | 0,  // 文字链跳转 6 = 公众号详情页 4 = 原生推广页 0 = 没有
            dest_conf: "{}",
            ext_click_url: "",
            ext_exposure_url: "",
            dest_url: "",
            appmsg_info: "{}",
            title: string,   // 底部 信息栏类型是 文案型要写  与tname 一样
            scheme_url: "",
            is_hidden_comment?: 0,
            crt_info: any,//暂时不用填
            sns_dynamic_show_type?: 0 | 6,  // 朋友圈才有参数
            sns_dynamic_show_text?: string,  // 朋友圈才有参数
            button_param?: string,  //  "{\"title\":\"阅读小说\"}" 按钮文案  公众号底部才有字段
            button_page_type?: number  // 公众号底部才有字段 4
            out_material_use_canvas_top?: number, // 0 使用的落地页顶部图片   1 上传新的图片
        }>,
        product: {
            product_id: "",
            product_type: ProductType,
        },
    },//第二步参数
}



/**边距 */
export interface Padding {
    paddingTop?: number,//边距 顶部轮播不存在
    paddingBottom?: number,//边距 顶部轮播不存在
    paddingRight?: number,//边距 顶部轮播不存在
    paddingLeft?: number,//边距 顶部轮播不存在
}
/**宽高 */
export interface Wh {
    initWidth: number,//图片本身宽 上传的图宽不能超过当前选择图片组件限定的宽
    initHeight: number,//图片本身高 上传的图高不能超过当前选择图片组件限定的高
    imageHeight: number,//显示高 按对应的选择mp限制
    imageWidth: number,//显示宽 按对应的选择mp限制
}
/**文件 */
export interface File {
    fileSize: number,//文件大小
    materialId: string,//媒体ID
}
/**文本 */
export interface Text extends Padding {
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    widgetTypeV2: 'text',//topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频
    widgetType: 'text',//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: "文本",
    type: '1',//未知 1文本,41图片,61视频,101轮播,102其它位置轮播并且样式为第二种
    fontSize: string,//文字大小 
    fontColor: string,//文字颜色
    content: string,//文本内容
    showType: "0" | "1",//文字加粗 0 常规 1加粗
    expand: false,//默认,只在文本出现未知
    showAdvanced: false,//默认,只在文本出现未知
    textAlignment: 0 | 1 | 2,//文本排列方式 对应 左 中 右
    fromComponentId: string,//未知
}
/**公众号按钮*/
export interface GhButton extends Padding {
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    widgetTypeV2: 'gh',//topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频
    widgetType: 'button',//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: '关注公众号',
    type: '21',//未知 1文本,21按钮,41图片,61视频,101轮播,102其它位置轮播并且样式为第二种
    btnTitle: string,//按钮名称
    fontSize: string,//按钮文字大小
    fontColor: string,//按钮文字颜色
    btnType: '0',//默认0
    borderSize: '0',//默认0
    btnHeight: '80',//默认80
    btnBgColorTheme: string,//按钮背景色
    btnBorderColorTheme: string,//按钮边框色
    cornerRadius: 4,//圆角默认4
    btnFontType: '0' | '1',//字体粗细 0常用 1加粗
    useIcon: '0' | '1',//图标开启关闭 0 关 1开
    btnStyle: '1',//默认1
    subType: '17' | '1',//一键关注公众号 17开启，1关闭
    fromComponentId: string,//
    origBtnJumpUrl?: '',//useIcon为1 是存在默认为空
    wxad_guide_group_id?: ''//useIcon为1 是存在默认为空
}

/**添加商家微信按钮*/
export interface WxAutoButton extends Padding {
    widgetTypeV2: "enterprise_wx_auto",
    widgetType: "button",
    type: "21",
    name: "添加商家微信",
    btnTitle: string,
    subType: "15",
    fontSize: string,
    fontColor: string,
    btnType: "0",
    borderSize: "0",
    btnHeight: "80",
    btnBgColorTheme: string,
    btnBorderColorTheme: string,
    btnFontType: '0' | '1',//字体粗细 0常用 1加粗
    btnStyle: "1",
    cornerRadius: 4,
    useIcon: '0' | '1',//图标开启关闭 0 关 1开
    id: string,
    mpJumpType: "1",
    origBtnJumpUrl: string,//"https://wxa.wxs.qq.com/mptemplate/rtx/index.html?corpid=wp7eXwDAAA4NWRcT0uN05GKQesjmgB0g&groupid=215982&_=1646209011778",
    btnJumpUrl: "",
    corpid: string, // 企业微信公司里参数 重庆沃启尔文化传媒有限公司"
    groupid: number,  // 1 组id
    h5_config_id: string,     // 1 h5_config_id
    wxapp_config_id: string,  // 1. wxapp_config_id
    qrUrl: string, // 1 auto_qr_code
    needUpdateQrUrl: 0,
    qrExtInfo: string,//'{"qrType":1,"corpid":"wp7eXwDAAA4NWRcT0uN05GKQesjmgB0g","groupid":215982,"useSet":0}',
    serviceType: "1",
    chatGroupName: string//"单人客服-木木",  // 1 name
}

/**跳转链接按钮*/
export interface LinkButton extends Padding {
    widgetTypeV2: "link",
    widgetType: "button",
    type: "21",
    name: "跳转链接",
    btnTitle: string,
    subType: "0",
    fontSize: "30",
    fontColor: string,
    btnType: "0",
    borderSize: "0",
    btnHeight: "80",
    btnBgColorTheme: string,
    btnBorderColorTheme: string,
    btnFontType: '0' | '1',
    btnStyle: "1",
    cornerRadius: 4,
    useIcon: '0' | '1',
    id: "widget_1632641482474_3",
    mpJumpType: "1",
    origBtnJumpUrl: string,
    btnJumpUrl: ""
}

/**img */
export interface Img extends File, Wh, Padding {
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    widgetTypeV2: 'img',//topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频
    widgetType: 'image',//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: '图片',
    type: '41',//未知 1文本,41图片,61视频,101轮播,102其它位置轮播并且样式为第二种
    fromComponentId: string,
    pureImageUrl: string,//图片地址
    imageMd5?: string,//图片MD5
    img_name?: string,//图片名称
    img_type?: string,//图片类型
}
/**top_img */
export interface TopImg extends File, Wh, Padding {
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    widgetTypeV2: string,//topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频
    widgetType: string,//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: string,
    type: string,//未知 1文本,41图片,61视频,101轮播,102其它位置轮播并且样式为第二种
    fromComponentId: string,  // 传空
    viewType: string, // 0 常规广告 1 卡片广告 
    pureImageUrl: string,//图片地址
    imageMd5?: string,//图片MD5
    img_name?: string,//图片名称，记得删除
    img_type?: string,//图片类型
    adLocation: string,//sns朋友圈 ，gh 公众号
}
/**Video */
export interface Video extends File, Padding {
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    widgetTypeV2: 'video',//topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频
    widgetType: 'video',//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: '视频',
    type: '61' | '62',//未知 1文本,21按钮,41图片,61短视频, 62长视频,101轮播,102其它位置轮播并且样式为第二种
    initWidth: number,
    initHeight: number,
    sightDisplayWidth?: number,//短视频显示的宽 短视频时传
    streamDisplayWidth?: number,//长视频显示的宽 长视频时传
    sightDisplayHeight?: number,//短视频显示的高 短视频时传
    streamDisplayHeight?: number,//长视频显示的高 长视频时传
    sightThumbUrl?: string,//短视频封面图 短视频时传
    streamVideoThumb?: string,//长视频封面地址 长视频时传
    sightVideoUrl?: string,//短视频地址 短视频时传
    streamVideoUrl?: string,//长视频地址 长视频时传
    sightDisplayType?: '0',//短视频默认0 短视频时传
    streamDisplayType?: '1',//长视频默认1 长视频时传
    displayType?: '1',//长视频时传
    isFullScreen: '0',//默认0
    videoDuration: string,//视频时长
    streamThumbMd5?: string,//长视频图片MD5
    streamVideoMd5?: string,//长视频视频MD5
    sightThumbMd5?: string,//短视频图片MD5
    sightVideoMd5?: string,//短视频视频MD5
    BitRate: number,//视频的比特率值
    originalMaterialId?: number,//只有在其他位置视频 短视频类型才有
    video_name?: string,
    video_type?: string,
    msg?: string
}
/**top_Video */
export interface TopVideo extends File, Padding {
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    widgetTypeV2: string,// 'topvideo' topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频 ,topvideo 顶部视频
    widgetType: string,//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: string, // "顶部视频"
    type: string,//'61' 未知 1文本,21按钮,41图片,61短视频, 62长视频,101轮播,102其它位置轮播并且样式为第二种
    viewType: string, //'0'
    styleType: string, // '0'
    initWidth: number,
    initHeight: number,

    // 朋友圈信息流 都是短视频
    sightDisplayWidth?: number,//短视频显示的宽 短视频时传
    sightDisplayHeight?: number,//短视频显示的高 短视频时传
    sightThumbUrl?: string,//短视频封面图 短视频时传
    sightVideoUrl?: string,//短视频地址 短视频时传
    sightDisplayType?: string,//'0'短视频默认0 短视频时传
    sightThumbMd5?: string,//短视频图片MD5
    sightVideoMd5?: string,//短视频视频MD5

    originalMaterialId?: number,//只有在其他位置视频 短视频类型才有

    streamDisplayWidth?: number,//长视频显示的宽 长视频时传
    streamDisplayHeight?: number,//长视频显示的高 长视频时传
    streamVideoThumb?: string,//长视频封面地址 长视频时传
    streamVideoUrl?: string,//长视频地址 长视频时传
    streamDisplayType?: string,//'1'长视频默认1 长视频时传
    streamThumbMd5?: string,//长视频图片MD5
    streamVideoMd5?: string,//长视频视频MD5
    displayType?: string,//'1'长视频时传

    isFullScreen: string,//'0'默认0
    videoDuration: string,//视频时长
    BitRate: number,//视频的比特率值
    video_name?: string,
    video_type?: string,
    adLocation: string,//'sns' | 'gh' sns朋友圈 ，gh 公众号
    outerUseTopMaterial?: string, // '0' | '1'顶部素材不用于广告外层 0 勾 1 不勾
    msg?: string,//失败信息
}

export interface TopVideoNew extends File, Padding {
    widgetTypeV2: string,  // "topvideo_new"
    widgetType: string,  // "top"
    name: string,     // "顶部视频"
    type: string,     // "142"
    viewType: string,       // "0"
    styleType: string,      // "1"
    outerUseTopMaterial: string,   // "0"
    adLocation: string,  // "sns"
    id: string,  // "widget_1638949212035_1"
    displayWidth: number,  // 750  视频原宽
    displayHeight: number,  // 1333 视频原高
    initWidth: number,  // 720   选择的尺寸信息
    initHeight: number,  // 1280 
    thumbUrl: string,
    videoUrl: string,
    displayType: string, // "0"
    videoDuration: number,  // 视频时长
    thumbMd5: string,
    videoMd5: string,
    BitRate?: number,
    forbiddenControlView: number,  // 0
    forbiddenAutoPlay: number,  // 0
    forbiddenPreload: number // 0
}

/** 图文复合组件标题类型 */
export interface ImageTextContentTitle {
    name: "标题",
    content: string,
    fontColor: string,
    fontSize: "32",
    layoutHeight: "44",
    layoutWidth: "410",
    maxLines: "1",
    showType: "1",
    type: "1",
    wxad_IsSubNode: "1"
}
/** 图文复合描述标题类型 */
export interface ImageTextContentDesc {
    name: string,  // text = 描述 price = 价格
    content: string, // 内容
    fontColor: string,  // 字体颜色
    fontSize: string,  // 字体大小
    layoutHeight: "40",
    layoutWidth: "410",
    paddingTop: "8",
    type: "1",
    wxad_IsSubNode: "1",
    showType?: "1",  // 选择价格才有
}
/** 图文复合组件跳转链接类型 */
export interface ImageTextContentLink {
    widgetTypeV2: "link",
    widgetType: "button",
    borderSize: "2",
    btnBgColorTheme: string,  // "#07C160"
    btnBorderColorTheme: string,   // "#FFFFFF"
    btnFontType: "0",
    btnHeight: "60",
    btnJumpUrl: "",
    btnStyle: "1",
    btnTitle: string,   // "了解详情"
    btnType: "0",
    fontColor: string,    // "#FFFFFF"
    fontSize: "26",
    name: string,   // "跳转链接"
    origBtnJumpUrl: "",
    layoutWidth: "152",
    layoutHeight: "60",
    paddingBottom: "0",
    paddingLeft: "0",
    paddingRight: "0",
    paddingTop: "28",
    subType: "0",
    mpJumpType: "1",
    type: "21",
    cornerRadius: "4"
}
/** 图文复合组件关注公众号类型 */
export interface ImageTextContentGh {
    widgetTypeV2: string, //"gh",
    widgetType: string, //"button",
    type: string, //"21",
    borderSize: string, //"0",
    name: string, //"商品关注公众号",
    btnTitle: string,  // "关注公众号"
    subType: '17' | '1',
    fontSize: string, //"26",
    fontColor: string,  // "#FFFFFF"
    btnType: string, //"0",
    btnBgColorTheme: string,  // "#07C160"
    btnBorderColorTheme: string,  // "#FFFFFF"
    btnFontType: '0' | '1',
    btnStyle: string, //"1",
    cornerRadius: number | string, //4,
    useIcon: string, //"0",
    field21_1: {
        origBtnJumpUrl: string,
        wxad_guide_group_id: string
    },
    id: string,   // "widget_1634288817126_3"
    layoutWidth: string, //"152",
    layoutHeight: string, //"60",
    btnHeight?: string,   //"60",
    paddingTop?: string,  //"28",
    paddingBottom?: string, //"0",
    paddingRight?: string,  // "0"
    paddingLeft?: string,  // "0"
    horizontalAlignment?: string  // "1"
}
/** 图文复合组件添加商家微信按钮 */
export interface ImageTextContentWxAuto {
    widgetTypeV2: string, // "enterprise_wx_auto"
    widgetType: string, // "button"
    type: string, // "21"
    name: string, // "商品添加商家微信"
    btnTitle: string, //"联系商家",
    subType: string, //"15"
    fontSize: string,//"26",
    fontColor: string,//"#FFFFFF",
    btnType: string, // "0"
    borderSize: string, // "0"
    btnBgColorTheme: string, // "#07C160",
    btnBorderColorTheme: string, //"#FFFFFF",
    btnFontType: string, // "0"
    btnStyle: string, // "1"
    cornerRadius: number | string, //4,
    useIcon: string, //"0",
    mpJumpType: string, //"1",
    origBtnJumpUrl: string,
    btnJumpUrl: string, //"",
    corpid: string,//"wp7eXwDAAA4NWRcT0uN05GKQesjmgB0g",
    groupid: number | null,
    h5_config_id: string, //"6eeeabc55c3087ea251505ec8560371e",
    wxapp_config_id: string, //"bee1788a8cbf0bbab69d3bfc5917231e",
    qrUrl: string,//"https://wework.qpic.cn/wwpic/87591_JQGte4L-Tc21VZW_1645432835/0",
    needUpdateQrUrl: number, //0,
    qrExtInfo: string,//"{\"qrType\":1,\"corpid\":\"wp7eXwDAAA4NWRcT0uN05GKQesjmgB0g\",\"groupid\":215982,\"useSet\":0}",
    serviceType: string, //"1",
    chatGroupName: string,
    id: string,
    layoutWidth: string, //"152",
    layoutHeight: string, //"60",
    btnHeight?: string,//"60",
    paddingTop?: string, //"28",
    paddingBottom?: string, //"0",
    paddingRight?: string, //"0",
    paddingLeft?: string, //"0",
}


/** 图文复合组件单个内容 */
export interface ImageText1Content {
    layoutHeight: string,  // "228" 
    layoutWidth: string,  // "670"
    type: string,  // "103"
    subType: string,  // "1"
    jumpMode: string,  // "btn_jump" "total_jump"
    layoutItems: {
        componentItem: [{
            name: "图片",
            layoutHeight: "180",
            layoutWidth: "180",
            paddingTop: "24",
            paddingLeft: "24",
            pureImageUrl: string,
            type: "41",
            imageMd5: string,
            cornerRadius: "4",
            materialId: "2276131704",
            wxad_IsSubNode: "1"
        }, {
            layoutHeight: "228",
            layoutWidth: "470",
            paddingLeft: "24",
            paddingTop: "24",
            paddingRight: "40",
            subType: "0",
            type: "103",
            descType: string,  // 文字 text 价格 price
            wxad_IsSubNode: "1",
            layoutItems: {
                componentItem: Array<ImageTextContentTitle | ImageTextContentDesc | ImageTextContentLink | ImageTextContentGh>
            }
        }]
    }
}

export interface ImageTextOsButtonLink {
    widgetTypeV2: "link",
    widgetType: "button",
    borderSize: "0",
    btnBgColorTheme: "clear",
    btnBorderColorTheme: "clear",
    btnFontType: "0",
    btnHeight: "228",
    btnJumpUrl: "",
    btnStyle: "1",
    btnTitle: "",
    btnType: "0",
    fontColor: "clear",
    fontSize: "26",
    name: string,   // "跳转链接"
    origBtnJumpUrl: string,
    layoutWidth: "750",
    layoutHeight: "228",
    paddingBottom: "0",
    paddingLeft: "0",
    paddingRight: "0",
    paddingTop: "0",
    subType: "0",
    fengyeId: "0",
    fengyeUrl: "",
    mpJumpType: "1",
    type: "21",
    cornerRadius: "4"
}

export interface ImageTextOsButtonGh {
    widgetTypeV2: "gh",
    widgetType: "button",
    type: "21",
    name: "商品关注公众号",
    btnTitle: "",
    subType: "17",
    wxad_guide_group_status: false,
    fontSize: "26",
    fontColor: "clear",
    btnType: "0",
    borderSize: "0",
    btnHeight: "228",
    btnBgColorTheme: "clear",
    btnBorderColorTheme: "clear",
    btnFontType: "0",
    btnStyle: "1",
    paddingTop: "0",
    paddingBottom: "0",
    paddingRight: "0",
    paddingLeft: "0",
    cornerRadius: 4,
    useIcon: "0",
    field21_1: {
        origBtnJumpUrl: "",
        wxad_guide_group_id: ""
    },
    id: "widget_1634288817126_3",
    layoutWidth: "750",
    layoutHeight: "228"
}

/** 图文复合组件单个 */
export interface Shelfnew extends Padding {
    widgetTypeV2: string,   // 图文复合组件 shelfnew
    widgetType: string,     // 图文复合组件 shelfnew
    name: string,    // "图文复合组件"
    type: string,     // 图文复合组件 单个 "104" 多个 "103"
    id: string,       // "widget_1634190280938_1"
    layoutHeight: string, // "228"
    layoutWidth: string,  // "670"
    // paddingTop: "20",
    // paddingBottom: "20",
    // paddingLeft: "40",
    // paddingRight: "40",
    borderColor: string,   // "#e5e5e5"
    bgColor: string,   // #FFFFFF
    borderSize: number,  // 1
    cornerRadius: number,  // 8
    isChooseJump: number,  // 1
    layoutItems: {
        componentItem: Array<ImageText1Content | ImageTextOsButtonLink | ImageTextOsButtonGh>
    }
}



/** 悬浮组件 */
export interface Floatbutton extends Padding {
    widgetTypeV2: string, //"floatbutton",
    widgetType: string, //"float_button",
    type: string, //"134",
    name: string, // "悬浮组件",
    wxad_styleType: string, //"2",
    onlyShowInTimelineAd: string, //"0",
    backgroundImg: string, //"",
    backgroundColor: string,//"#F0F0F0",
    backgroundColorAlpha: string, //"0.96",
    backgroundBlurEffect: string,  //"1",
    backgroundBlurEffectColor: string,  //"#F0F0F0",
    backgroundBlurEffectColorAlpha: string,  //"0.5",
    titleColor: string,  //"#171717",
    titleColorAlpha: string,//"1",
    descColor: string, //"#4c4c4c",
    descColorAlpha: string, //"0.5",
    imageMd5: string, // 图片传
    materialId: string | number, // 有图片传
    title: string,  // 标题传
    desc: string,   // 描述
    isFullClickable: string, //"1",
    appearPaddingTop: string | number, //"0", 出现方式 进入页面出现 0 滑动页面时出现 100
    appearPaddingBottom: string | number, //"0", 消失方式 不消失 0  消失 80
    id: string,
    componentItem: ImageTextContentWxAuto | ImageTextContentGh,
    iconUrl?: string
    comptActive?: boolean
}


export interface ImageText2Content {
    layoutHeight: "542",
    layoutWidth: "324",
    type: "104",
    borderColor: "#e5e5e5",
    bgColor: "#ffffff",
    borderSize: "1",
    cornerRadius: "8",
    layoutItems: {
        componentItem: [{
            jumpMode: "btn_jump",
            layoutHeight: "542",
            layoutWidth: "324",
            type: "103",
            subType: "0",
            descType: "text",
            layoutItems: {
                componentItem: [{
                    name: "图片",
                    layoutHeight: "300",
                    pureImageUrl: "http://wxsnsdythumb.wxs.qq.com/141/20204/snscosdownload/SZ/reserved/616d58f90002a8eb000000001f5588090000008d00004eec?m=d0d8fc30704c9ee6bec47d76e70bb887&ck=d0d8fc30704c9ee6bec47d76e70bb887",
                    type: "41",
                    imageMd5: "d0d8fc30704c9ee6bec47d76e70bb887",
                    layoutWidth: "300",
                    paddingLeft: "12",
                    paddingTop: "12",
                    cornerRadius: "4",
                    materialId: 2309537455,
                    wxad_IsSubNode: "1"
                }, {
                    name: "标题",
                    content: "1111",
                    fontColor: "#353535",
                    fontSize: "32",
                    layoutHeight: "44",
                    layoutWidth: "272",
                    maxLines: "1",
                    paddingLeft: "24",
                    paddingTop: "16",
                    showType: "1",
                    type: "1",
                    wxad_IsSubNode: "1",
                    textAlignment: "1"
                }, {
                    name: "描述",
                    content: "2222",
                    fontColor: "#b2b2b2",
                    fontSize: "24",
                    paddingLeft: "24",
                    layoutHeight: "40",
                    layoutWidth: "272",
                    paddingTop: "8",
                    type: "1",
                    wxad_IsSubNode: "1",
                    textAlignment: "1"
                }, {
                    layoutWidth: "152",
                    layoutHeight: "60",
                    id: "4341914433_4341898473_21",
                    fromComponentId: "4341914433_4341898473_21",
                    widgetTypeV2: "link",
                    widgetType: "button",
                    type: "21",
                    name: "跳转链接",
                    btnTitle: "了解详情",
                    subType: "0",
                    fontSize: "26",
                    fontColor: "#FFFFF1",
                    btnType: "0",
                    borderSize: "2",
                    btnHeight: "60",
                    btnBgColorTheme: "#07C161",
                    btnBorderColorTheme: "#FFFFF1",
                    btnFontType: "0",
                    btnStyle: "1",
                    paddingTop: "28",
                    paddingBottom: "32",
                    paddingRight: "24",
                    paddingLeft: "24",
                    cornerRadius: "4",
                    useIcon: "0",
                    mpJumpType: "1",
                    origBtnJumpUrl: "http://www.baidu.com",
                    btnJumpUrl: "https://as.weixin.qq.com/cgi-bin/redirect?comp_id=4341898473&token=768f6546f0a0d3547ef225cbd646cdf4&wx_uid=17835304"
                }]
            }
        }]
    }
}

/** 图文复合组件多个 */
export interface ImageText2 {
    widgetTypeV2: "shelfnew",
    widgetType: "shelfnew",
    name: "图文复合组件",
    type: "103",
    id: "widget_1634552219501_1",
    layoutHeight: "542",
    paddingLeft: "40",
    paddingTop: "20",
    paddingBottom: "20",
    subType: "1",
    isChooseJump: 1,
    wxad_align: 1,
    layoutItems: {
        componentItem: ImageText2Content[]
    }
}
/**slider 其它轮播101*/
export interface Slider101 {
    componentGroupList: ComponentGroupList,
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    widgetTypeV2: 'slider',//topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频
    widgetType: 'image',//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: '轮播图',
    type: '101',//未知 1文本,41图片,61视频,101轮播,102其它位置轮播并且样式为第二种
    activeIndex: number,//只在轮播图看到  顶部3为1 4位3 底部2为0 3为0
    componentCount: '2' | '3' | '4' | '5',//图片数量 只在轮播出现,3，4，6顶部 2，3，4，5其它
    pageCtrType: '1',//只在轮播图看到 并且102没有
    isFullScreen: '0',//只在轮播图看到 默认0 并且102没有
}
/**slider 其它轮播102*/
export interface Slider102 {
    componentGroupList: {
        componentItem: ComponentItem[]
    },
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    widgetTypeV2: 'slider',//topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频
    widgetType: 'image',//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: '轮播图',
    type: '102',//未知 1文本,41图片,61视频,101轮播,102其它位置轮播并且样式为第二种
    activeIndex: number,//只在轮播图看到  顶部3为1 4位3 底部2为0 3为0
    componentCount: '2' | '3' | '4' | '5',//图片数量 只在轮播出现,3，4，6顶部 2，3，4，5其它
    bgColorTheme: string,//背景颜色只有在102下才有
    bgColorAlpha: '1',//背景颜色只有在102下才有 默认1
}
/**top_slider 顶部轮播*/
export interface TopSlider {
    componentGroupList: ComponentGroupList,
    id: string,//widget_1625551322566_1，widget_创建毫秒时间_位置序号
    fromComponentId: string,// 101 "3562285867_3562248863_101" === 102 "3562285867_3562248865_102"
    widgetTypeV2: string,//topimg顶部图片，img其它位置,text文本，gh关注公众号 ,topslider顶部轮播图,slider其它轮播，video其它视频
    widgetType: string,//top顶部的组件类型都是,轮播和图片在其他地方都叫image
    name: string,  //'轮播图'
    type: string,//'101' 未知 1文本,41图片,61视频,101轮播,102其它位置轮播并且样式为第二种
    activeIndex: number,//只在轮播图看到  顶部3为1 4位3 底部2为0 3为0
    pageCtrType?: string,//'1'只在轮播图看到 并且102没有
    isFullScreen?: string,//'0'只在轮播图看到 默认0 并且102没有
    componentCount: string,//'3' | '4' | '6'图片数量 只在轮播出现,3，4，6顶部 2，3，4，5其它
}
/**ComponentGroupList*/
export interface ComponentGroupList {
    componentGroup: ComponentGroup[]
}
/**componentGroup*/
export interface ComponentGroup {
    id: string,//slider_1625816340373_2，slider_创建毫秒时间_位置序号
    fromComponentId?: string,//"slider_1625816240422_3"
    componentItem: ComponentItem
}
/**componentItem */
export interface ComponentItem extends Padding, Wh, File {
    type: string,//'41'未知 1文本,41图片,61视频,101轮播,102其它位置轮播并且样式为第二种
    pureImageUrl: string,//图片地址
    imageMd5?: string,//图片MD5
    wxad_IsSubNode?: string,//'1'其它轮播下才有这个值而且默认1
    id?: string,//"slider_1625816340373_3"
    img_name?: string,//图片名称 
    img_type?: string,//图片类型 
}


// 新版投放字段
export interface Campaign {
    campaign_name: string, //计划名称
    campaign_type: "CAMPAIGN_TYPE_NORMAL", //暂时固定
    promoted_object_type: 'PROMOTED_OBJECT_TYPE_WECHAT_OFFICIAL_ACCOUNT' | 'PROMOTED_OBJECT_TYPE_WECHAT_CHANNELS', //推广目标--->  PROMOTED_OBJECT_TYPE_WECHAT_OFFICIAL_ACCOUNT->公众号推广  PROMOTED_OBJECT_TYPE_WECHAT_CHANNELS->视频号推广
    daily_budget: number, //计划日预算
    speed_mode: "SPEED_MODE_STANDARD", //暂时固定
    application_platform: 3, //暂时固定
}

// targeting字段
// 以下字段“不限”不传
export interface Targeting {
    age: {
        min: number,  // 最小年龄
        max: number   // 最大年龄
    }[],
    behavior_or_interest: {},  // 不清楚啥意思 固定
    geo_location: { // 地域所有
        location_types: ["LIVE_IN"],
        regions: [110000, 120000, 130000, 140000, 150000, 210000, 220000, 230000, 310000, 320000, 330000, 340000, 350000, 360000, 370000, 410000, 420000, 430000, 440000, 450000, 460000, 500000, 510000, 520000, 530000, 540000, 610000, 620000, 630000, 640000, 650000]
    },
    gender?: string[],  // 性别 不限 空 男："MALE" 女："FEMALE"
    education?: string[],  // 学历---> DOCTOR 博士 MASTER 硕士  BACHELOR 本科 SENIOR 高中 JUNIOR 初中 PRIMARY 小学 JUNIOR_COLLEGE 专科
    user_os?: string[], // 操作系统---> IOS iOS 系统 ANDROID Android 系统
    device_price?: string[], // 手机价格--->   PRICE_1500_LESS->1500以下  PRICE_1500_2500->1500~2500 PRICE_2500_3500->2500~3500 PRICE_3500_4500->3500~4500 PRICE_4500_MORE->4500以上
    network_operator?: string[], // 运营商--->  CTC->电信  CMCC->移动 CUC->联通
    network_type?: string[], // 联网方式---> WIFI->wi-fi NET_4G->4G NET_3G->3G NET_2G->2G
    wechat_ad_behavior?: {
        actions?: string[]   // 再营销---> WECHAT_OFFICIAL_ACCOUNT_FOLLOWED->已关注你的公众号  WECHAT_OFFICIAL_ACCOUNT_AD_LIKE->曾对你的公众号广告感兴趣 WECHAT_MOMENTS_AD_LIKE->曾对你的朋友圈广告感兴趣
        excluded_actions?: string[]  // 排除营销--->  WECHAT_OFFICIAL_ACCOUNT_FOLLOWED->已关注你的公众号  WECHAT_OFFICIAL_ACCOUNT_AD_LIKE->曾对你的公众号广告感兴趣 WECHAT_MOMENTS_AD_LIKE->曾对你的朋友圈广告感兴趣
    },
    device_brand_model: {
        included_list?: number[]   // 定向手机品牌 [1,2,3,4,5,6]
        excluded_list?: number[]   // 排除手机品牌
    },
    custom_audience?: number[],  // 人群包ID  [10616442]
}

export interface Adgroup {
    account_id: string, //账号信息下的uid_extend
    adgroup_name: string, //广告名称
    begin_date: string, //开始日期 "2023-03-31"
    end_date: string, //结束日期 "2024-03-28"
    targeting: string, // Targeting
    time_series: "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111",
    campaign_id: '',//计划ID
    configured_status: "AD_STATUS_NORMAL",
    daily_budget: string,   // 广告日预算
    bid_amount: string, //出价
    expand_enabled: "false",
    promoted_object_id: "", // "wxf82b302b1dde69e9"
    promoted_object_type: 'PROMOTED_OBJECT_TYPE_WECHAT_OFFICIAL_ACCOUNT' | 'PROMOTED_OBJECT_TYPE_WECHAT_CHANNELS', //推广目标--->  PROMOTED_OBJECT_TYPE_WECHAT_OFFICIAL_ACCOUNT->公众号推广  PROMOTED_OBJECT_TYPE_WECHAT_CHANNELS->视频号推广
    site_set: string[],   //流量位--->  SITE_SET_MOMENTS->朋友圈信息流  SITE_SET_WECHAT->公众平台流量
    scene_spec?: { // 流量位选择公众平台流量才出现
        /**
         * 公众号文章底部(1024789)      ocpm ocpc
         * 公众号文章中部(1024790)           ocpc
         * 公众号文章视频贴片(1024791)  ocpm
         * 订阅号消息列表(1024792)      ocpm ocpc
         * 微信支付订单详情页(1024793)  ocpm ocpc
         * 小程序激励式广告(1024795)    ocpm
         * 小程序插屏广告(1024796)      ocpm ocpc
         */
        // 公众号文章中部与公众号文章视频贴片、小程序激励式广告不共存
        wechat_position: number[],   // 1024789, 1024790, 1024792
    },
    bid_mode: string, //出价方式--->   BID_MODE_OCPM->oCPM BID_MODE_OCPC->oCPC BID_MODE_CPM->CPM
    // cpm 去掉 optimization_goal bid_strategy smart_bid_type auto_acquisition_enabled cold_start_audience 参数
    optimization_goal?: string,  // 优化目标---> OPTIMIZATIONGOAL_CLICK->点击  OPTIMIZATIONGOAL_ECOMMERCE_ORDER->下单 OPTIMIZATIONGOAL_FOLLOW->关注 
    bid_strategy?: string,   // 投放模式--->  BID_STRATEGY_AVERAGE_COST->均衡投放  BID_STRATEGY_TARGET_COST->跑量优先  BID_STRATEGY_PRIORITY_CAP_COST->控制成本上线
    smart_bid_type?: string,  // 投放模式--->  SMART_BID_TYPE_CUSTOM->手动模式  SMART_BID_TYPE_SYSTEMATIC->自动模式
    auto_acquisition_enabled?: "false", //
    cold_start_audience?: "[]",
    // 
    deep_conversion_spec?: {  // 深度优化
        deep_conversion_type: string,  // DEEP_CONVERSION_WORTH->优化转化价值
        deep_conversion_worth_spec: {
            goal: string,  // GOAL_1DAY_PURCHASE_ROAS-> 首日付费ROI
            expected_roi: number, // ROI目标值
        }
    },
    dynamic_ad_spec?: { // 商品
        product_catalog_id: number,
        product_source: string,
        product_mode: string, // "SINGLE"
    }
}

export interface Adcreative {
    account_id: string,  // "17383887"
    campaign_id: string,
    adcreative_name: string,   // 创意名称
    adcreative_template_id: string,  // 卡片横版大图 = 1707， 常规大图=311，常规3图=641，常规4图=642，常规6图=643
    //卡片横版视频 = 1708，竖版视频750:1536 =1064，竖版视频750:1334=1480，常规视频16:9=1465，常规视频4:3=618
    //竖版视频720:1280=721，大图式卡片=928
    page_type: string,   // 点击跳转--->   PAGE_TYPE_CANVAS_WECHAT->原生页推广页  PAGE_TYPE_MOMENTS_SIMPLE_NATIVE_WECHAT->简版原生页
    adcreative_elements: {
        image?: number | string,  // 外层素材图片ID
        image_list?: string[],  // 外层素材图片ID
        video?: number | string,  // 外层素材视频ID
        short_video_struct?: {
            short_video1?: string,  // 3227371489 视频
        },
        title?: string   // 外层文案标题
        description?: string  // 外层文案
        caption?: string // 次行文案
        left_bottom_txt?: string, // 第三行文案
        corporate?: {
            corporate_name: string, // "龙天书涯"
            corporate_img: string,  //  "4030295804"
        },
        info_bar_spec?: { // 信息栏类型
            info_bar_switch: true,
            info_bar_type: "INFO_BAR_TYPE_HEAD" | "INFO_BAR_TYPE_TITLE", // INFO_BAR_TYPE_HEAD---->头像 INFO_BAR_TYPE_TITL--->文案
            info_bar_title: "",
            info_bar_description: string, // 文案输入 头像空
            info_bar_head_description: string, // INFO_BAR_TYPE_HEAD 传入 "龙天书涯"  INFO_BAR_TYPE_TITLE 传入 ""
            info_bar_head_image_id: string,  //  INFO_BAR_TYPE_HEAD 传入 "4030295804" INFO_BAR_TYPE_TITLE 传入 ""
        }
    },
    page_spec: {
        page_id: string | number,  // 落地页ID 我们平台传name
        override_canvas_head_option?: string, // 外层素材 外层素材来源 使用落地页->OPTION_CANVAS_OVERRIDE_CREATIVE  使用上传->OPTION_KEEP_DIFFERENT
    },
    link_page_spec?: {
        page_id: string | number,
    }
    countdown_switch: "false",
    head_click_type?: "HEAD_CLICK_TYPE_DEFAULT",
    site_set: string[],   //流量位--->  SITE_SET_MOMENTS->朋友圈信息流  SITE_SET_WECHAT->公众平台流量
    promoted_object_type: 'PROMOTED_OBJECT_TYPE_WECHAT_OFFICIAL_ACCOUNT' | 'PROMOTED_OBJECT_TYPE_WECHAT_CHANNELS', //推广目标--->  PROMOTED_OBJECT_TYPE_WECHAT_OFFICIAL_ACCOUNT->公众号推广  PROMOTED_OBJECT_TYPE_WECHAT_CHANNELS->视频号推广
    promoted_object_id: string,   /// wxf82b302b1dde69e9
    link_page_type?: string, // 文字链类型--->  LINK_PAGE_TYPE_WECHAT_OFFICIAL_ACCOUNT_DETAIL->微信公众号详情页 LINK_PAGE_TYPE_CANVAS_WECHAT->微信原生页
    link_name_type?: string,   // 文字链文案---> READ_NOVELS->阅读小说 FOLLOW_OFFICIAL_ACCOUNT->关注公众号 MORE_INFO->了解更多
    conversion_data_type?: string,  // CONVERSION_DATA_DEFAULT
    conversion_target_type?: string,  // CONVERSION_TARGET_DEFAULT
}

export type Material = {
    page_name: string,  // 落地页名称
    type?: "video" | "image",
    url?: string,
}