Skip to content

Commit a001df4

Browse files
committed
[feat] #181 포킷 공유 저장 로직 수정
1 parent 9474351 commit a001df4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Projects/CoreKit/Sources/Data/DTO/Category/CopiedCategoryRequest.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ public struct CopiedCategoryRequest: Encodable {
1111
public let originCategoryId: Int
1212
public var categoryName: String
1313
public var categoryImageId: Int
14+
public let keyword: String
15+
public let openType: String
1416

1517
public init(
1618
originCategoryId: Int,
1719
categoryName: String,
18-
categoryImageId: Int
20+
categoryImageId: Int,
21+
keyword: String,
22+
openType: String
1923
) {
2024
self.originCategoryId = originCategoryId
2125
self.categoryName = categoryName
2226
self.categoryImageId = categoryImageId
27+
self.keyword = keyword
28+
self.openType = openType
2329
}
2430
}

Projects/CoreKit/Sources/Data/Network/Category/CategoryEndpoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public enum CategoryEndpoint {
2626
extension CategoryEndpoint: TargetType {
2727
public var baseURL: URL {
2828
switch self {
29-
case .카테고리_목록_조회, .카테고리생성, .카테고리_수정:
29+
case .카테고리_목록_조회, .카테고리생성, .카테고리_수정, .공유받은_카테고리_저장:
3030
return Constants.serverURL.appendingPathComponent(Constants.categoryPathV2, conformingTo: .url)
3131

3232
default:

Projects/Feature/FeatureCategorySetting/Sources/PokitCategorySettingFeature.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ private extension PokitCategorySettingFeature {
236236
CopiedCategoryRequest(
237237
originCategoryId: categoryId,
238238
categoryName: domain.categoryName,
239-
categoryImageId: image.id
239+
categoryImageId: image.id,
240+
keyword: domain.keywordType.title,
241+
openType: domain.openType.title
240242
)
241243
)
242244
await send(.delegate(.settingSuccess))

0 commit comments

Comments
 (0)