Skip to content

Commit

Permalink
Merge pull request #25 from Capstone-Richam/feature/15-user
Browse files Browse the repository at this point in the history
[chore]: Main action 수정
  • Loading branch information
qogustj authored Dec 4, 2023
2 parents b6679c3 + 0cbbd7c commit cabeb38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ out/

### VS Code ###
.vscode/
#**/src/main/resources/application.yml
**/src/main/resources/application.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.Nunbody.domain.Mail.controller;

import com.Nunbody.domain.Mail.domain.MailBody;
import com.Nunbody.domain.Mail.domain.MailList;
import com.Nunbody.domain.Mail.dto.response.MailListResponseDto;
import com.Nunbody.domain.Mail.dto.resquest.ValidateRequestDto;
Expand All @@ -26,7 +27,6 @@ public class MailController {
private final MailService mailService;
private final MailManageService mailManageService;
@GetMapping("/mails")
@ResponseBody
public ResponseEntity<SuccessResponse<?>> getMail(@RequestParam Long userId) {
final MailList mailList = mailService.getMail(userId);
return SuccessResponse.ok(mailList);
Expand All @@ -41,5 +41,11 @@ public ResponseEntity<SuccessResponse<?>> validate(@RequestBody ValidateRequestD
final String string= mailManageService.validateConnect(validateRequestDto);
return SuccessResponse.ok(string);
}
@GetMapping("{id}")
public ResponseEntity<SuccessResponse<?>> getMailBody(@PathVariable("id") Long mailId){
final MailBody mailBody = mailService.getMailBody(mailId);

return SuccessResponse.ok(mailBody);
}
}

0 comments on commit cabeb38

Please sign in to comment.