File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -755,7 +755,7 @@ async def create_diary_with_emotion_based_recommendation(
755755 return response_data
756756
757757
758- @router .get ("/{diary_id}" , response_model = DiaryResponse )
758+ @router .get ("/{diary_id}" , response_model = DiaryResponse , summary = "일기 단편 조회" )
759759def get_diary (
760760 diary_id : int ,
761761 current_user : User = Depends (get_current_user ),
@@ -942,7 +942,7 @@ def get_diary_count_by_month(
942942 diary_count = diary_count
943943 )
944944
945- @router .put ("/{diary_id}/set-main-song" , status_code = 200 )
945+ @router .put ("/{diary_id}/set-main-song" , status_code = 200 , summary = "대표 노래 선정" )
946946async def set_main_song (
947947 diary_id : int ,
948948 recommended_song_id : int ,
@@ -985,7 +985,6 @@ async def set_main_song(
985985 video_id = data ["items" ][0 ]["id" ]["videoId" ]
986986 song .youtube_url = f"https://www.youtube.com/watch?v={ video_id } "
987987
988- # 🎯 대표곡 저장
989988 diary .main_recommended_song_id = song .id
990989 db .commit ()
991990
You can’t perform that action at this time.
0 commit comments