package com.example.demo.model;

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

/**
 * 字典项实体。
 * <p>对应数据库 dict_item 表，存储具体字典取值。</p>
 */
@Schema(description = "字典项实体")
public class DictItem {

    @Schema(description = "字典项ID", example = "1")
    private Long itemId;

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

    @Schema(description = "字典项标签", example = "男")
    private String itemLabel;

    @Schema(description = "字典项值", example = "M")
    private String itemValue;

    @Schema(description = "排序号", example = "1")
    private Integer sortOrder;

    public DictItem() {}

    public DictItem(Long itemId, Long typeId, String itemLabel, String itemValue, Integer sortOrder) {
        this.itemId = itemId;
        this.typeId = typeId;
        this.itemLabel = itemLabel;
        this.itemValue = itemValue;
        this.sortOrder = sortOrder;
    }

    public Long getItemId() { return itemId; }
    public void setItemId(Long itemId) { this.itemId = itemId; }
    public Long getTypeId() { return typeId; }
    public void setTypeId(Long typeId) { this.typeId = typeId; }
    public String getItemLabel() { return itemLabel; }
    public void setItemLabel(String itemLabel) { this.itemLabel = itemLabel; }
    public String getItemValue() { return itemValue; }
    public void setItemValue(String itemValue) { this.itemValue = itemValue; }
    public Integer getSortOrder() { return sortOrder; }
    public void setSortOrder(Integer sortOrder) { this.sortOrder = sortOrder; }
}
