Skip to content

Commit

Permalink
chore: remove unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed May 12, 2024
1 parent 908c4e5 commit 1899725
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
@AllArgsConstructor
public class CreateAgencyRequest {
private String name;
private String description;
private AgencyType agencyType;
}
8 changes: 2 additions & 6 deletions src/main/java/com/moneymong/domain/agency/entity/Agency.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,22 @@ public class Agency extends BaseEntity {
)
private Integer headCount;

private String description;

@Column(name = "university_name")
private String universityName;

@Builder
private Agency(Long id, String agencyName, AgencyType agencyType, Integer headCount, String description, String universityName) {
private Agency(Long id, String agencyName, AgencyType agencyType, Integer headCount, String universityName) {
this.id = id;
this.agencyName = agencyName;
this.agencyType = agencyType;
this.headCount = headCount;
this.description = description;
this.universityName = universityName;
}

public static Agency of(String agencyName, AgencyType agencyType, String description, int headCount, String universityName) {
public static Agency of(String agencyName, AgencyType agencyType, int headCount, String universityName) {
return Agency.builder()
.agencyName(agencyName)
.agencyType(agencyType)
.description(description)
.headCount(headCount)
.universityName(universityName)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

public enum AgencyType {
STUDENT_COUNCIL,
IN_SCHOOL_CLUB,
OUT_OF_SCHOOL_CLUB
IN_SCHOOL_CLUB
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public CreateAgencyResponse create(Long userId, CreateAgencyRequest request) {
Agency agency = Agency.of(
request.getName(),
request.getAgencyType(),
request.getDescription(),
INITIAL_HEAD_COUNT,
universityName
);
Expand Down

0 comments on commit 1899725

Please sign in to comment.