package com.amms.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 藏品对象 relic
 */
public class Relic {

    /** 藏品id */
    private Long id;

    /** 名称 */
    private String name;

    /** 分类ID */
    private Long categoryId;

    /** 封面图地址 */
    private String coverImageUrl;

    /** 年代 */
    private String age;

    /** 材质 */
    private String material;

    /** 出土信息 */
    private String excavationInfo;

    /** 文物故事 */
    private String story;

    /** 3D/360°图地址 */
    private String modelUrl;

    /** 热门标识（0否 1是） */
    private Long isHot;

    /** 状态（0隐藏 1显示） */
    private Long status;

    /** 创建者id */
    private Long creator;

    /** 更新者id */
    private Long updater;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 分类信息 */
    private ItemCategory categoryInfo;

    /** 收藏信息 */
    private List<ItemCollection> itemCollections;

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

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCoverImageUrl(String coverImageUrl) {
        this.coverImageUrl = coverImageUrl;
    }

    public String getCoverImageUrl() {
        return coverImageUrl;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAge() {
        return age;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getMaterial() {
        return material;
    }

    public void setExcavationInfo(String excavationInfo) {
        this.excavationInfo = excavationInfo;
    }

    public String getExcavationInfo() {
        return excavationInfo;
    }

    public void setStory(String story) {
        this.story = story;
    }

    public String getStory() {
        return story;
    }

    public void setModelUrl(String modelUrl) {
        this.modelUrl = modelUrl;
    }

    public String getModelUrl() {
        return modelUrl;
    }

    public void setIsHot(Long isHot) {
        this.isHot = isHot;
    }

    public Long getIsHot() {
        return isHot;
    }

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

    public Long getStatus() {
        return status;
    }


    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Long getCreator() {
        return creator;
    }


    public void setUpdater(Long updater) {
        this.updater = updater;
    }

    public Long getUpdater() {
        return updater;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public ItemCategory getCategoryInfo() {
        return categoryInfo;
    }

    public void setCategoryInfo(ItemCategory categoryInfo) {
        this.categoryInfo = categoryInfo;
    }

    public List<ItemCollection> getItemCollections() {
        return itemCollections;
    }

    public void setItemCollections(List<ItemCollection> itemCollections) {
        this.itemCollections = itemCollections;
    }

    @Override
    public String toString() {
        return "Relic{" +
            "id=" + id +
            ", name=" + name +
            ", categoryId=" + categoryId +
            ", coverImageUrl=" + coverImageUrl +
            ", age=" + age +
            ", material=" + material +
            ", excavationInfo=" + excavationInfo +
            ", story=" + story +
            ", modelUrl=" + modelUrl +
            ", isHot=" + isHot +
            ", status=" + status +
            ", createTime=" + createTime +
            ", creator=" + creator +
            ", updateTime=" + updateTime +
            ", updater=" + updater +
        '}';
    }
}
