Skip to content

Commit

Permalink
리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeryboy committed Aug 16, 2024
1 parent 2d0de57 commit 9307479
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.wafflestudio.csereal.core.academics.api.v1
import com.wafflestudio.csereal.common.aop.AuthenticatedStaff
import com.wafflestudio.csereal.common.enums.LanguageType
import com.wafflestudio.csereal.core.academics.api.req.CreateYearReq
import com.wafflestudio.csereal.core.academics.api.req.UpdateScholarshipPageReq
import com.wafflestudio.csereal.core.academics.api.req.UpdateSingleReq
import com.wafflestudio.csereal.core.academics.api.req.UpdateYearReq
import com.wafflestudio.csereal.core.academics.dto.*
Expand Down Expand Up @@ -87,7 +86,7 @@ class AcademicsController(
) = academicsService.deleteAcademicsYearResponse(language, studentType, postType, year)

//교과목 정보

@Deprecated(message = "Use V2 API")
@GetMapping("/{studentType}/courses")
fun readAllCourses(
@RequestParam(required = false, defaultValue = "ko") language: String,
Expand All @@ -111,14 +110,6 @@ class AcademicsController(
@RequestPart newAttachments: List<MultipartFile>?
) = academicsService.updateDegreeRequirements(language, request, newAttachments)

@AuthenticatedStaff
@PutMapping("/{studentType}/scholarship")
fun updateScholarshipPage(
@RequestParam(required = false, defaultValue = "ko") language: String,
@PathVariable studentType: String,
@RequestBody request: UpdateScholarshipPageReq
) = academicsService.updateScholarshipPage(language, studentType, request)

@GetMapping("/{studentType}/scholarship")
fun readAllScholarship(
@RequestParam(required = false, defaultValue = "ko") language: String,
Expand All @@ -127,6 +118,7 @@ class AcademicsController(
return ResponseEntity.ok(academicsService.readAllScholarship(language, studentType))
}

@Deprecated(message = "Use V2 API")
@GetMapping("/scholarship/{scholarshipId}")
fun getScholarship(
@PathVariable scholarshipId: Long
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.wafflestudio.csereal.core.academics.api.v2

import com.wafflestudio.csereal.common.aop.AuthenticatedStaff
import com.wafflestudio.csereal.core.academics.api.req.CreateScholarshipReq
import com.wafflestudio.csereal.core.academics.api.req.UpdateScholarshipPageReq
import com.wafflestudio.csereal.core.academics.api.req.UpdateScholarshipReq
import com.wafflestudio.csereal.core.academics.dto.GroupedCourseDto
import com.wafflestudio.csereal.core.academics.dto.ScholarshipDto
Expand Down Expand Up @@ -57,4 +58,12 @@ class AcademicsController(
@AuthenticatedStaff
@DeleteMapping("/scholarship/{scholarshipId}")
fun deleteScholarship(@PathVariable scholarshipId: Long) = academicsService.deleteScholarship(scholarshipId)

@AuthenticatedStaff
@PutMapping("/{studentType}/scholarship")
fun updateScholarshipPage(
@RequestParam(required = false, defaultValue = "ko") language: String,
@PathVariable studentType: String,
@RequestBody request: UpdateScholarshipPageReq
) = academicsService.updateScholarshipPage(language, studentType, request)
}

0 comments on commit 9307479

Please sign in to comment.