package com.corewing.app.dto.AppModel;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

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

@Data
public class ModelCreateRequest {

    @ApiModelProperty(value = "模型标题", required = true)
    @NotBlank(message = "模型标题不能为空")
    private String title;

    @ApiModelProperty(value = "模型描述", required = true)
    @NotBlank(message = "模型描述不能为空")
    private String description;

    @ApiModelProperty(value = "模型分类id", required = true)
    @NotBlank(message = "模型分类id不能为空")
    private String categoryId;

    @ApiModelProperty(value = "模型封面", required = true)
    @NotBlank(message = "模型封面不能为空")
    private String coverImage;

    @ApiModelProperty(value = "备注", required = false)
    private String remark;

    @ApiModelProperty("模型文件")
    @NotNull(message = "模型文件不能为空")
    private List<MultipartFile> files;

}
