package com.xunmei.common.core.domain.edu.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author jingyuanchao
 * @date 2023/8/22 10:26
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "SysLearningMaterials分页Vo", description = "学习资料分页Vo")
public class SysLearningMaterialsPageVo {

    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "资料标题")
    private String title;

    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @ApiModelProperty(value = "资料类型名称(知识库标签名称)")
    private String knowledgeName;

    @ApiModelProperty(value = "所属机构")
    private Long orgId;

    @ApiModelProperty(value = "机构名称")
    private String orgName;

    @ApiModelProperty(value = "是否公开,0:未公开,1:已公开")
    private Integer isOpen;

    @ApiModelProperty(value = "上传人")
    private String createBy;

    @ApiModelProperty(value = "上传时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "附件")
    private String file;

    @ApiModelProperty(value = "备注")
    private String remark;
}
