package com.example.demo.model;

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

/**
 * 字典项实体。
 */
@Schema(description = "字典项实体")
public class DictItem {

    @Schema(description = "项ID")
    private Long id;

    @Schema(description = "类型ID")
    private Long typeId;

    @Schema(description = "项标签")
    private String itemLabel;

    @Schema(description = "项值")
    private String itemValue;

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

    public DictItem() {
    }

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

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    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; }
}
