package com.mosquito.project.dto;

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

public class ShortenRequest {
    @NotBlank(message = "原始URL不能为空")
    @Size(min = 10, max = 2048, message = "URL长度必须在10-2048个字符之间")
    private String originalUrl;

    public String getOriginalUrl() { return originalUrl; }
    public void setOriginalUrl(String originalUrl) { this.originalUrl = originalUrl; }
}

