package com.microservices.system.domain;

import com.microservices.common.core.web.domain.BaseEntity;
import com.microservices.system.api.domain.SysDept;
import com.microservices.system.api.domain.SysRole;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 部门下可选角色对象 sys_dept_role
 *
 * @author otto
 * @date 2023-04-12
 */
@Data
public class SysDeptRole extends BaseEntity {
    public SysDeptRole(Long deptId, Long roleId) {
        this.deptId = deptId;
        this.roleId = roleId;
    }

    private static final long serialVersionUID = 1L;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 角色ID
     */
    private Long roleId;
    /**
     * 部门对象
     */
    @ApiModelProperty(value = "部门对象", hidden = true)
    private SysDept sysDept;

    /**
     * 角色对象
     */
    @ApiModelProperty(value = "角色对象", hidden = true)
    private SysRole sysRole;
}
