package com.home4j.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 分组数据传输对象
 */
public class GroupDTO {

    public Long id;

    @NotBlank(message = "分组名称不能为空")
    @Size(max = 100, message = "分组名称长度不能超过100")
    public String name;

    @Size(max = 50, message = "图标名称长度不能超过50")
    public String icon;

    public Boolean visible;

    public Integer sortOrder;
}
