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;

    @ApiModelProperty(value = "工作台类型值")
    private String workspaceCodeType;

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

}
