File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/ru/mystamps/web/feature/series Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 3434import javax .servlet .http .HttpServletResponse ;
3535import javax .validation .Valid ;
3636import java .io .IOException ;
37+ import java .math .BigDecimal ;
3738
3839@ Controller
3940@ RequiredArgsConstructor
@@ -139,6 +140,7 @@ public String addCatalogNumbers(
139140 )
140141 public String addCatalogPrice (
141142 @ PathVariable ("id" ) Integer seriesId ,
143+ @ AuthenticationPrincipal CustomUserDetails currentUser ,
142144 HttpServletResponse response
143145 ) throws IOException {
144146
@@ -155,6 +157,14 @@ public String addCatalogPrice(
155157 // XXX: implement
156158 System .out .println ("PATCH add catalog price" );
157159
160+ Integer currentUserId = currentUser .getUserId ();
161+ seriesService .addCatalogPrice (
162+ StampsCatalog .MICHEL , // XXX
163+ seriesId ,
164+ BigDecimal .TEN , // XXX
165+ currentUserId
166+ );
167+
158168 return null ;
159169 }
160170
You can’t perform that action at this time.
0 commit comments