生成单元测试代码.
This commit is contained in:
@@ -15,11 +15,11 @@ import org.hibernate.validator.constraints.Range;
|
||||
@Data
|
||||
public class PageRequest implements IPageRequest {
|
||||
|
||||
@Range(min = 1, max = 10000)
|
||||
@Range(min = 1, max = 10000, groups = IPageRequest.class)
|
||||
@Schema(description = "页码")
|
||||
private int page;
|
||||
|
||||
@Range(min = 1, max = 100)
|
||||
@Range(min = 1, max = 100, groups = IPageRequest.class)
|
||||
@Schema(description = "大小")
|
||||
private int limit;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class BaseDO implements Serializable {
|
||||
*/
|
||||
@TableLogic
|
||||
@Schema(description = "是否删除 0未删除 1已删除")
|
||||
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.BIT)
|
||||
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.TINYINT)
|
||||
private Boolean deleted;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user