生成单元测试代码.

This commit is contained in:
lijiahang
2023-08-24 19:14:27 +08:00
parent de4569890f
commit 58901b5903
14 changed files with 292 additions and 110 deletions

View File

@@ -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;

View File

@@ -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;
}