//自助建站接口契约

//首页 start ---------------------------------------->
export interface IWebSiteBase{
    website_foot:IWebSiteFoot;
    website_head:IWebSiteHead;
}

export interface IWebSiteHead{
    ad_key: string;
    api_url: string|null;
    description: string;
    id: number;
    keywords: string;
    login_url: string|null;
    logo: string;
    suffix: string;
    title: string;
    weblog_url: string|null;
    website_name: string;
    website_url: string[];
}

export interface IWebSiteFoot{
    foot_cate:any[];
    foot_info:IWebSiteFootInfo;
    link_foot:any[];
    link_img:any[];
    link_text:any[];
}

export interface IWebSiteFootInfo{
    action_id:number;
    communications:string;
    communications_img:string;
    company_address:string;
    company_logo:string;
    company_name:string;
    company_url:string;
    contact_number:string;
    copyright_information:string;
    created_at:string;
    customer_service:string;
    customer_service_qq:string;
    email:string;
    icp_number:string;
    icp_number_img:string;
    icp_number_url:string;
    id:number;
    online_service:string;
    organizer:string;
    page_type:number[];
    project_logo:string;
    project_name:string;
    project_url:string;
    record_number:string;
    record_number_url:string;
    service_qq_img:string;
    statement:string;
    statistics:string;
    statistics_onetext:string;
    statistics_onetype:string;
    statistics_oneurl:string;
    statistics_twotext:string;
    statistics_twotype:string;
    statistics_twourl:string;
    status:number;
    template_id:number;
    updated_at:string;
    user_id:number;
    website_id:number;
}

export interface IIndexNewsDetail{
    admin_user_id:number;
    article_id:number|null;
    author:string;
    cat_arr_id:string;
    catid:number;
    city_arr_id:string;
    city_id:number;
    commend_id:string;
    copyfrom:string;
    created_at:string;
    department_arr_id:string;
    department_id:number;
    fromurl:string;
    hits:number;
    id:number;
    ignore_ids:string;
    imgurl:string;
    introduce:string;
    ip:string;
    is_original:number;
    is_survey:number;
    islink:number;
    keyword:string;
    level:string;
    level_text:string;
    linkurl:string;
    pinyin:string;
    reason:string|null;
    status:number;
    survey_id:string;
    survey_name:string;
    survey_type:number;
    tag:string;
    title:string;
    updated_at:string;
    web_site_id:string;
    website_id:number;
}
//首页 end ---------------------------------------->

//列表页 start ---------------------------------------->
//列表数据是数组 所以是否为必填无所谓，默认就是空
export interface IListData {
    id: number,
    title: string,
    imgurl: string,
    author: string,
    updated_at: string,
    introduce: string,
    islink: number,
    linkurl: string,
    copyfrom: string,
    cat_arr_id: string|null,
    catid: number,
    category_name: string,
    pinyin: string
}
//列表页 end ---------------------------------------->

//详情页 start ---------------------------------------->
//文章正文
export interface IArticleDetail {
    id?:number;
    catid?:number;
    title:string;//文章标题-必备字段
    introduce:string;//文章简介-必备字段
    tag?:string;
    keyword:string;//关键字-必备字段
    author:string;//作者-必备字段
    copyfrom:string;//来源-必备字段
    fromurl?:string;
    hits?:number;
    ip?:string;
    status?:number;
    islink?:number;
    linkurl?:string;
    imgurl?:string;
    admin_user_id?:number;
    cat_arr_id?:string;
    created_at?:string;
    updated_at:string;//更新时间-必备字段
    is_original?:number;
    survey_id?:string;
    survey_name?:string;
    is_survey?:number;
    survey_type?:number;
    web_site_id?:string;
    ignore_ids?: string|null;
    reason?: string|null;
    department_arr_id?: string;
    department_id?: number;
    city_arr_id?: string;
    city_id?: number;
    level?: string;
    commend_id?: string;
    level_text?: string;
    content: string;//文章正文-必备字段
    article_id?: number;
    website_url?: string|null;
    email?: string|null;
    contacts?: string|null;
    contacts_mobile?:string|null;
    contacts_address?:string|null;
    zip_code?: string|null;
    enterprise_name?: string|null;
    category_id?: number;
    cat_name?: string;
    website_name: string;//网站名称-必备字段
    suffix: string;//关键字-必备字段
    commendArticle?:any[];//推荐文章，暂时未确定
}
//投票结果
export interface ISurveyResult {
    choice: number[];
    data: ISurveyResultData[];
}
export interface ISurveyResultData {
    art_id: number;
    choice_name: string;
    created_at: string;
    id: number;
    is_other: number;
    other_id: number;
    results: number;
    sur_id: string;
    survey_name: string;
    updated_at: string;
    user_id: number|null;
    website_id: number;
    status?:number;
}
//详情页 end ---------------------------------------->

//单页-详情/列表 start ---------------------------------------->
export interface INewsDetail {
    id?:number;
    list_title?:string;
    con_title:string;
    content:string;
    fcat_id?:number;
    created_at?:string;
    updated_at?:string;
    type_id:number;
}

//左侧悬浮菜单
export interface IBottomMenu {
    id:number;
    name:string;
    website_id:number;
    type:number;
    created_at:string;
    updated_at:string;
    name_pinyin:string;
    pid:number;
}
//单页-详情 end ---------------------------------------->

