Skip to content

Commit

Permalink
Merge pull request #80 from Codiary-UMC-6th/feature/#78-profile-update
Browse files Browse the repository at this point in the history
Feature/#78 profile update
  • Loading branch information
insa658723 authored Aug 5, 2024
2 parents ffc167f + 4925388 commit b6b5762
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
import com.codiary.backend.global.domain.entity.Team;
import com.codiary.backend.global.web.dto.Team.TeamRequestDTO;
import com.codiary.backend.global.web.dto.TeamMember.TeamMemberRequestDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
public interface TeamCommandService {
//νŒ€ 생성
Team createTeam(TeamRequestDTO.CreateTeamRequestDTO request);

//νŒ€ ν”„λ‘œν•„ μˆ˜μ •
Team updateTeam(Long teamId);


}
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,7 @@ public ApiResponse<TeamResponseDTO.CreateTeamResponseDTO> createTeam(
);
}

//νŒ€ 쑰회
@GetMapping("/{teamId}")
@Operation(
summary = "νŒ€ 쑰회"
)
public ApiResponse<TeamResponseDTO.TeamCheckResponseDTO> checkTeam(
@RequestParam Long teamId
){
return ApiResponse.onSuccess(SuccessStatus.TEAM_OK, TeamConverter.toTeamCheckDTO());
}

//νŒ€ ν”„λ‘œν•„ μˆ˜μ •
@PatchMapping("/profile/{teamId}")
@Operation(
summary = "νŒ€ ν”„λ‘œν•„ μˆ˜μ •"
Expand All @@ -62,4 +52,6 @@ public ApiResponse<TeamResponseDTO.UpdateTeamDTO> updateTeam(
)
);
}

//νŒ€ νŒ”λ‘œμš°
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,16 @@ public static class UpdateTeamDTO { // νŒ€ ν”„λ‘œν•„ μˆ˜μ •
String linkedIn;
}


@Builder
public record TeamFollowResponseDto( //νŒ€ νŒ”λ‘œμš° κΈ°λŠ₯
Long followId,
Long followerId,
String followerName,
Long followingId,
String followingName,
Boolean followStatus
) {
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
package com.codiary.backend.global.web.dto.TeamMember;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

public class TeamMemberRequestDTO {
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public static class AddTeamMemberRequestDTO { //νŒ€μ› μΆ”κ°€
private String name;
private String profilePhoto;
private String intro;
private String github;
private String linkedIn;
private String discord;
private String instagram;
}

@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public static class DeleteMemberRequestDTO { //νŒ€μ› μ‚­μ œ
private String name;
private String profilePhoto;
private String intro;
private String github;
private String linkedIn;
private String discord;
private String instagram;
}
}

0 comments on commit b6b5762

Please sign in to comment.