package com.gameplatform.server.model.dto.link;

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 批量删除链接请求DTO
 * 
 * @author GamePlatform
 */
@Schema(description = "批量删除链接请求")
public class BatchDeleteRequest {
    
    @NotEmpty(message = "删除的链接编号列表不能为空")
    @Size(max = 100, message = "单次最多只能删除100个链接")
    @Schema(description = "要删除的链接编号列表", example = "[\"EPRGF7ZJ\", \"XKLD9F2M\", \"QWER5TYU\"]", required = true)
    private List<String> codeNos;
    
    public BatchDeleteRequest() {}
    
    public BatchDeleteRequest(List<String> codeNos) {
        this.codeNos = codeNos;
    }
    
    public List<String> getCodeNos() {
        return codeNos;
    }
    
    public void setCodeNos(List<String> codeNos) {
        this.codeNos = codeNos;
    }
}
