package cn.iocoder.lyzsys.module.tjt.controller.admin.office.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(description = "管理后台 - 专业所新增/修改 Request VO")
@Data
public class OfficeSaveReqVO {

    @Schema(description = "专业所 ID", example = "1")
    private Long id;

    @Schema(description = "专业所名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "建筑一所")
    @NotBlank(message = "专业所名称不能为空")
    @Size(max = 100, message = "专业所名称长度不能超过 100 个字符")
    private String officeName;

    @Schema(description = "专业所编码", example = "JZY")
    @Size(max = 50, message = "专业所编码长度不能超过 50 个字符")
    private String officeCode;

    @Schema(description = "排序号", example = "1")
    private Integer sortNo;

    @Schema(description = "是否启用", example = "true")
    private Boolean enabledFlag;

    @Schema(description = "备注", example = "默认专业所")
    @Size(max = 255, message = "备注长度不能超过 255 个字符")
    private String remark;

}
