Skip to content

Commit

Permalink
Merge pull request #113 from KUIT-Space/develop
Browse files Browse the repository at this point in the history
24.08.16 2차 배포
  • Loading branch information
seongjunnoh authored Aug 16, 2024
2 parents 1c0a7a8 + e90b5f0 commit 74b6e7c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import space.space_spring.argumentResolver.jwtLogin.JwtLoginAuth;
import space.space_spring.argumentResolver.userSpace.CheckUserSpace;
import space.space_spring.argumentResolver.userSpace.UserSpaceAuth;
import space.space_spring.argumentResolver.userSpace.UserSpaceId;
import space.space_spring.dto.pay.dto.PayReceiveInfoDto;
Expand Down Expand Up @@ -91,6 +92,7 @@ public BaseResponse<GetUserInfoBySpaceResponse> getAllUserInfoBySpace(@PathVaria
/**
* 스페이스 가입 view를 위한 데이터 조회
*/
@CheckUserSpace(required = false)
@GetMapping("/{spaceId}/join")
public BaseResponse<GetSpaceJoinDto.Response> getSpaceJoin(@JwtLoginAuth Long userId, @PathVariable Long spaceId) {

Expand Down Expand Up @@ -171,6 +173,7 @@ private String processUserProfileImage(MultipartFile userProfileImg) throws IOEx
/**
* 유저의 스페이스 가입 처리
*/
@CheckUserSpace(required = false)
@PostMapping("/{spaceId}/join")
public BaseResponse<String> joinUserToSpace(@JwtLoginAuth Long userId, @PathVariable Long spaceId, @Validated @ModelAttribute PostSpaceJoinDto.Request request, BindingResult bindingResult) throws IOException {
if (bindingResult.hasErrors()) {
Expand Down

0 comments on commit 74b6e7c

Please sign in to comment.