Skip to content

Commit

Permalink
[feat] #181 포킷 공유 저장 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
stealmh committed Feb 2, 2025
1 parent 9474351 commit a001df4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ public struct CopiedCategoryRequest: Encodable {
public let originCategoryId: Int
public var categoryName: String
public var categoryImageId: Int
public let keyword: String
public let openType: String

public init(
originCategoryId: Int,
categoryName: String,
categoryImageId: Int
categoryImageId: Int,
keyword: String,
openType: String
) {
self.originCategoryId = originCategoryId
self.categoryName = categoryName
self.categoryImageId = categoryImageId
self.keyword = keyword
self.openType = openType
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum CategoryEndpoint {
extension CategoryEndpoint: TargetType {
public var baseURL: URL {
switch self {
case .카테고리_목록_조회, .카테고리생성, .카테고리_수정:
case .카테고리_목록_조회, .카테고리생성, .카테고리_수정, .공유받은_카테고리_저장:
return Constants.serverURL.appendingPathComponent(Constants.categoryPathV2, conformingTo: .url)

default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ private extension PokitCategorySettingFeature {
CopiedCategoryRequest(
originCategoryId: categoryId,
categoryName: domain.categoryName,
categoryImageId: image.id
categoryImageId: image.id,
keyword: domain.keywordType.title,
openType: domain.openType.title
)
)
await send(.delegate(.settingSuccess))
Expand Down

0 comments on commit a001df4

Please sign in to comment.