package com.storlead.user.pojo.dto;

import com.storlead.framework.mybatis.page.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Set;

/**
 * 角色参数
 *
 * @author blank
 * @date 2021-1-7 上午 11:23
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RoleParam对象", description = "角色请求参数对象")
public class RoleParam extends Page {

    private static final long serialVersionUID = 269890957793662474L;

    @ApiModelProperty(value = "角色id")
    private Long id;

    @ApiModelProperty(value = "角色名称")
    private String name;

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

    @ApiModelProperty(value = "权限范围(全部 本公司 自定义 自己,本部门)")
    private String dataScope;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "菜单列表")
    private Set<Long> menus;

    @ApiModelProperty(value = "部门列表")
    private Set<Long> depts;

    @ApiModelProperty(value = "是否启用")
    private Boolean enabled;

    @ApiModelProperty(value = "是否移动端 1：是，0 ：不是")
    private Integer isApp;
}
