package com.njcn.system.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.njcn.db.bo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Description:
 * Date: 2025/05/23  下午 3:22【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
public class PqDashboardPageVO extends BaseEntity {
    /**
     * id
     */
    private String id;

    /**
     * 页面名称
     */
    private String pageName;

    /**
     * 页面缩略图URL
     */
    private String thumbnail;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 容器集合配置
     */
    private String containerConfig;

    /**
     * 排序序号
     */
    private Integer sort;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 0未激活，1激活
     */
    private Integer state;

    /**
     * 创建用户
     */
    private String createBy;

    @ApiModelProperty("绑定页面路由")
    private String pagePath;

    @ApiModelProperty("绑定页面名称")
    private String pathName;

    @ApiModelProperty("路由名称")
    private String routeName;

    @ApiModelProperty("图标")
    private String icon;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    /**
     * 更新用户
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime updateTime;
}