package com.ai.da.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@ApiModel("Library编辑")
public class LibraryUpdateDTO {

    @NotEmpty(message = "libraryIds cannot be empty!")
    @Size(max = 100, min = 1)
    @ApiModelProperty("libraryId数组")
    private List<Long> libraryIds;

    @NotBlank(message = "libraryName cannot be empty!")
    @ApiModelProperty("library名字")
    private String libraryName;

    @NotBlank(message = "timeZone cannot be empty!")
    @ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
    private String timeZone;

}
