package com.example.demo.model;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 字典类型实体。
 * <p>对应数据库 dict_type 表，定义字典分类。</p>
 */
@Schema(description = "字典类型实体")
public class DictType {

    @Schema(description = "字典类型ID", example = "1")
    private Long typeId;

    @Schema(description = "字典类型名称", example = "性别")
    private String typeName;

    @Schema(description = "字典类型编码", example = "gender")
    private String typeCode;

    @Schema(description = "状态：0-停用，1-启用", example = "1")
    private Integer status;

    @Schema(description = "创建时间", example = "2024-01-01 00:00:00")
    private String createTime;

    public DictType() {}

    public DictType(Long typeId, String typeName, String typeCode, Integer status, String createTime) {
        this.typeId = typeId;
        this.typeName = typeName;
        this.typeCode = typeCode;
        this.status = status;
        this.createTime = createTime;
    }

    public Long getTypeId() { return typeId; }
    public void setTypeId(Long typeId) { this.typeId = typeId; }
    public String getTypeName() { return typeName; }
    public void setTypeName(String typeName) { this.typeName = typeName; }
    public String getTypeCode() { return typeCode; }
    public void setTypeCode(String typeCode) { this.typeCode = typeCode; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
    public String getCreateTime() { return createTime; }
    public void setCreateTime(String createTime) { this.createTime = createTime; }
}
