liujie
2026-07-30 280ef5100bece9b40ac51736aef037704a52a4ca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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; }
}