Skip to content

Commit

Permalink
refactor : 아티스트 성별 중 혼성 추가 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom authored Aug 3, 2024
1 parent 78bf2dd commit 9b83959
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.example.artist.vo;

public enum ArtistGenderApiType {
MAN, WOMAN
MAN, WOMAN, MIXED
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h2 class="text-center">추가할 아티스트</h2>
<option value="">성별 선택</option>
<option value="MAN">남성</option>
<option value="WOMAN">여성</option>
<option value="MIXED">혼성</option>
</select>
</div>
<div class="mb-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ <h2 class="text-center">아티스트 수정</h2>
<select name="artistGenderApiType" id="artistGenderApiType" class="form-control">
<option value="MAN" th:selected="${artist.artistGenderApiType} == 'MAN'">남성</option>
<option value="WOMAN" th:selected="${artist.artistGenderApiType} == 'WOMAN'">여성</option>
<option value="WOMAN" th:selected="${artist.artistGenderApiType} == 'MIXED'">혼성</option>
</select>
</div>
<div class="form-group mb-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h2 class="text-center">아티스트 목록</h2>
<div th:switch="${artist.artistGenderApiType.name()}">
<span th:case="'MAN'" th:text="'남성'"></span>
<span th:case="'WOMAN'" th:text="'여성'"></span>
<span th:case="'MIXED'" th:text="'혼성'"></span>
</div>
</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package org.example.vo;

public enum ArtistGender {
MAN, WOMAN
MAN, WOMAN, MIXED
}

0 comments on commit 9b83959

Please sign in to comment.