package io.modules.item.dto;

import io.modules.item.entity.FrontUserEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 主表
 *
 * @author Mark #
 * @since 1.0.0 2025-01-24
 */
@Data
@Schema(name = "主表")
public class CertificatesDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	private Long id; // 编号
	private Integer isBlock;
	private Long certificateNumber; // 证书编号

	private Long userId; // 用户 ID

	private Date issueDate; // 签发日期

	private Date expireDate; // 过期日期

	private String certificateData; // 详情（JSON 字符串）
	private String img;
	private String blockchainTxId; // 区块链交易 ID

	private Integer status; // 1: 有效，0: 撤销，2: 过期

	private Date createdAt; // 创建时间

	private Integer auditStatus;
	private String auditComments;
	private UserDTO user;

}
