package com.njcn.system.pojo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * pqs
 *
 * @author cdf
 * @date 2022/1/26
 */
@Data
@ApiModel
public class MxGraphParam {

    @ApiModelProperty(name = "title",value = "组态标题",required = true)
    @NotBlank(message = "组态标题不可为空")
    private String title;

    @ApiModelProperty(name = "mxContent",value = "组态内容",required = true)
    @NotBlank(message = "内容不可为空")
    private String mxContent;

    @ApiModelProperty(name = "bgImage",value = "组态背景图")
    private String bgImage;

    @ApiModelProperty(name = "sort",value = "排序",required = true)
    @NotNull(message = "排序不可为空")
    private Integer sort;
}
