package com.casic.missiles.dto.system;

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

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @Description: 签名、签章新建请求实体
 * @Author: wangpeng
 * @Date: 2022/12/1 14:32
 */
@ApiModel
@Data
public class SignAddRequest {

    /**
     * 签章/签名名称
     */
    @ApiModelProperty(value = "名称", dataType = "String", required = true)
    @NotBlank(message = "名称不能为空")
    private String signName;

    /**
     * 签章/签名描述
     */
    @ApiModelProperty(value = "描述", dataType = "String")
    private String signDesc;

    /**
     * 签章/签名负责人
     */
    @ApiModelProperty(value = "负责人", dataType = "String", required = true)
//    @NotBlank(message = "负责人不能为空")
    private String signDirector;

    /**
     * 签名用户id
     */
    @ApiModelProperty(value = "签名用户id", dataType = "Long", required = true)
    private Long signUserId;

    /**
     * 签章或签名-字典code
     */
    @NotBlank(message = "类型不能为空")
    @ApiModelProperty(value = "签名/签章-字典code", dataType = "String", required = true)
    private String signType;

    /**
     * minio存储文件名
     */
    @ApiModelProperty(value = "上传文件返回名称", dataType = "String")
    @NotBlank(message = "上传文件不能为空")
    private String minioFileName;

    @ApiModelProperty(value = "可使用人列表", dataType = "List")
//    @NotEmpty(message = "可使用人不能为空")
    private List<Long> userIdList;
}
