package com.cpop.oam.business.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 系统角色表Bo
 *
 * @author DB.lost
 * @since 2023-05-10
 */
@Data
@Accessors(chain = true)
@Schema(description = "系统角色表")
public class RoleBo {

    /**
     * 主键
     */
    @Schema(description ="主键")
    private String id;

    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空")
    @Schema(description ="角色名称")
    private String roleName;

    /**
     * 角色值
     */
    @NotBlank(message = "角色值不能为空")
    @Schema(description ="角色值")
    private String roleValue;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空")
    @Schema(description ="状态")
    private Boolean status;

    /**
     * 备注
     */
    @Schema(description ="备注")
    private String remark;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    @Schema(description ="排序")
    private Integer orderNo;

    /**
     * 菜单集合
     */
    @Schema(description ="菜单集合")
    private List<String> menuIds;

}
