package cn.iocoder.yudao.module.knowledge.controller.requestdto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.module.knowledge.annotation.ExcelOut;
import cn.iocoder.yudao.module.knowledge.entity.TMapImage;
import cn.iocoder.yudao.module.knowledge.entity.TMapNode;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

@Data
public class TMapRequest extends PageParam {


    @Schema(description = "主键", example = "1")
    private Long id;

    @Schema(description = "文件的唯一编码", example = "ABC123")
    private String name;

    @Schema(description = "名称", example = "文件名称")
    private String modelTag;

    @Schema(description = "创建者", example = "John Doe")
    private String creator;

    @Schema(description = "创建者id", example = "1001")
    private String creatorId;

    @TableField(
            fill = FieldFill.INSERT
    )
    @ExcelOut(name = "创建时间", sort = 6 ,width = 25,dateFormat = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;

    @Schema(description = "地图节点集合", example = "list")
    private List<TMapNode> node;

    @Schema(description = "父级地图节点id", example = "list")
    private Long parentId;

    @Schema(description = "地图id", example = "list")
    private Long mapId;

    @Schema(
            description = "图片",
            example = "jpg"
    )
    private List<TMapImage> imgList;


}
