/**
 * Copyright (c) 2018-2099, Chill Zhuang 庄骞 (bladejava@qq.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xiaoniu.subsystem.system.domain.dto;

import com.xiaoniu.common.core.resdata.BaseQueryDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.List;

/**
 * 单位管理表数据传输对象实体类
 *
 * @author sst
 * @since 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UnitPageDTO extends BaseQueryDTO {
	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 类型（0机关单位 1承训单位）
	 */
	@Schema(description = "类型（0机关单位 1承训单位）")
	@NotBlank(message="类型（0机关单位 1承训单位）不能为空")
	private String type;
	/**
	 * 父单位id
	 */
	@Schema(description = "父单位id")
	private Long parentId;
	/**
	 * 父单位id集合
	 */
	@Schema(description = "父单位id集合")
	private List<Long> parentIds;
	/**
	 * 单位名称
	 */
	@Schema(description = "单位名称")
	private String unitName;
	/**
	 * 单位代码
	 */
	@Schema(description = "单位代码")
	private String unitCode;
	/**
	 * 部队番号
	 */
	@Schema(description = "部队番号")
	private String unitDesignation;
	/**
	 * 联系人
	 */
	@Schema(description = "联系人")
	private String contactPerson;

	/**
	 * 主键集合
	 */
	@Schema(description = "主键集合")
	private String ids;


}
