package com.iailab.module.oss.dto;
|
|
import com.iailab.framework.common.validation.group.AddGroup;
|
import com.iailab.framework.common.validation.group.DefaultGroup;
|
import com.iailab.framework.common.validation.group.UpdateGroup;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import lombok.Data;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.Null;
|
import java.io.Serializable;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2023年12月26日 10:44:00
|
*/
|
@Data
|
@Schema(name = "业务文件")
|
public class OssFileDTO implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
@Schema(name = "id")
|
@Null(message="{id.null}", groups = AddGroup.class)
|
@NotNull(message="{id.require}", groups = UpdateGroup.class)
|
private String id;
|
|
@Schema(name = "业务ID", required = true)
|
@NotBlank(message="{sysapp.appcode.require}", groups = DefaultGroup.class)
|
private String businessId;
|
|
@Schema(name = "类型")
|
private String type;
|
|
@Schema(name = "文件名称")
|
private String fileName;
|
|
@Schema(name = "文件后缀")
|
private String filePostfix;
|
|
@Schema(name = "文件地址")
|
private String url;
|
|
@Schema(name = "排序")
|
private Integer sort;
|
}
|