package com.devjob.user.dto;

import com.devjob.user.domain.Member;
import com.devjob.user.domain.Role;

public record MemberResponse(
        Long id,
        String email,
        Role role
) {
    public static MemberResponse from(Member member) {
        return new MemberResponse(member.getId(), member.getEmail(), member.getRole());
    }
}
