package com.ema.admin.modules.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 系统角色信息表 实体类。
 *
 * @author LIJIAN
 * @since 2026-03-23
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("系统角色信息SaveVo")
public class SysRoleSaveVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    @ApiModelProperty("角色ID")
    private String id;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称", required = true)
    private String roleName;

    /**
     * 角色权限Key (例如: admin, common)
     */
    @ApiModelProperty(value = "角色权限Key (例如: admin, common)", required = true)
    private String roleKey;

    /**
     * 角色状态 (0停用 1正常)
     */
    @ApiModelProperty(value = "角色状态 (0停用 1正常)", required = true)
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty(value = "菜单ID列表")
    @NotEmpty(message = "菜单ID列表不能为空")
    private List<String> menuIds;
}
