-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FEAT] 안건 관련 API 구현
- Loading branch information
Showing
18 changed files
with
272 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/umc/naoman/domain/agenda/dto/AgendaPhotoResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.umc.naoman.domain.agenda.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
public abstract class AgendaPhotoResponse { | ||
|
||
@Builder | ||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class AgendaPhotoInfo { | ||
private Long agendaPhotoId; | ||
private String url; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/main/java/com/umc/naoman/domain/agenda/repository/AgendaRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
package com.umc.naoman.domain.agenda.repository; | ||
|
||
import com.umc.naoman.domain.agenda.entity.Agenda; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface AgendaRepository extends JpaRepository<Agenda,Long> { | ||
Page<Agenda> findByShareGroupId(Long shareGroupId, Pageable pageable); | ||
|
||
} |
6 changes: 5 additions & 1 deletion
6
src/main/java/com/umc/naoman/domain/agenda/service/AgendaService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
package com.umc.naoman.domain.agenda.service; | ||
|
||
import com.umc.naoman.domain.agenda.dto.AgendaRequest; | ||
import com.umc.naoman.domain.agenda.dto.AgendaResponse.PagedAgendaDetailInfo; | ||
import com.umc.naoman.domain.agenda.entity.Agenda; | ||
import com.umc.naoman.domain.agenda.entity.AgendaPhoto; | ||
import com.umc.naoman.domain.member.entity.Member; | ||
import org.springframework.data.domain.Pageable; | ||
|
||
public interface AgendaService { | ||
Agenda createAgenda(Member member, AgendaRequest.CreateAgendaRequest request); | ||
Agenda getAgendaDetailInfo(Long agendaId, Member member); | ||
PagedAgendaDetailInfo getAgendaList(Long shareGroupId, Member member, Pageable pageable); | ||
Agenda deleteAgenda(Long agendaId); | ||
|
||
Agenda findAgenda(Long agendaId); | ||
} |
Oops, something went wrong.