package com.lantone.security.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 角色对象
 */
@Data
public class UpdateRoleVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号", required = true)
    @NotNull(message = "角色编号不能为空")
    private Long id;

    @ApiModelProperty(value = "角色名称", required = true)
    @NotBlank(message = "角色名称不能为空")
    private String name;

    @ApiModelProperty(value = "角色描述")
    private String remark;

    @ApiModelProperty(value = "状态 0:禁用，1：启用", required = true)
    @NotBlank(message = "启用禁用状态不能为空")
    private String status;

    @ApiModelProperty(value = "排序")
    private String orderNo;

    @ApiModelProperty(value = "系统服务对象")
    private List<AddRoleSoftwareVO> softwares;
}
