package cn.reghao.oss.console.app.model.po;

import cn.reghao.oss.console.app.model.dto.UserNodeDto;
import cn.reghao.oss.console.util.db.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;

/**
 * @author reghao
 * @date 2024-02-27 09:45:11
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity
public class UserNode extends BaseEntity {
    private Integer nodeId;
    private Integer userId;

    public UserNode(UserNodeDto userNodeDto, int userId) {
        this.nodeId = userNodeDto.getNodeId();
        this.userId = userId;
    }
}
