package com.tourguide.modules.user.dto;
|
|
import com.tourguide.modules.user.entity.GuideTeam;
|
|
public class GuideRegistrationTeamOptionResponse {
|
private final Long id;
|
private final String name;
|
private final String guideType;
|
|
private GuideRegistrationTeamOptionResponse(Long id, String name, String guideType) {
|
this.id = id;
|
this.name = name;
|
this.guideType = guideType;
|
}
|
|
public static GuideRegistrationTeamOptionResponse personal() {
|
return new GuideRegistrationTeamOptionResponse(null, "个人", "personal");
|
}
|
|
public static GuideRegistrationTeamOptionResponse team(GuideTeam team) {
|
return new GuideRegistrationTeamOptionResponse(team.getId(), team.getTeamName(), "team");
|
}
|
|
public Long getId() { return id; }
|
public String getName() { return name; }
|
public String getGuideType() { return guideType; }
|
}
|