package cn.axzo.workflow.common.model.request.category;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class CategoryCreateDTO {

    /**
     * 字典标签
     */
    @ApiModelProperty(value = "字典标签", example = "新业务")
    @Length(max = 50, message = "字典标签最长只支持255个字符")
    @NotBlank(message = "字典标签表示不能为空")
    private String label;

    /**
     * 字典值
     */
    @ApiModelProperty(value = "字典值", example = "new_business")
    @Length(max = 50, message = "字典值最长只支持50个字符")
    @NotBlank(message = "字典值表示不能为空")
    private String value;

    /**
     * 字典类型
     */
    @ApiModelProperty(value = "字典类型", example = "字典类型(用于字典分组)")
    private String type;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "remark")
    @Length(max = 250, message = "备注最长只支持250个字符")
    private String remark;

    /**
     * 字典排序
     */
    @ApiModelProperty(value = "字典排序", example = "1")
    private Long sort;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", example = "true or false")
    private Boolean status;

    /**
     * 创建人姓名
     */
    @ApiModelProperty(value = "创建人姓名", example = "张三")
    private String operatorName;

    /**
     * 工作台类型: 1企业工作台 2项目部工作台 3政务监管工作台 6OMS工作台
     */
    @ApiModelProperty(value = "工作台类型值, 1企业工作台 2项目部工作台 3政务监管工作台 6OMS工作台")
    private String workspaceCodeType;

    /**
     * 租户
     */
    @ApiModelProperty(value = "租户", example = "1")
    private String tenantId = "";

}
