Skip to content

Commit

Permalink
style: #89 포인트 getmapping url 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrationn committed May 15, 2024
1 parent c292964 commit 129aa84
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public interface UserPointDetailApiClient {
* @param pointDetailType 조회할 포인트 타입(사용/적립)
* @author hydrationn(박수화)
*/
@GetMapping("/t3t/bookstore/members/point-details")
@GetMapping("/t3t/bookstore/mypage/point-details")
public ResponseEntity<BaseResponse<List<PointDetailResponse>>> getPointDetailByPointDetailType(@RequestParam(name = "pointDetailType", required = false) String pointDetailType);
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class UserPointDetailController {
* @return 포인트 사용/적립 내역 뷰
* @author hydrationn(박수화)
*/
@GetMapping("/member/point-details")
@GetMapping("/mypage/point-details")
public String pointDetailView(Model model, @Valid @RequestParam(value = "pointDetailType", required = false) String pointDetailType) {

// 로그인 정보가 없으면 로그인 페이지로 이동
Expand All @@ -50,6 +50,6 @@ public String pointDetailView(Model model, @Valid @RequestParam(value = "pointDe

model.addAttribute("pointDetails", pointDetails);

return "main/pointdetails/pointdetail";
return "main/page/pointdetail";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h4>쿠폰 및 포인트 정보</h4>
<a href="#">보유 쿠폰 내역</a>
</li>
<li id="point-history">
<a href="#">포인트 이력</a>
<a href="/mypage/point-details">포인트 이력</a>
</li>
<li id="coupon-usage">
<a href="#">쿠폰 이력</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout(categoryList)"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5"
layout:decorate="main/layout/layout">
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="main/layout/mypageLayout">

<th:block layout:fragment="content">
<div class="container">
<div class="row justify-content-center">
<p></p>
<p></p>
<p></p>
<div class="col-md-10">
<h2 class="text-center mb-5">회원 포인트 내역 조회</h2>
<div class="d-flex justify-content-end mb-3">
<a href="/member/point-details" class="btn btn-primary mx-1">전체</a>
<a href="/member/point-details?pointDetailType=used" class="btn btn-primary mx-1">사용</a>
<a href="/member/point-details?pointDetailType=saved" class="btn btn-primary mx-1">적립</a>
<a href="/mypage/point-details" class="btn btn-primary mx-1">전체</a>
<a href="/mypage/point-details?pointDetailType=used" class="btn btn-primary mx-1">사용</a>
<a href="/mypage/point-details?pointDetailType=saved" class="btn btn-primary mx-1">적립</a>
</div>
<div class="text-center mb-5">
<table id="pointDetailTable" class="table table-bordered table-striped centered-table">
Expand Down

0 comments on commit 129aa84

Please sign in to comment.