ValidGroup.java
499 Bytes
package com.infoloop.tianting.utils;
import javax.validation.groups.Default;
/**
* 分组校验 用于一个DTO对象在新增的时候某些字段为必填,在更新的时候又非必填
*/
public interface ValidGroup extends Default {
interface Crud extends ValidGroup {
interface Create extends Crud {
}
interface Update extends Crud {
}
interface Query extends Crud {
}
interface Delete extends Crud {
}
}
}