Skip to content

Commit

Permalink
평가 api 권한 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
SeWooooong committed Aug 11, 2024
1 parent 20d6b01 commit 63c23f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,30 @@

@RequiredArgsConstructor
@RestController
@RequestMapping("/member/evaluations")
public class EvaluationController {

private final EvaluationService evaluationService;

/**
* 평가 추가
*/
@PostMapping("")
@PostMapping("/member/evaluations")
public ResponseEntity<String> insertEvaluation(@CurrentMember Member member, @RequestBody EvaluationInfo evaluationInfo) {
return ResponseEntity.ok(evaluationService.insertEvaluation(member, evaluationInfo));
}

/**
* 평가 받은 사람의 평가 내용 조회
*/
@GetMapping("/{worryBoardId}")
@GetMapping("/member/evaluations/{worryBoardId}")
public ResponseEntity<EvaluationResult> selectEvaluation(@CurrentMember Member member, @PathVariable Long worryBoardId){
return ResponseEntity.ok(evaluationService.selectEvaluation(member, worryBoardId));
}

/**
* 자신이 받은 평가 count
*/
@GetMapping("/count")
@GetMapping("/evaluations/count")
public ResponseEntity<EvaluationCount> countEvaluation(@RequestParam Long memberId){
return ResponseEntity.ok(evaluationService.countEvaluation(memberId));
}
Expand Down

0 comments on commit 63c23f9

Please sign in to comment.