package com.ruoyi.zzb.study.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;


@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("STUDY_DOC_INFO")
public class StudyDocInfo {


    @TableId(type = IdType.ASSIGN_ID)
    private String  docId;
    private String  datasourceCode;
    private String  datasourceName;

    @NotBlank
    private String  title;
    @NotBlank
    private String  content;
    private String  url;
    private String  urlType;

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date docSrcTime;

    //逻辑删除
    @TableLogic
    private Integer  deleteStatus;
    private Integer  pageViewNum;

    private String  createUserId;
    private String  createUserName;
    private String  createPoliceNo;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date  createTime;
    private Integer  isTop;
    private Integer  orderNum;

}
