-
Notifications
You must be signed in to change notification settings - Fork 224
Open
Description
@DaTa
public class AddClassParams {
@NotNull(message = "班级信息不能为空")
@ApiModelProperty(value = "班级信息")
@FluentValid
private ClassParamsForInsert classInfo;
}
@DaTa
public class ClassParamsForInsert {
@NotNull(message = "班级名称不能为空")
@FluentValidate(value = {StringValidator.class})
@ApiModelProperty(value = "班级名称", example = "秋季1期低年级11班")
private String className;
@NotNull(message = "班主任id不能为空")
@ApiModelProperty(value = "班主任Id", example = "72608")
private Long counselorId;
@NotNull(message = "学期id不能为空")
@ApiModelProperty(value = "学期Id", example = "17")
private Long termId;
@ApiModelProperty(value = "售卖课程包Id", example = "1")
private Long coursePackageId;
}
@FluentValidate 可以生效,@NotNull之类的hibernate validator全部失效
Metadata
Metadata
Assignees
Labels
No labels