package com.chushang.inspection.project.dto;

import com.chushang.common.core.validator.Create;
import com.chushang.common.core.validator.Update;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TaskGraphDTO {

    @NotNull(message = "任务id不能为空", groups = Create.class)
    @NotNull(message = "任务id不能为空", groups = Update.class)
    private Long taskId;

    @NotBlank(message = "签名名称不能为空", groups = Create.class)
    @NotBlank(message = "签名名称不能为空", groups = Update.class)
    private String graphName;

    @NotBlank(message = "签名图片不能为空", groups = Create.class)
    @NotBlank(message = "签名图片不能为空", groups = Update.class)
    private String imgUrl;

}
