-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
admin/backend: Actual CSV parsing in backend for preview
- Loading branch information
1 parent
911ab85
commit a5a28e4
Showing
14 changed files
with
141 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file renamed
BIN
+41 KB
...ger-common-file-6872490476-46f42b6676.zip → ...ger-common-file-5004d59894-e6ab0e054c.zip
Binary file not shown.
Binary file renamed
BIN
+41 KB
...ger-common-file-cc7e8d40b5-46f42b6676.zip → ...ger-common-file-7f94e379f6-e6ab0e054c.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
projects/Backend/src/modules/admin/goods/dto/import-goods.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Exclude, Expose } from "class-transformer"; | ||
import { IGoodsCSVImportPreviewResponse, IGoodsCSVImportRequest } from "@myboothmanager/common"; | ||
|
||
export class GoodsImportRequestDto implements IGoodsCSVImportRequest { | ||
declare csv: string; | ||
} | ||
|
||
@Exclude() | ||
export class GoodsImportPreviewResponseDto implements IGoodsCSVImportPreviewResponse { | ||
@Expose() declare goods: IGoodsCSVImportPreviewResponse["goods"]; | ||
@Expose() declare categories: IGoodsCSVImportPreviewResponse["categories"]; | ||
|
||
constructor(goods: IGoodsCSVImportPreviewResponse["goods"], | ||
categories: IGoodsCSVImportPreviewResponse["categories"]) { | ||
this.goods = goods; | ||
this.categories = categories; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { Module } from "@nestjs/common"; | ||
import { UtilService } from "./util.service"; | ||
import { CSVService } from "./csv.service"; | ||
|
||
@Module({ | ||
providers: [UtilService], | ||
exports: [UtilService], | ||
providers: [UtilService, CSVService], | ||
exports: [UtilService, CSVService], | ||
}) | ||
export class UtilModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters