package cn.iocoder.yudao.module.mes.controller.admin.safety.vo.org;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.Size;
|
import lombok.Data;
|
|
/**
|
* 安全生产 - 安全组织新增/修改 Request VO
|
*
|
* @author 超级管理员
|
*/
|
@Schema(description = "管理后台 - 安全组织新增/修改 Request VO")
|
@Data
|
public class SafetyOrgSaveReqVO {
|
|
private Long id;
|
|
@Schema(description = "父级编号,0 为顶级", example = "0")
|
private Long parentId;
|
|
@Schema(description = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "安全生产委员会")
|
@NotBlank(message = "组织名称不能为空")
|
@Size(max = 100, message = "组织名称长度不能超过 100 字")
|
private String name;
|
|
@Schema(description = "负责人姓名")
|
@Size(max = 50)
|
private String leaderName;
|
|
@Schema(description = "负责人电话")
|
@Size(max = 30)
|
private String leaderPhone;
|
|
@Schema(description = "成员姓名,逗号分隔")
|
@Size(max = 500)
|
private String memberNames;
|
|
@Schema(description = "安全职责")
|
@Size(max = 500)
|
private String duty;
|
|
@Schema(description = "显示顺序", example = "1")
|
@NotNull(message = "显示顺序不能为空")
|
private Integer sort;
|
|
@Schema(description = "状态:0-启用,1-停用", example = "0")
|
@NotNull(message = "状态不能为空")
|
private Integer status;
|
|
@Schema(description = "备注")
|
@Size(max = 500)
|
private String remark;
|
|
}
|