package cn.iocoder.yudao.server.controller.admin.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 门户流程配置新增/修改 Request VO")
@Data
public class FlowSaveReqVO {

    @Schema(description = "门户流程ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19903")
    private Long id;

    @Schema(description = "流程分组id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long groupId;

    @Schema(description = "分组子名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "分组子名称不能为空")
    private String flowName;

    @Schema(description = "流程跳转连接", example = "https://www.iocoder.cn")
    private String flowUrl;

    @Schema(description = "流程跳转首页")
    private String indexUrl;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态（0正常 1停用）不能为空")
    private Integer status;
    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "类型")
    private String type;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}