Skip to content

Commit

Permalink
feat: 운영팀 더미 데이터
Browse files Browse the repository at this point in the history
  • Loading branch information
주어진사랑(eojinjoo) committed Apr 17, 2023
1 parent 6cfa562 commit 1765f0d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import lombok.RequiredArgsConstructor;
import lombok.val;
import org.sopt.app.application.auth.PlaygroundAuthService;
import org.sopt.app.application.operation.OperationInfo;
import org.sopt.app.application.operation.OperationService;
import org.sopt.app.domain.entity.User;
import org.springframework.http.HttpStatus;
Expand Down Expand Up @@ -40,8 +41,9 @@ public ResponseEntity<UserResponse.MainView> getMainViewInfo(
@RequestHeader("Authorization") String accessToken
) {
val mainViewUser = playgroundAuthService.getPlaygroundUserForMainView(user.getPlaygroundToken());
val mainViewOperation = operationService.getOperationForMainView(accessToken);
val response = userResponseMapper.ofMainView(mainViewUser, mainViewOperation);
// val mainViewOperation = operationService.getOperationForMainView(accessToken);
val dummyOperation = OperationInfo.MainView.builder().announcement("공지다!").attendanceScore(2D).build();
val response = userResponseMapper.ofMainView(mainViewUser, dummyOperation);
return ResponseEntity.status(HttpStatus.OK).body(response);
}
}

0 comments on commit 1765f0d

Please sign in to comment.