package com.jy.flow.model.dto;

import cn.hutool.core.util.ObjectUtil;
import lombok.Setter;
import org.dromara.warm.flow.orm.entity.FlowDefinition;

@Setter
public class FlowDefinitionDto extends FlowDefinition {

    /**
     * 页数
     */
    private Integer pageNum;

    /**
     * 每页条数
     */
    private Integer pageSize;

    public Integer getPageNum() {
        return ObjectUtil.defaultIfNull(pageNum, 1);
    }

    public Integer getPageSize() {
        return ObjectUtil.defaultIfNull(pageSize, 10);
    }

}
