package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.system.domain.SysRolePermission;

import java.util.List;

/**
 * 角色和菜单关联业务对象 sys_role_permission
 *
 * @author shihongwei
 * @date 2025-12-24
 */
@Data
@AutoMapper(target = SysRolePermission.class, reverseConvertGenerate = false)
public class SysRolePermissionBo {

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空", groups = {AddGroup.class})
    private Long roleId;

    /**
     * 菜单ID
     */
    @NotNull(message = "菜单ID不能为空", groups = {AddGroup.class})
    private List<Long> menuIds;

}
