@@ -10,7 +10,7 @@ import Foundation
1010import Moya
1111
1212protocol CommentServiceProtocol {
13- func getComment( certificationId: Int , page: Int , size: Int , sort : String ) async -> Result < CommentListResponseDTO , NetworkError >
13+ func getComment( certificationId: Int , page: Int , size: Int , commentSortType : String ) async -> Result < CommentListResponseDTO , NetworkError >
1414 func addComment( request: CommentRequestDTO ) async -> Result < Void , NetworkError >
1515 func deleteComment( commentId: Int ) async -> Result < Void , NetworkError >
1616 func likeComment( commentId: Int ) async -> Result < Void , NetworkError >
@@ -19,8 +19,8 @@ protocol CommentServiceProtocol {
1919final class CommentService : BaseService , CommentServiceProtocol {
2020 private let provider = MoyaProvider< CommentAPI> . init( plugins: [ MoyaPlugin ( ) ] )
2121
22- func getComment( certificationId: Int , page: Int , size: Int , sort : String ) async -> Result < CommentListResponseDTO , NetworkError > {
23- return await requestDecodable ( provider, . getComment( certificationId: certificationId, page: page, size: size, sort : sort ) )
22+ func getComment( certificationId: Int , page: Int , size: Int , commentSortType : String ) async -> Result < CommentListResponseDTO , NetworkError > {
23+ return await requestDecodable ( provider, . getComment( certificationId: certificationId, page: page, size: size, commentSortType : commentSortType ) )
2424 }
2525
2626 func addComment( request: CommentRequestDTO ) async -> Result < Void , NetworkError > {
0 commit comments