-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: 포인트 도메인 운영코드 개선과 테스트코드 개선 및 추가 (#144)
* refactor: 포인트 어드민 컨트롤러에 있던 서비스로직 포인트 어드민 서비스 클래스로 옮김 * test: 포인트 어드민 서비스 테스트 * test: 포인트 서비스 테스트 추가 및 개선 * refactor: 포인트 출금 요청시 로그에는 출금 요청한 포인트 그대로 찍히도록 변경. 단, 관리자페이지에서는 수수료가 적용된 포인트로 보이도록 함. * refactor: 관리자 페이지 약간의 수정,css 더 깔끔히 수정 * refactor: 관리자 페이지 가독성을 위해 LocalDateTime을 포맷팅해서 String으로 등록 시간을 표현한다. * fix: 테스트 정상 통과하도록 수정 * chore: 버튼 이름 수정
- Loading branch information
Showing
11 changed files
with
489 additions
and
89 deletions.
There are no files selected for viewing
26 changes: 2 additions & 24 deletions
26
src/main/java/com/example/sinitto/point/controller/PointAdminController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,86 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #f4f4f4; | ||
background-color: #e9edf0; | ||
margin: 0; | ||
padding: 20px; | ||
color: #333; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
color: #333; | ||
font-weight: 600; | ||
margin-bottom: 30px; | ||
} | ||
|
||
table { | ||
|
||
width: 100%; | ||
border-collapse: collapse; | ||
margin: 20px 0; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||
background-color: #fff; | ||
border-radius: 8px; | ||
overflow: hidden; | ||
} | ||
|
||
th, td { | ||
padding: 12px; | ||
text-align: left; | ||
border: 1px solid #ddd; | ||
background-color: #fff; | ||
padding: 16px; | ||
text-align: center; | ||
border-bottom: 1px solid #e1e4e8; | ||
} | ||
|
||
th { | ||
background-color: #4CAF50; | ||
color: white; | ||
background-color: rgba(52, 87, 217, 0.8); | ||
color: #ffffff; | ||
font-weight: 600; | ||
font-size: 16px; | ||
top: 0; | ||
} | ||
|
||
tr:nth-child(even) { | ||
background-color: #f9f9f9; | ||
td { | ||
font-size: 14px; | ||
color: #555; | ||
} | ||
|
||
tr:hover { | ||
background-color: #f1f1f1; | ||
tr:nth-child(even) { | ||
background-color: #f7f9fb; | ||
} | ||
|
||
button { | ||
background-color: #4CAF50; | ||
color: white; | ||
background-color: rgba(52, 87, 217, 0.8); | ||
color: #ffffff; | ||
border: none; | ||
padding: 10px 15px; | ||
text-align: center; | ||
text-decoration: none; | ||
display: inline-block; | ||
padding: 10px 20px; | ||
font-size: 14px; | ||
margin: 4px 2px; | ||
cursor: pointer; | ||
border-radius: 4px; | ||
transition: background-color 0.3s; | ||
transition: background-color 0.3s, transform 0.2s; | ||
} | ||
|
||
button:hover { | ||
background-color: #45a049; | ||
background-color: rgba(52, 87, 217, 0.93); | ||
transform: scale(1.03); | ||
} | ||
|
||
button:active { | ||
background-color: #00473c; | ||
} | ||
|
||
form { | ||
display: inline; | ||
} | ||
margin: 0; | ||
} | ||
|
||
.header { | ||
background-color: #00796b; | ||
padding: 20px; | ||
color: #ffffff; | ||
border-radius: 8px; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.header h1 { | ||
margin: 0; | ||
font-size: 24px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.