package com.writeoff.module.audit.dto;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

public class CreateAuditFlowRequest {
    @NotBlank(message = "流程编码不能为空")
    private String flowCode;
    @NotBlank(message = "流程名称不能为空")
    private String flowName;
    private String effectiveStartAt;
    private String effectiveEndAt;
    @NotEmpty(message = "至少配置一个节点")
    @Valid
    private List<AuditFlowNodeRequest> nodes;

    public String getFlowCode() {
        return flowCode;
    }

    public void setFlowCode(String flowCode) {
        this.flowCode = flowCode;
    }

    public String getFlowName() {
        return flowName;
    }

    public void setFlowName(String flowName) {
        this.flowName = flowName;
    }

    public String getEffectiveStartAt() {
        return effectiveStartAt;
    }

    public void setEffectiveStartAt(String effectiveStartAt) {
        this.effectiveStartAt = effectiveStartAt;
    }

    public String getEffectiveEndAt() {
        return effectiveEndAt;
    }

    public void setEffectiveEndAt(String effectiveEndAt) {
        this.effectiveEndAt = effectiveEndAt;
    }

    public List<AuditFlowNodeRequest> getNodes() {
        return nodes;
    }

    public void setNodes(List<AuditFlowNodeRequest> nodes) {
        this.nodes = nodes;
    }
}
