Skip to content

Commit

Permalink
12-feat-doodle-구현
Browse files Browse the repository at this point in the history
  • Loading branch information
DaeunSon committed Nov 21, 2024
1 parent afc53ac commit feaf5bb
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,4 @@ public ResponseEntity<String> deleteParticipant(@PathVariable Long doodleId, @Pa
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(e.getMessage());
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ public class Doodle extends BaseEntity {

@OneToMany(mappedBy = "doodle")
private List<UserDoodle> participants;

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ public class UserDoodle extends BaseEntity {
private UserDoodleStatus status; //참가 상태

private LocalDate joinDate; //참가날짜

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ public enum UserDoodleStatus {
PARTICIPATING,
WITHDRAWN,
COMPLETED

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ public class DoodleRequestDto {
private int goalParticipationCount;
private String password;
private int maxParticipant;

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import org.springframework.data.jpa.repository.JpaRepository;

public interface DoodleRepository extends JpaRepository<Doodle, Long> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@

public interface UserDoodleRepository extends JpaRepository<UserDoodle, Long> {
Optional<UserDoodle> findByDoodleAndUser(Long doodleId, Long userId);

}
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,4 @@ public void deleteParticipant(Long doodleId, Long userId){
}

//참가자 doodle 완료 상태 업데이트 로직 구현(완료 기준..?? 모호)


}

0 comments on commit feaf5bb

Please sign in to comment.