package com.home4j.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import org.hibernate.validator.constraints.URL;

/**
 * 书签数据传输对象
 */
public class BookmarkDTO {

    public Long id;

    public Long groupId;

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

    @NotBlank(message = "URL不能为空")
    @URL(message = "URL格式不正确")
    @Size(max = 500, message = "URL长度不能超过500")
    public String url;

    @Size(max = 200, message = "描述长度不能超过200")
    public String description;

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

    public Boolean visible;

    public Boolean openInNewTab;

    public Integer sortOrder;
}
