package com.sckw.system.model.vo.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * 字典响应类
 * @author system
 * @date 2024
 */
@Data
public class SysDictResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 字典类型id
     */
    @Schema(description = "字典类型id")
    private Long dictId;

    /**
     * 选项值
     */
    @Schema(description = "选项值")
    private String value;

    /**
     * 字典名称
     */
    @Schema(description = "字典名称")
    private String label;

    /**
     * 类型
     */
    @Schema(description = "类型")
    private String type;
    /**
     * 类型名称
     */
    @Schema(description = "类型名称")
    private String typeName;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;

    /**
     * 排序（升序）
     */
    @Schema(description = "排序（升序）")
    private Long sort;

    /**
     * 父级编号
     */
    @Schema(description = "父级编号")
    private String parentId;
    /**
     * 上级字典名称
     */
    @Schema(description = "上级字典名称")
    private String parentName;

    /**
     * 图标、文件等
     */
    @Schema(description = "图标、文件等")
    private String url;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 状态:0正常/1锁定
     */
    @Schema(description = "状态:0正常/1锁定")
    private Integer status;
    /**
     * 状态名称
     */
    @Schema(description = "状态名称")
    private String statusName;


    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private Long createBy;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private Long updateBy;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 删除标识(0正常/-1删除)
     */
    @Schema(description = "删除标识(0正常/-1删除)")
    private Integer delFlag;
}
