package com.zm.order.tool.server.dto;

import com.alibaba.fastjson.JSON;
import com.zm.order.tool.server.model.SimpleMetadataRequest;

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

/**
 * @author 陈标
 * @Description
 * @Date 2020/7/23 0023 17:07
 */
public class MetadataDTO {

    /**
     * id
     */
    private Long id ;


    /**
     * 业务类型
     */
    private String bizType;


    /**
     * 属性
     */
    private String property;

    /**
     * 值
     */
    private String  value;

    /**
     * 描述
     */
    private String description;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 修改时间
     */
    private Date updatedAt;

    /**
     * 删除标识
     */
    private Integer isDeleted;

    /**
     * 元数据值和描述
     */
    private List<SimpleMetadataRequest> simpleMetadata;

    public List<SimpleMetadataRequest> getSimpleMetadata() {
        return simpleMetadata;
    }

    public void setSimpleMetadata(List<SimpleMetadataRequest> simpleMetadata) {
        this.simpleMetadata = simpleMetadata;
    }

    public Long getId() {
        return id;
    }

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

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDescription() {
        return description;
    }

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

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
