update - 添加参数校验
This commit is contained in:
parent
48fbc4b03a
commit
d85fec8867
@ -28,7 +28,7 @@ public class AttachmentDTO {
|
||||
private AttachmentTypeEnum type;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
* 文件名称,需携带附件的后缀
|
||||
*/
|
||||
@ApiModelProperty(value = "文件名称不能为空")
|
||||
@NotBlank(message = "文件名称不能为空")
|
||||
|
||||
@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
@ -37,6 +38,7 @@ public class BpmnTaskCommentDTO implements Serializable {
|
||||
private BpmnTaskCommentExtDTO commentExt;
|
||||
|
||||
@ApiModelProperty(value = "附件列表")
|
||||
@Valid
|
||||
private List<AttachmentDTO> attachmentList;
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user