package com.yunyan.system.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.yunyan.common.core.domain.BaseEntityVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 管理部门与被管理部门的对象 sys_dept_manage
 *
 * @author yunyan
 * @date 2024-10-12
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "sys_dept_manage")
public class DeptManageAddDto extends BaseEntityVo
{
    private static final long serialVersionUID = 1L;

    /** 管理部门ID */
    @NotNull(message = "管理部门ID不能为空")
    @JsonSerialize(using= ToStringSerializer.class)
    @TableId(value = "dept_id_manage", type = IdType.INPUT)
    @ApiModelProperty(value = "管理部门ID")
    private Long deptIdManage;

    /** 被管理部门ID */
    //@NotEmpty(message = "部门ID不能为空")
    @ApiModelProperty(value = "被管理部门ID的集合")
    private List<Long> deptIdList;



}
