package com.jy.system.model.dto;

import com.jy.framework.model.validation.AddGroup;
import com.jy.framework.model.validation.EditGroup;
import com.jy.system.model.entity.SysUser;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 用户新增编辑入参实体
 *
 * @author
 * @since 2024-06-20
 */
@Getter
@Setter
public class SysUserDto extends SysUser {

    /**
     * 角色id列表
     */
    @NotNull(groups = {AddGroup.class, EditGroup.class})
    private List<Long> roleIdList;

}
