package com.boyue.hasfj.domain;

import com.boyue.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.boyue.common.annotation.Excel;

/**
 * 司法局法律规定、典型案例、单下载对象 html_pages
 * 
 * @author boyue
 * @date 2025-05-28
 */
@Schema(description = "司法局法律规定、典型案例、单下载对象")
public class HtmlPages extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 序号 */
    @Schema(title = "序号")
    @Excel(name = "序号")
    private Long id;

    /** 访问id */
    @Schema(title = "访问id")
    @Excel(name = "访问id")
    private String formatId;

    /** 页面标题 */
    @Schema(title = "页面标题")
    @Excel(name = "页面标题")
    private String title;

    /** HTML内容 */
    @Schema(title = "HTML内容")
    @Excel(name = "HTML内容")
    private String content;

    /** 页面类型：法律规定 law、典型案例 case、表单下载from */
    @Schema(title = "页面类型：法律规定 law、典型案例 case、表单下载from")
    @Excel(name = "页面类型：法律规定 law、典型案例 case、表单下载from")
    private String pageType;

    /** 页面访问URL */
    @Schema(title = "页面访问URL")
    @Excel(name = "页面访问URL")
    private String pageUrl;

    /** 状态：1-启用，0-禁用 */
    @Schema(title = "状态：1-启用，0-禁用")
    @Excel(name = "状态：1-启用，0-禁用")
    private Integer status;

    /** 排序序号，数值越小排序越靠前，用于自定义显示顺序 */
    @Schema(title = "排序序号，数值越小排序越靠前，用于自定义显示顺序")
    @Excel(name = "排序序号，数值越小排序越靠前，用于自定义显示顺序")
    private Long sortOrder;

    /** 浏览次数，记录页面被访问的总次数 */
    @Schema(title = "浏览次数，记录页面被访问的总次数")
    @Excel(name = "浏览次数，记录页面被访问的总次数")
    private Long viewCount;

    /** 作者/负责人，记录页面的创建者或负责维护的人员 */
    @Schema(title = "作者/负责人，记录页面的创建者或负责维护的人员")
    @Excel(name = "作者/负责人，记录页面的创建者或负责维护的人员")
    private String author;

    /** SEO关键词，用于搜索引擎优化 */
    @Schema(title = "SEO关键词，用于搜索引擎优化")
    @Excel(name = "SEO关键词，用于搜索引擎优化")
    private String keywords;

    /** SEO描述，用于搜索引擎结果展示的页面摘要 */
    @Schema(title = "SEO描述，用于搜索引擎结果展示的页面摘要")
    @Excel(name = "SEO描述，用于搜索引擎结果展示的页面摘要")
    private String description;

    /** 多附件URLs，JSON格式存储多个附件信息
     * 格式: [{"name":"文件名","url":"文件路径","size":"文件大小"}]
     */
    @Schema(title = "多附件URLs，JSON格式存储", description = "格式: [{'name':'文件名','url':'文件路径','size':'文件大小'}]")
    @Excel(name = "多附件URLs", type = Excel.Type.EXPORT)
    private String multiAttachments;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setFormatId(String formatId) 
    {
        this.formatId = formatId;
    }

    public String getFormatId() 
    {
        return formatId;
    }


    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }


    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }


    public void setPageType(String pageType) 
    {
        this.pageType = pageType;
    }

    public String getPageType() 
    {
        return pageType;
    }


    public void setPageUrl(String pageUrl) 
    {
        this.pageUrl = pageUrl;
    }

    public String getPageUrl() 
    {
        return pageUrl;
    }


    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }


    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }


    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }


    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }


    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }


    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setMultiAttachments(String multiAttachments)
    {
        this.multiAttachments = multiAttachments;
    }

    public String getMultiAttachments()
    {
        return multiAttachments;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("formatId", getFormatId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("pageType", getPageType())
            .append("pageUrl", getPageUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("sortOrder", getSortOrder())
            .append("viewCount", getViewCount())
            .append("author", getAuthor())
            .append("keywords", getKeywords())
            .append("description", getDescription())
            .append("multiAttachments", getMultiAttachments())
            .toString();
    }
}
